# Undefined reference to 'pghpf\_0l'

**URL:** <https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [January 18, 2008, 6:48pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953 "2008-01-18T18:48:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharlesBoivin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@CharlesBoivin](https://forums.developer.nvidia.com/u/CharlesBoivin)\
**Post date:** [January 18, 2008, 6:48pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/1 "2008-01-18T18:48:11Z")

</div>

Hello,

I am currently evaluating the use of the 7.1-3 release over the 5.2-4 release we currently use for the Linux version of the Fortran 77 compiler. I have encountered a few ‘undefined reference’ errors at link time, most of which I have been able to fix, save for this one:

This is the error:

/opt/pgi-7.1.3/linux86-64/7.1-3/lib/libpghpf\_smp.a(init\_smp.o): In function `__hpf_begpar': /usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/../src-smp/init.c:252: undefined reference to `pghpf\_0l\_’  
/usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/…/src-smp/init.c:252: undefined reference to `pghpf_0l_' /usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/../src-smp/init.c:252: undefined reference to `pghpf\_0l\_’  
/usr/pgrel/extract/x86/7.1/rte/hpf/lib-linux86-64/…/src-smp/init.c:252: undefined reference to `pghpf\_0l\_’  
c

This is for a Linux box running CentOS 5. Is this possibly an installation error (I did not perform the installation) or is it a matter of not linking with the proper library?

Thank you in advance for the help,

Charles Boivin

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [January 18, 2008, 10:18pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/2 "2008-01-18T22:18:32Z")

</div>

Hi Charles,

Thank you for reporting a problem to us. We have filed a TPR#14335 for this bug.

Hongyon

---

<div class="post-metadata">

**Author:** ![CharlesBoivin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@CharlesBoivin](https://forums.developer.nvidia.com/u/CharlesBoivin)\
**Post date:** [January 21, 2008, 1:38pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/3 "2008-01-21T13:38:27Z")

</div>

Thank you Hongyon,

Where can I keep track of the status of this TPR?

Charles

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [January 21, 2008, 6:20pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/4 "2008-01-21T18:20:41Z")

</div>

Hi Charles,

Our engineer says that pghpf\_01 should be defined in the user’s pghpf-compiled objects.

There are a few questions that we need answer:  
What are you trying to link? pghpf-compiled objects or pgf77-compiled objects?

What command is being used to perform the link?  
  
  
TPR status should be listed in a release notes of each release. If you want to know the status of this tpr, you can post it here or email [trs@pgroup.com](mailto:trs@pgroup.com)

Hongyon

---

<div class="post-metadata">

**Author:** ![CharlesBoivin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@CharlesBoivin](https://forums.developer.nvidia.com/u/CharlesBoivin)\
**Post date:** [January 21, 2008, 8:00pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/5 "2008-01-21T20:00:52Z")

</div>

Hi,

I can provide more details on the specific commands used for the link stage. However, I’d rather not provide all those specific details here as it is a public forum. Is there an email address I can reach you at?

Thank you,

Charles

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [January 21, 2008, 8:19pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/6 "2008-01-21T20:19:29Z")

</div>

Please send to [trs@pgroup.com](mailto:trs@pgroup.com) and describe that you have posted on user forum and ask them to pass information to me.

Thanks,  
Hongyon

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [January 23, 2008, 11:14pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/7 "2008-01-23T23:14:09Z")

</div>

Hi,

Did you send mail to [trs@pgroup.com](mailto:trs@pgroup.com) yet? I asked trs and they said they didn’t receive e-mail regarding the issue.

Hongyon

---

<div class="post-metadata">

**Author:** ![CharlesBoivin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@CharlesBoivin](https://forums.developer.nvidia.com/u/CharlesBoivin)\
**Post date:** [January 24, 2008, 3:34pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/8 "2008-01-24T15:34:04Z")

</div>

Hi Hongyon,

No, I haven’t done that just yet. I have been away from work for the past few days. I should be getting to this later today. Thank you!

Charles

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [March 20, 2008, 10:40pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/9 "2008-03-20T22:40:19Z")

</div>

Hi Charles,

Can you please send detail to [trs@pgroup.com](mailto:trs@pgroup.com), mentioning this user forum. We need a test case that fail in order to investigate and fix the problem.

Thank you,  
Hongyon

---

<div class="post-metadata">

**Author:** ![Gary\_Howell](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Gary\_Howell](https://forums.developer.nvidia.com/u/Gary_Howell)\
**Post date:** [February 18, 2010, 3:26pm UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/10 "2010-02-18T15:26:43Z")

</div>

I am not so modest about my link line

pgf77 -Bstatic dsvdreadmm.o mmcsr.o /home/gwhowell/apps/ARPACK/libarpack\_pgi64.a -L/usr/local/apps/acml/acml4.3.0/pgi64\_mp/lib -lacml\_mp -lacml\_mv …/BLASSM/matvec.o …/MATGEN/FDIF/genmat.o …/MATGEN/FDIF/functns.o sparcolgen.o rmio.o timw3.o /usr/lib/gcc/x86\_64-redhat-linux/3.4.3/libg2c.a -lpgmp -lpgf90 -lpghpf\_smp -lpghpf2 -L/usr/local/pgi/linux86-64/7.2-2/libso -lpgnuma -lpgbind -L/usr/local/apps/acml/acml/4.3.9/pgi64\_mp/lib -lacml\_mp -o dsvd5

Similarly with pgf90

By using

nm -A \*.a | grep …

I was able to track down most of the undefined references … but not this one …

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [February 19, 2010, 4:26am UTC](https://forums.developer.nvidia.com/t/undefined-reference-to-pghpf-0l/130953/11 "2010-02-19T04:26:39Z")

</div>

Hi Gary,

I’ve been trying to recreate this error but haven’t been able to. The symbol “pghpf\_0l” gets add to objects compiled with pghpf. However, it’s only referenced in the HPF initialization routine so it’s unclear where the reference is coming from.

Please run the command 'nm | grep pghpf\_0l" on all your objects and libraries where the reference is coming from. Then let me know how this object is compiled.

Thanks,  
Mat
