PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Can't find include file stddef.h

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
stlorders



Joined: 09 Feb 2005
Posts: 2

PostPosted: Thu Feb 10, 2005 11:03 am    Post subject: Can't find include file stddef.h Reply with quote

I am attempting to use PGI Workstation 5.2 on a dual operton system running Fedora Core 3 x86_64. I am using an evaluation license created by the install program.

I installed the program in "/tmp/usr/pgi". I get this message when I attmpt to compile a hello world program----

[root@ionic pgroup]# export PGI=/tmp/usr/pgi/
[root@ionic pgroup]# export LM_LICENSE_FILE=/tmp/usr/pgi/license.dat
[root@ionic bin]# ./pgcc test.c
PGC-F-0206-Can't find include file stddef.h (/usr//include/stdio.h: 34)
PGC/x86-64 Linux/x86-64 5.2-4: compilation aborted

test.c contents ---
#include <stdio.h>
main()
{for(;;){printf ("Hello World!\n");}}

I read the release notes and noticed that there were issues with FC3, so I downloaded fedora3_patch.tar.gz and reinstalled, following the instructions inside. I still get the same error (can't find include file stddef.h)

I tried to manually tell pgcc the include directories that hold stddef.h as well as the types and bits mentioned in the FC3 patch notes----------

[root@ionic bin]# ./pgcc test.c -I/tmp/usr/pgi/linux86-64/5.2/include/ -I/tmp/usr/pgi/linux86-64/5.2/include/CC -I/tmp/usr/pgi/linux86-64/5.2/include/bits/ -I/tmp/usr/pgi/linux86-64/5.2/include/sys/
PGC-F-0206-Can't find include file stddef.h (/tmp/usr/pgi/linux86-64/5.2/include/CC/stddef.h: 28)
PGC/x86-64 Linux/x86-64 5.2-4: compilation aborted

----------but I get a very similar error

My system was installed using the "install" script in linux86-64.tar.gz. I have similar systems running FC2 and PGI 5.2 that do not have this problem so it seems like there is still some problem with FC3 that I may have missed.

Thanks
-Patrick Neely
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6218
Location: The Portland Group Inc.

PostPosted: Fri Feb 11, 2005 9:04 am    Post subject: Reply with quote

Hi Patrick,


When you reinstalled, the makelocalrc script either didn't get run or errored. Try going to the bin directory and running the command by hand.
Code:
makelocalrc -x /tmp/usr/pgi/linux86-64/5.2

The resulting localrc file should look something like this:
Code:
cat bin/localrc
set LFC=-lg2c;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.2;
set GCCINC=/usr/lib/gcc/x86_64-redhat-linux/3.4.2/include;
set G77DIR=/usr/lib/gcc/x86_64-redhat-linux/3.4.2;
set THROW=__THROW=;


The stddef.h header file is located in /usr/lib/gcc/x86_64-redhat-linux/3.4.2/include so if the "GCCINC" directory is not set correctly, it wont be able to find the file.

- Mat
Back to top
View user's profile
stlorders



Joined: 09 Feb 2005
Posts: 2

PostPosted: Mon Feb 14, 2005 11:33 am    Post subject: update Reply with quote

Thanks for the help.

I ended up just starting from scratch, following the instructions specific for FC3 and installing again. I had better luck this time, so I probably made some mistake involving the makelocalrc file.


Thanks again
-Patrick
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group