|
| View previous topic :: View next topic |
| Author |
Message |
p.j.knowles
Joined: 20 Apr 2006 Posts: 14
|
Posted: Mon Mar 25, 2013 1:26 pm Post subject: pgcc 13.3 problems on openSUSE 12.3 |
|
|
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 |
|
 |
jtull
Joined: 30 Jun 2004 Posts: 234
|
Posted: Tue Mar 26, 2013 1:20 pm Post subject: pgcc fails to preprocess properly |
|
|
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 |
|
 |
p.j.knowles
Joined: 20 Apr 2006 Posts: 14
|
Posted: Wed Mar 27, 2013 1:18 am Post subject: |
|
|
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 |
|
 |
QuesarVII
Joined: 13 Sep 2004 Posts: 1
|
|
| Back to top |
|
 |
jtull
Joined: 30 Jun 2004 Posts: 234
|
Posted: Thu May 02, 2013 3:55 pm Post subject: |
|
|
Rick,
This is fixed in the 13.5 release coming out sometime in the next week.
dave |
|
| Back to top |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|