PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgcc 13.9 fail to compile anything with GCC 4.8.2

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



Joined: 18 Sep 2013
Posts: 1

PostPosted: Fri Oct 25, 2013 2:41 pm    Post subject: pgcc 13.9 fail to compile anything with GCC 4.8.2 Reply with quote

System environment:archlinux & gcc 4.8.2, PGI compiler 13.9. PGI compiler will NOT compile anything.

A simple test program:

%hello.c
Code:

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


pgcc hello.c will come out:
Code:

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


Diagnose with pgcc -E hello.c
The output is:
Code:

# 1 "hello.c"
# 1 "/usr/include/stdio.h"
# 17 "/usr/include/stdio.h"
 
# 21 "/usr/include/stdio.h"
 
# 1 "/usr/include/features.h"
# 16 "/usr/include/features.h"
 
# 94 "/usr/include/features.h"
 
# 97 "/usr/include/features.h"
 
# 127 "/usr/include/features.h"
 
# 138 "/usr/include/features.h"
 
# 147 "/usr/include/features.h"
 
# 154 "/usr/include/features.h"
 
# 181 "/usr/include/features.h"
 
# 189 "/usr/include/features.h"
 
# 195 "/usr/include/features.h"
 
# 201 "/usr/include/features.h"
 
# 210 "/usr/include/features.h"
 
# 217 "/usr/include/features.h"
 
# 341 "/usr/include/features.h"
 
# 1 "/usr/include/stdc-predef.h"
# 16 "/usr/include/stdc-predef.h"
 
# 27 "/usr/include/stdc-predef.h"
 
# 29 "/usr/include/stdc-predef.h"
 
# 34 "/usr/include/stdc-predef.h"
 
# 37 "/usr/include/stdc-predef.h"
 
# 343 "/usr/include/features.h"
# 349 "/usr/include/features.h"
 
# 354 "/usr/include/features.h"
 
# 361 "/usr/include/features.h"
 
# 1 "/opt/pgi/linux86-64/13.9/include/sys/cdefs.h"
# 10 "/opt/pgi/linux86-64/13.9/include/sys/cdefs.h"
 
# 1 "/usr/include/sys/cdefs.h"
# 16 "/usr/include/sys/cdefs.h"
 
# 21 "/usr/include/sys/cdefs.h"
 
# 28 "/usr/include/sys/cdefs.h"
 
# 33 "/usr/include/sys/cdefs.h"
 
# 81 "/usr/include/sys/cdefs.h"
 
# 86 "/usr/include/sys/cdefs.h"
 
# 91 "/usr/include/sys/cdefs.h"
 
# 96 "/usr/include/sys/cdefs.h"
 
# 110 "/usr/include/sys/cdefs.h"
 
# 121 "/usr/include/sys/cdefs.h"
 
# 131 "/usr/include/sys/cdefs.h"
 
# 148 "/usr/include/sys/cdefs.h"
 
# 174 "/usr/include/sys/cdefs.h"
 
# 203 "/usr/include/sys/cdefs.h"
 
# 210 "/usr/include/sys/cdefs.h"
 
# 218 "/usr/include/sys/cdefs.h"
 
# 228 "/usr/include/sys/cdefs.h"
 
# 235 "/usr/include/sys/cdefs.h"
 
# 244 "/usr/include/sys/cdefs.h"
 
# 253 "/usr/include/sys/cdefs.h"
 
# 265 "/usr/include/sys/cdefs.h"
 
# 275 "/usr/include/sys/cdefs.h"
 
# 284 "/usr/include/sys/cdefs.h"
 
# 292 "/usr/include/sys/cdefs.h"
 
# 306 "/usr/include/sys/cdefs.h"
 
# 314 "/usr/include/sys/cdefs.h"
 
# 340 "/usr/include/sys/cdefs.h"
 
# 349 "/usr/include/sys/cdefs.h"
 
# 354 "/usr/include/sys/cdefs.h"
 
# 361 "/usr/include/sys/cdefs.h"
 
# 1 "/usr/include/bits/wordsize.h"
 
# 11 "/usr/include/bits/wordsize.h"
 
# 386 "/usr/include/sys/cdefs.h"
# 15 "/opt/pgi/linux86-64/13.9/include/sys/cdefs.h"
# 18 "/opt/pgi/linux86-64/13.9/include/sys/cdefs.h"
 
# 31 "/opt/pgi/linux86-64/13.9/include/sys/cdefs.h"
 
# 365 "/usr/include/features.h"
# 368 "/usr/include/features.h"
 
# 376 "/usr/include/features.h"
 
# 387 "/usr/include/features.h"
 
# 1 "/usr/include/gnu/stubs.h"
# 3 "/usr/include/gnu/stubs.h"
 
# 389 "/usr/include/features.h"
# 28 "/usr/include/stdio.h"
# 1 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
# 22 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 26 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 47 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 50 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 54 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 62 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 93 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 103 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 121 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 123 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 126 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 162 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 165 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 212 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
typedef unsigned long int size_t ;
# 241 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 244 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 359 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
 
 
# 394 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 17 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 34 "/usr/include/stdio.h"
# 1 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 18 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 22 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 1 "/usr/include/features.h"
# 16 "/usr/include/features.h"
 
# 28 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 1 "/usr/include/bits/wordsize.h"
 
# 11 "/usr/include/bits/wordsize.h"
 
# 29 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 1 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
# 22 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 26 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 47 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 50 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 54 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 62 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 93 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 103 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 121 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 123 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 126 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 162 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 165 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 241 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 244 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 359 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
 
 
# 394 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 17 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 32 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 33 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef unsigned char __u_char ;
typedef unsigned short int __u_short ;
typedef unsigned int __u_int ;
typedef unsigned long int __u_long ;
# 39 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef signed char __int8_t ;
typedef unsigned char __uint8_t ;
typedef signed short int __int16_t ;
typedef unsigned short int __uint16_t ;
typedef signed int __int32_t ;
typedef unsigned int __uint32_t ;
# 47 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
typedef signed long int __int64_t ;
typedef unsigned long int __uint64_t ;
 
# 55 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 57 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
typedef long int __quad_t ;
typedef unsigned long int __u_quad_t ;
 
# 102 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 131 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 1 "/usr/include/bits/typesizes.h"
# 17 "/usr/include/bits/typesizes.h"
 
# 27 "/usr/include/bits/typesizes.h"
 
# 29 "/usr/include/bits/typesizes.h"
 
# 78 "/usr/include/bits/typesizes.h"
 
# 81 "/usr/include/bits/typesizes.h"
 
# 85 "/usr/include/bits/typesizes.h"
 
# 137 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 139 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
typedef unsigned long int __dev_t ;   
typedef unsigned int __uid_t ;   
typedef unsigned int __gid_t ;   
typedef unsigned long int __ino_t ;   
typedef unsigned long int __ino64_t ;   
typedef unsigned int __mode_t ;   
typedef unsigned long int __nlink_t ;   
typedef long int __off_t ;   
typedef long int __off64_t ;   
typedef int __pid_t ;   
typedef struct { int __val [ 2 ] ; } __fsid_t ;   
typedef long int __clock_t ;   
typedef unsigned long int __rlim_t ;   
typedef unsigned long int __rlim64_t ;   
typedef unsigned int __id_t ;   
typedef long int __time_t ;   
typedef unsigned int __useconds_t ;
typedef long int __suseconds_t ;
# 158 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
typedef int __daddr_t ;   
typedef __SWBLK_T_TYPE __swblk_t ;   
typedef int __key_t ;   
# 162 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef int __clockid_t ;
# 165 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef void * __timer_t ;
# 168 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef long int __blksize_t ;
# 171 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 173 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef long int __blkcnt_t ;
typedef long int __blkcnt64_t ;
# 177 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef unsigned long int __fsblkcnt_t ;
typedef unsigned long int __fsblkcnt64_t ;
# 181 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef unsigned long int __fsfilcnt_t ;
typedef unsigned long int __fsfilcnt64_t ;
# 185 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
typedef long int __ssize_t ;
# 188 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef __off64_t __loff_t ;   
typedef __quad_t * __qaddr_t ;
typedef char * __caddr_t ;
# 193 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef long int __intptr_t ;
# 196 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
typedef unsigned int __socklen_t ;
# 36 "/usr/include/stdio.h"
# 43 "/usr/include/stdio.h"
 
struct _IO_FILE ;
# 47 "/usr/include/stdio.h"
 
typedef struct _IO_FILE FILE ;
# 63 "/usr/include/stdio.h"
 
typedef struct _IO_FILE __FILE ;
# 1 "/usr/include/libio.h"
# 26 "/usr/include/libio.h"
 
# 1 "/usr/include/_G_config.h"
# 2 "/usr/include/_G_config.h"
 
# 7 "/usr/include/_G_config.h"
 
# 1 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
# 18 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 22 "/opt/pgi/linux86-64/13.9/include/bits/types.h"
 
# 10 "/usr/include/_G_config.h"
# 1 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
# 22 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 26 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 47 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 50 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 54 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 62 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 93 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 103 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 121 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 123 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 126 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 162 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 165 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 241 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 244 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 359 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
 
 
# 394 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 17 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 16 "/usr/include/_G_config.h"
# 1 "/usr/include/wchar.h"
# 16 "/usr/include/wchar.h"
 
# 21 "/usr/include/wchar.h"
 
# 1 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stddef.h"
 
# 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
# 22 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 26 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 35 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 47 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 50 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 54 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 62 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 93 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 103 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 121 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 123 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 126 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 162 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 165 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 241 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 244 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 353 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
typedef unsigned int wint_t ;
# 359 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
 
 
# 394 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h"
 
# 17 "/opt/pgi/linux86-64/13.9/include/stddef.h"
# 52 "/usr/include/wchar.h"
# 54 "/usr/include/wchar.h"
 
# 64 "/usr/include/wchar.h"
 
# 73 "/usr/include/wchar.h"
 
# 81 "/usr/include/wchar.h"
 
typedef struct
{
  int __count ;
  union
  {
# 88 "/usr/include/wchar.h"
    unsigned int __wch ;
# 92 "/usr/include/wchar.h"
    char __wchb [ 4 ] ;
  } __value ;   
} __mbstate_t ;
# 100 "/usr/include/wchar.h"
 
# 898 "/usr/include/wchar.h"
 
# 21 "/usr/include/_G_config.h"
# 21 "/usr/include/_G_config.h"
typedef struct
{
  __off_t __pos ;
  __mbstate_t __state ;
} _G_fpos_t ;
typedef struct
{
  __off64_t __pos ;
  __mbstate_t __state ;
} _G_fpos64_t ;
# 45 "/usr/include/_G_config.h"
 
# 53 "/usr/include/_G_config.h"
 
# 32 "/usr/include/libio.h"
# 32 "/usr/include/libio.h"
 
# 47 "/usr/include/libio.h"
 
# 1 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
 
# 1 "/opt/pgi/linux86-64/13.9/include/va_list.h"
# 10 "/opt/pgi/linux86-64/13.9/include/va_list.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/va_list.h"
 
# 25 "/opt/pgi/linux86-64/13.9/include/va_list.h"
 
typedef struct __pgi_tag {
    unsigned int gp_offset ;
    unsigned int fp_offset ;
    char * overflow_arg_area ;   
    char * reg_save_area ;   
} __pgi_va_list [ 1 ] ;
# 34 "/opt/pgi/linux86-64/13.9/include/va_list.h"
typedef __pgi_va_list va_list ;
# 45 "/opt/pgi/linux86-64/13.9/include/va_list.h"
typedef __pgi_va_list __gnuc_va_list ;
# 24 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
# 30 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
extern void * __builtin_va_arg ( ) ;
# 50 "/usr/include/libio.h"
# 90 "/usr/include/libio.h"
 
# 124 "/usr/include/libio.h"
 
# 144 "/usr/include/libio.h"
struct _IO_jump_t ; struct _IO_FILE ;
# 146 "/usr/include/libio.h"
 
# 154 "/usr/include/libio.h"
typedef void _IO_lock_t ;
# 158 "/usr/include/libio.h"
 
# 160 "/usr/include/libio.h"
struct _IO_marker {
  struct _IO_marker * _next ;
  struct _IO_FILE * _sbuf ;
 
 
   
  int _pos ;
# 177 "/usr/include/libio.h"
} ;
# 179 "/usr/include/libio.h"
 
enum __codecvt_result
{
  __codecvt_ok ,
  __codecvt_partial ,
  __codecvt_error ,
  __codecvt_noconv
} ;
# 245 "/usr/include/libio.h"
struct _IO_FILE {
  int _flags ;   
# 249 "/usr/include/libio.h"
   
   
  char * _IO_read_ptr ;   
  char * _IO_read_end ;   
  char * _IO_read_base ;   
  char * _IO_write_base ;   
  char * _IO_write_ptr ;   
  char * _IO_write_end ;   
  char * _IO_buf_base ;   
  char * _IO_buf_end ;   
   
  char * _IO_save_base ;
  char * _IO_backup_base ;
  char * _IO_save_end ;
# 264 "/usr/include/libio.h"
  struct _IO_marker * _markers ;
# 266 "/usr/include/libio.h"
  struct _IO_FILE * _chain ;
# 268 "/usr/include/libio.h"
  int _fileno ;
# 272 "/usr/include/libio.h"
  int _flags2 ;
# 274 "/usr/include/libio.h"
  __off_t _old_offset ;
# 277 "/usr/include/libio.h"
   
  unsigned short _cur_column ;
  signed char _vtable_offset ;
  char _shortbuf [ 1 ] ;
# 282 "/usr/include/libio.h"
   
# 284 "/usr/include/libio.h"
  _IO_lock_t * _lock ;
# 293 "/usr/include/libio.h"
  __off64_t _offset ;
# 302 "/usr/include/libio.h"
  void * __pad1 ;
  void * __pad2 ;
  void * __pad3 ;
  void * __pad4 ;
  size_t __pad5 ;
# 308 "/usr/include/libio.h"
  int _mode ;
   
  char _unused2 [ 15 * sizeof ( int ) - 4 * sizeof ( void * ) - sizeof ( size_t ) ] ;
# 312 "/usr/include/libio.h"
} ;
# 315 "/usr/include/libio.h"
typedef struct _IO_FILE _IO_FILE ;
# 318 "/usr/include/libio.h"
struct _IO_FILE_plus ;
# 320 "/usr/include/libio.h"
extern struct _IO_FILE_plus _IO_2_1_stdin_ ;
extern struct _IO_FILE_plus _IO_2_1_stdout_ ;
extern struct _IO_FILE_plus _IO_2_1_stderr_ ;
# 334 "/usr/include/libio.h"
 
# 337 "/usr/include/libio.h"
 
typedef __ssize_t __io_read_fn ( void * __cookie , char * __buf , size_t __nbytes ) ;
# 345 "/usr/include/libio.h"
 
typedef __ssize_t __io_write_fn ( void * __cookie , const char * __buf ,
             size_t __n ) ;
# 354 "/usr/include/libio.h"
 
typedef int __io_seek_fn ( void * __cookie , __off64_t * __pos , int __w ) ;
# 357 "/usr/include/libio.h"
 
typedef int __io_close_fn ( void * __cookie ) ;
# 390 "/usr/include/libio.h"
extern int __underflow ( _IO_FILE * ) ;
extern int __uflow ( _IO_FILE * ) ;
extern int __overflow ( _IO_FILE * , int ) ;
# 434 "/usr/include/libio.h"
extern int _IO_getc ( _IO_FILE * __fp ) ;
extern int _IO_putc ( int __c , _IO_FILE * __fp ) ;
extern int _IO_feof ( _IO_FILE * __fp ) ;
extern int _IO_ferror ( _IO_FILE * __fp ) ;
# 439 "/usr/include/libio.h"
extern int _IO_peekc_locked ( _IO_FILE * __fp ) ;
# 441 "/usr/include/libio.h"
 
# 445 "/usr/include/libio.h"
extern void _IO_flockfile ( _IO_FILE * ) ;
extern void _IO_funlockfile ( _IO_FILE * ) ;
extern int _IO_ftrylockfile ( _IO_FILE * ) ;
# 464 "/usr/include/libio.h"
extern int _IO_vfscanf ( _IO_FILE * __restrict , const char * __restrict ,
         __gnuc_va_list , int * __restrict ) ;
extern int _IO_vfprintf ( _IO_FILE * __restrict , const char * __restrict ,
          __gnuc_va_list ) ;
extern __ssize_t _IO_padn ( _IO_FILE * , int , __ssize_t ) ;
extern size_t _IO_sgetn ( _IO_FILE * , void * , size_t ) ;
# 471 "/usr/include/libio.h"
extern __off64_t _IO_seekoff ( _IO_FILE * , __off64_t , int , int ) ;
extern __off64_t _IO_seekpos ( _IO_FILE * , __off64_t , int ) ;
# 474 "/usr/include/libio.h"
extern void _IO_free_backup_area ( _IO_FILE * ) ;
# 75 "/usr/include/stdio.h"
# 1 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
# 10 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
 
# 14 "/opt/pgi/linux86-64/13.9/include/stdarg.h"
 
# 84 "/usr/include/stdio.h"
# 90 "/usr/include/stdio.h"
typedef __off_t off_t ;
# 102 "/usr/include/stdio.h"
typedef __ssize_t ssize_t ;
# 107 "/usr/include/stdio.h"
 
# 110 "/usr/include/stdio.h"
typedef _G_fpos_t fpos_t ;
# 119 "/usr/include/stdio.h"
 
# 125 "/usr/include/stdio.h"
 
# 132 "/usr/include/stdio.h"
 
# 139 "/usr/include/stdio.h"
 
# 150 "/usr/include/stdio.h"
 
# 163 "/usr/include/stdio.h"
 
# 1 "/usr/include/bits/stdio_lim.h"
# 16 "/usr/include/bits/stdio_lim.h"
 
# 165 "/usr/include/stdio.h"
# 167 "/usr/include/stdio.h"
 
extern struct _IO_FILE * stdin ;   
extern struct _IO_FILE * stdout ;   
extern struct _IO_FILE * stderr ;   
 
# 177 "/usr/include/stdio.h"
 
extern int remove ( const char * __filename ) ;
 
extern int rename ( const char * __old , const char * __new ) ;
# 184 "/usr/include/stdio.h"
 
extern int renameat ( int __oldfd , const char * __old , int __newfd ,
           const char * __new ) ;
# 193 "/usr/include/stdio.h"
 
# 195 "/usr/include/stdio.h"
extern FILE * tmpfile ( void ) ;
# 208 "/usr/include/stdio.h"
 
extern char * tmpnam ( char * __s ) ;
# 214 "/usr/include/stdio.h"
 
extern char * tmpnam_r ( char * __s ) ;
# 226 "/usr/include/stdio.h"
 
extern char * tempnam ( const char * __dir , const char * __pfx )
       ;
# 236 "/usr/include/stdio.h"
 
extern int fclose ( FILE * __stream ) ;
# 241 "/usr/include/stdio.h"
 
extern int fflush ( FILE * __stream ) ;
# 251 "/usr/include/stdio.h"
 
extern int fflush_unlocked ( FILE * __stream ) ;
# 271 "/usr/include/stdio.h"
 
extern FILE * fopen ( const char * __restrict __filename ,
          const char * __restrict __modes ) ;
# 277 "/usr/include/stdio.h"
 
extern FILE * freopen ( const char * __restrict __filename ,
            const char * __restrict __modes ,
            FILE * __restrict __stream ) ;
# 305 "/usr/include/stdio.h"
 
extern FILE * fdopen ( int __fd , const char * __modes ) ;
# 318 "/usr/include/stdio.h"
 
extern FILE * fmemopen ( void * __s , size_t __len , const char * __modes )
   ;
# 324 "/usr/include/stdio.h"
 
extern FILE * open_memstream ( char * * __bufloc , size_t * __sizeloc ) ;
# 331 "/usr/include/stdio.h"
 
extern void setbuf ( FILE * __restrict __stream , char * __restrict __buf ) ;
# 335 "/usr/include/stdio.h"
 
extern int setvbuf ( FILE * __restrict __stream , char * __restrict __buf ,
          int __modes , size_t __n ) ;
# 342 "/usr/include/stdio.h"
 
extern void setbuffer ( FILE * __restrict __stream , char * __restrict __buf ,
             size_t __size ) ;
# 346 "/usr/include/stdio.h"
 
extern void setlinebuf ( FILE * __stream ) ;
# 355 "/usr/include/stdio.h"
 
extern int fprintf ( FILE * __restrict __stream ,
          const char * __restrict __format , ... ) ;
# 361 "/usr/include/stdio.h"
 
extern int printf ( const char * __restrict __format , ... ) ;
 
extern int sprintf ( char * __restrict __s ,
          const char * __restrict __format , ... ) ;
# 370 "/usr/include/stdio.h"
 
extern int vfprintf ( FILE * __restrict __s , const char * __restrict __format ,
           __gnuc_va_list __arg ) ;
# 376 "/usr/include/stdio.h"
 
extern int vprintf ( const char * __restrict __format , __gnuc_va_list __arg ) ;
 
extern int vsprintf ( char * __restrict __s , const char * __restrict __format ,
           __gnuc_va_list __arg ) ;
# 385 "/usr/include/stdio.h"
 
extern int snprintf ( char * __restrict __s , size_t __maxlen ,
           const char * __restrict __format , ... )
      __attribute__ ( ( __format__ ( __printf__ , 3 , 4 ) ) ) ;
# 390 "/usr/include/stdio.h"
extern int vsnprintf ( char * __restrict __s , size_t __maxlen ,
            const char * __restrict __format , __gnuc_va_list __arg )
      __attribute__ ( ( __format__ ( __printf__ , 3 , 0 ) ) ) ;
# 411 "/usr/include/stdio.h"
 
extern int vdprintf ( int __fd , const char * __restrict __fmt ,
           __gnuc_va_list __arg )
     __attribute__ ( ( __format__ ( __printf__ , 2 , 0 ) ) ) ;
extern int dprintf ( int __fd , const char * __restrict __fmt , ... )
     __attribute__ ( ( __format__ ( __printf__ , 2 , 3 ) ) ) ;
# 424 "/usr/include/stdio.h"
 
extern int fscanf ( FILE * __restrict __stream ,
         const char * __restrict __format , ... ) ;
# 430 "/usr/include/stdio.h"
 
extern int scanf ( const char * __restrict __format , ... ) ;
 
extern int sscanf ( const char * __restrict __s ,
         const char * __restrict __format , ... ) ;
# 452 "/usr/include/stdio.h"
extern int __isoc99_fscanf ( FILE * __restrict __stream ,
             const char * __restrict __format , ... ) ;
extern int __isoc99_scanf ( const char * __restrict __format , ... ) ;
extern int __isoc99_sscanf ( const char * __restrict __s ,
             const char * __restrict __format , ... ) ;
# 470 "/usr/include/stdio.h"
 
extern int vfscanf ( FILE * __restrict __s , const char * __restrict __format ,
          __gnuc_va_list __arg )
     __attribute__ ( ( __format__ ( __scanf__ , 2 , 0 ) ) ) ;
# 478 "/usr/include/stdio.h"
 
extern int vscanf ( const char * __restrict __format , __gnuc_va_list __arg )
     __attribute__ ( ( __format__ ( __scanf__ , 1 , 0 ) ) ) ;
# 482 "/usr/include/stdio.h"
 
extern int vsscanf ( const char * __restrict __s ,
          const char * __restrict __format , __gnuc_va_list __arg )
      __attribute__ ( ( __format__ ( __scanf__ , 2 , 0 ) ) ) ;
# 508 "/usr/include/stdio.h"
extern int __isoc99_vfscanf ( FILE * __restrict __s ,
              const char * __restrict __format ,
              __gnuc_va_list __arg ) ;
extern int __isoc99_vscanf ( const char * __restrict __format ,
             __gnuc_va_list __arg ) ;
extern int __isoc99_vsscanf ( const char * __restrict __s ,
              const char * __restrict __format ,
              __gnuc_va_list __arg ) ;
# 530 "/usr/include/stdio.h"
 
extern int fgetc ( FILE * __stream ) ;
extern int getc ( FILE * __stream ) ;
# 537 "/usr/include/stdio.h"
 
extern int getchar ( void ) ;
# 542 "/usr/include/stdio.h"
 
# 549 "/usr/include/stdio.h"
 
extern int getc_unlocked ( FILE * __stream ) ;
extern int getchar_unlocked ( void ) ;
# 560 "/usr/include/stdio.h"
 
extern int fgetc_unlocked ( FILE * __stream ) ;
# 572 "/usr/include/stdio.h"
 
extern int fputc ( int __c , FILE * __stream ) ;
extern int putc ( int __c , FILE * __stream ) ;
# 579 "/usr/include/stdio.h"
 
extern int putchar ( int __c ) ;
# 584 "/usr/include/stdio.h"
 
# 593 "/usr/include/stdio.h"
 
extern int fputc_unlocked ( int __c , FILE * __stream ) ;
# 601 "/usr/include/stdio.h"
 
extern int putc_unlocked ( int __c , FILE * __stream ) ;
extern int putchar_unlocked ( int __c ) ;
# 609 "/usr/include/stdio.h"
 
extern int getw ( FILE * __stream ) ;
# 612 "/usr/include/stdio.h"
 
extern int putw ( int __w , FILE * __stream ) ;
# 621 "/usr/include/stdio.h"
 
extern char * fgets ( char * __restrict __s , int __n , FILE * __restrict __stream )
     ;
# 637 "/usr/include/stdio.h"
 
extern char * gets ( char * __s ) ;
# 664 "/usr/include/stdio.h"
 
extern __ssize_t __getdelim ( char * * __restrict __lineptr ,
                size_t * __restrict __n , int __delimiter ,
                FILE * __restrict __stream ) ;
extern __ssize_t getdelim ( char * * __restrict __lineptr ,
              size_t * __restrict __n , int __delimiter ,
              FILE * __restrict __stream ) ;
# 677 "/usr/include/stdio.h"
 
extern __ssize_t getline ( char * * __restrict __lineptr ,
             size_t * __restrict __n ,
             FILE * __restrict __stream ) ;
# 688 "/usr/include/stdio.h"
 
extern int fputs ( const char * __restrict __s , FILE * __restrict __stream ) ;
# 694 "/usr/include/stdio.h"
 
extern int puts ( const char * __s ) ;
# 701 "/usr/include/stdio.h"
 
extern int ungetc ( int __c , FILE * __stream ) ;
# 708 "/usr/include/stdio.h"
 
extern size_t fread ( void * __restrict __ptr , size_t __size ,
           size_t __n , FILE * __restrict __stream ) ;
# 714 "/usr/include/stdio.h"
 
extern size_t fwrite ( const void * __restrict __ptr , size_t __size ,
            size_t __n , FILE * __restrict __s ) ;
# 736 "/usr/include/stdio.h"
 
extern size_t fread_unlocked ( void * __restrict __ptr , size_t __size ,
               size_t __n , FILE * __restrict __stream ) ;
extern size_t fwrite_unlocked ( const void * __restrict __ptr , size_t __size ,
                size_t __n , FILE * __restrict __stream ) ;
# 748 "/usr/include/stdio.h"
 
extern int fseek ( FILE * __stream , long int __off , int __whence ) ;
# 753 "/usr/include/stdio.h"
 
extern long int ftell ( FILE * __stream ) ;
# 758 "/usr/include/stdio.h"
 
extern void rewind ( FILE * __stream ) ;
# 765 "/usr/include/stdio.h"
 
# 772 "/usr/include/stdio.h"
 
extern int fseeko ( FILE * __stream , __off_t __off , int __whence ) ;
# 777 "/usr/include/stdio.h"
 
extern __off_t ftello ( FILE * __stream ) ;
# 797 "/usr/include/stdio.h"
 
extern int fgetpos ( FILE * __restrict __stream , fpos_t * __restrict __pos ) ;
# 802 "/usr/include/stdio.h"
 
extern int fsetpos ( FILE * __stream , const fpos_t * __pos ) ;
# 825 "/usr/include/stdio.h"
 
extern void clearerr ( FILE * __stream ) ;
 
extern int feof ( FILE * __stream ) ;
 
extern int ferror ( FILE * __stream ) ;
# 834 "/usr/include/stdio.h"
 
extern void clearerr_unlocked ( FILE * __stream ) ;
extern int feof_unlocked ( FILE * __stream ) ;
extern int ferror_unlocked ( FILE * __stream ) ;
# 845 "/usr/include/stdio.h"
 
extern void perror ( const char * __s ) ;
# 852 "/usr/include/stdio.h"
 
# 1 "/usr/include/bits/sys_errlist.h"
# 17 "/usr/include/bits/sys_errlist.h"
 
# 23 "/usr/include/bits/sys_errlist.h"
 
# 26 "/usr/include/bits/sys_errlist.h"
extern int sys_nerr ;
extern const char * const sys_errlist [ ] ;
# 854 "/usr/include/stdio.h"
# 857 "/usr/include/stdio.h"
 
extern int fileno ( FILE * __stream ) ;
# 862 "/usr/include/stdio.h"
 
extern int fileno_unlocked ( FILE * __stream ) ;
# 872 "/usr/include/stdio.h"
 
extern FILE * popen ( const char * __command , const char * __modes ) ;
# 878 "/usr/include/stdio.h"
 
extern int pclose ( FILE * __stream ) ;
# 884 "/usr/include/stdio.h"
 
extern char * ctermid ( char * __s ) ;
# 910 "/usr/include/stdio.h"
 
# 912 "/usr/include/stdio.h"
 
extern void flockfile ( FILE * __stream ) ;
# 916 "/usr/include/stdio.h"
 
extern int ftrylockfile ( FILE * __stream ) ;
# 919 "/usr/include/stdio.h"
 
extern void funlockfile ( FILE * __stream ) ;
# 932 "/usr/include/stdio.h"
 
# 2 "hello.c"
# 2 "hello.c"
int main ( )
{
    printf ( " hello\n" ) ;
}
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Oct 28, 2013 2:49 pm    Post subject: Reply with quote

Hi winstonwu,

You can find our list of support Linux distributions at: http://www.pgroup.com/support/install.htm#linux_info

Although your system is not supported, I've asked our engineers to investigate if are any work arounds for you. We do ship include files that work with GNU 4.7 that you can try (or in the case of types.h they were removed from the PGI install), but I don't know if solve your issues since I can't test it here.

Once I know more, I'll let you know.

- Mat
Back to top
View user's profile
Crni Gorac



Joined: 25 Nov 2013
Posts: 2

PostPosted: Tue Nov 26, 2013 1:10 am    Post subject: Reply with quote

Any updates on these issues?

I've also installed PGI Workstation 13.10 on machine with GCC 4.8.2 installed, and nothing could be compiled using pgcc. I've installed GCC 4.7 from source then, and put GCC 4.7 executable directory as first in PATH before re-installing PGI Workstation, however pgcc still won't compile anything. So - any instructions on how to install PGI Workstation so that it uses particular GCC version?

Thanks.
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 441

PostPosted: Wed Nov 27, 2013 4:45 pm    Post subject: Reply with quote

I was able to correct things by modifying
$PGI/linux86-64/13.10/bits/types.h

1. __SWBLK_T_TYPE is never defined

__SSTD_TYPE __SWBLK_T_TYPE __swblk_t;

with ifdefs.
at line 159, comment out, or

#if defined ( __SWBLK_T_TYPE)
__SSTD_TYPE __SWBLK_T_TYPE __swblk_t;
#end if





2. missing a declaration of __syscall_slong_t and __syscall_ulong_t

add the lines

typedef long int __syscall_slong_t;
typedef unsigned long int __syscall_ulong_t;
Back to top
View user's profile
Crni Gorac



Joined: 25 Nov 2013
Posts: 2

PostPosted: Fri Nov 29, 2013 1:03 am    Post subject: Reply with quote

Thanks, that indeed fixes it.
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