PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

can't compile on Arch Linux installation

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
Cassino



Joined: 14 Nov 2012
Posts: 1

PostPosted: Tue Nov 20, 2012 2:03 pm    Post subject: can't compile on Arch Linux installation Reply with quote

Trying to compile acc_c3.c from /opt/pgi/linux86-64/12.10/etc/samples/openacc/ gives

Code:
pgcc -o acc_c3.uni acc_c3.c -acc -ta=nvidia,host -Minfo=acc,uni -fast
PGC-S-0040-Illegal use of symbol, __syscall_slong_t (/usr/include/time.h: 123)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/time.h: 123)
PGC/x86-64 Linux 12.10-0: compilation completed with severe errors
make: *** [acc_c3.uni] Error 2


Is this doomed to fail, or am I making a newbie error?

Installed gcc is 4.7.2, glibc says version 2.16.

I also have gcc 4.4.6 installed, which CUDA needs.

EDIT: I can see where the problem is cropping up. <sys/time.h> eventually includes <bits/types.h>, but instead of this coming from /usr/include, it picks up the PGI version from /opt/pgi/linux86-64/12.10/include. Later, when it includes <time.h> (does come from /usr/include), that time.h is not compatible with the PGI bits/types.h.

EDIT: I tried "makelocalrc" with "-gcc gcc-4.4 -g++ g++-4.4", but this did not seem to help. BTW, there is an error on line 261 of makelocalrc:

Code:
  -g++ ) shift; g++="$1" ;;


should change "g++=" to "gpp=", or it will fail anytime someone uses the -g++ option.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Nov 21, 2012 9:29 am    Post subject: Reply with quote

Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation 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