PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

gcc 3.2.23 vs gcc 3.4.0 x86_64 interaction V5.2 pgCC
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
ElmoSizorbil



Joined: 28 Jul 2004
Posts: 6

PostPosted: Wed Aug 04, 2004 8:18 am    Post subject: that is a help. thank you. Reply with quote

I had to get past the license errors (looking in ./license.dat, not $PGI/license.dat).
Now I have to figure out the compiler errors.

"common/CompilerDefs.hh", line 291: error: the global scope has no
"pthread_yield"
::pthread_yield(); // let someone else run
^

1 error detected in the compilation of "common/butilities.cxx".

"common/ByteSwapper.cxx", line 54: error: "bad_alloc" is ambiguous
PGTHROWBADALLOC(1 + sizeout) size[0] = sizeout;
^
thanks for the help.

berkley
Back to top
View user's profile
ElmoSizorbil



Joined: 28 Jul 2004
Posts: 6

PostPosted: Wed Aug 04, 2004 8:50 am    Post subject: i give up Reply with quote

"common/DiskPipe.cxx", line 352: error: incomplete type is not allowed
struct stat64 FileStatus;
^

"common/DiskPipe.cxx", line 353: error: the global scope has no "fstat64"
int ret = ::fstat64(readFD_, &FileStatus);
^

"common/DiskPipe.cxx", line 366: error: identifier "off64_t" is undefined
off64_t FileSize = FileStatus.st_size;
^

after lots of hunting for #ifdef <somethings> I see that your compiler just gets
completely lost going through the /usr/include files.

"/usr/include/asm-x86_64/fcntl.h", line 18: warning: incompatible redefinition
of macro "FASYNC" (declared at line 170 of
"/usr/include/bits/fcntl.h")
#define FASYNC 020000 /* fcntl, for BSD compatibility */
^

"/usr/include/asm-x86_64/fcntl.h", line 66: error: invalid redeclaration of
type name "flock" (declared at line 140 of
"/usr/include/bits/fcntl.h")
struct flock {
^

"/usr/include/sys/wait.h", line 112: error: identifier "__WAIT_STATUS" is
undefined
extern __pid_t wait (__WAIT_STATUS __stat_loc);

This just isn't worth my time to get the #defines right in every file just to use
common things like ::open or O_DIRECT. Even SlowLaris 8.0 was a faster port than this.

Is there a #if defined(__pgCC__) or something similar your compiler gives me?

Berkley
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Wed Aug 04, 2004 9:48 am    Post subject: __PGI Reply with quote

Hi,

Please try __PGI (that's two underscores followed by PGI)... that's defined by pgCC.

-Mark
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
Goto page Previous  1, 2
Page 2 of 2

 
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