PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

pgcc 13.3 problems on openSUSE 12.3
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
p.j.knowles



Joined: 20 Apr 2006
Posts: 18

PostPosted: Mon Mar 25, 2013 1:26 pm    Post subject: pgcc 13.3 problems on openSUSE 12.3 Reply with quote

Hi,

I just upgraded one of my machines from openSUSE 12.2 to 12.3 and now pgcc gives some errors when compiling files:

Code:
PGC-S-0040-Illegal use of symbol, __SWBLK_T_TYPE (/opt/pgi/linux86-64/13.3/include/bits/types.h: 159)
PGC-W-0156-Type not specified, 'int' assumed (/opt/pgi/linux86-64/13.3/include/bits/types.h: 159)
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-S-0040-Illegal use of symbol, __syscall_slong_t (/usr/include/bits/stat.h: 106)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/stat.h: 106)


which did not occur on openSUSE 12.2. I'm surprised since the GCC version between the two distros only changed from 4.7.1 to 4.7.2 so I wouldn't have thought there would have been any controversial changes.

Any ideas?

Thanks,

Andy
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 445

PostPosted: Tue Mar 26, 2013 1:20 pm    Post subject: pgcc fails to preprocess properly Reply with quote

Andy,

I don't get the impression you re-installed the compilers after you upgraded
SuSe and gcc. You really need to. Remove the old installation, install again, and then
see if the problems persist. They might, but the install process is where we
address the host dependencies, like where gcc puts it's headers, whether PGI
needs to have a pre-header, etc.

regards,
dave

% more hello.c
#include <stdio.h>
int main()
{
printf(" hello\n");
}

if
% pgcc hello.c -o hello

gives you problems, send the files hello_pgi.i and hello_gcc.i
% pgcc -E hello.c >& hello_pgi.i
% gcc -E hello.c >& hello_gcci.i

and the output dialog of

% pgcc -v hello.c -o hello_pgi -Wl,-t
% gcc -v hello.c -o hello_gcci -Wl,-t

to trs@pgroup.com. The differences should indicate
what has to be changed in localrc to address your system.

dave
Back to top
View user's profile
p.j.knowles



Joined: 20 Apr 2006
Posts: 18

PostPosted: Wed Mar 27, 2013 1:18 am    Post subject: Reply with quote

Dave,

Sorry, I see now the way I wrote the post looks as though I didn't reinstall. Actually I started from scratch, formatted the HD and installed the new OS and then installed the compilers.

% pgcc hello.c -o hello

gives:

Code:
PGC-S-0040-Illegal use of symbol, __SWBLK_T_TYPE (/opt/pgi/linux86-64/13.3/include/bits/types.h: 159)
PGC-W-0156-Type not specified, 'int' assumed (/opt/pgi/linux86-64/13.3/include/bits/types.h: 159)
PGC/x86-64 Linux 13.3-0: compilation completed with severe errors


I'll shortly send the requested info.

Many thanks,

Andy
Back to top
View user's profile
QuesarVII



Joined: 13 Sep 2004
Posts: 6

PostPosted: Thu May 02, 2013 2:47 pm    Post subject: I'm having the same problem on suse 12.3 Reply with quote

Here is a link to a tarball of the output you requested. Have you already found a solution to this?

ftp://ftp.microway.com/tmp/pgi-opensuse12.3-debug.tar

Thanks,
Rick
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 445

PostPosted: Thu May 02, 2013 3:55 pm    Post subject: Reply with quote

Rick,

This is fixed in the 13.5 release coming out sometime in the next week.


dave
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 1, 2  Next
Page 1 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