PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

C compiler cannot run C compiled programs
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Wed May 25, 2005 12:52 pm    Post subject: Reply with quote

Your "libwrfio_nf.a" library either wasn't built, failed to build, or is not in the /home/3dvar/dat_dir/wrf3dvar/external/io_netcdf directory. This is the first thing the "compile" script builds so either an error occured or it was skipped. Re-run "compile" and see if there are any errors when building this library.

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Fri May 27, 2005 9:02 am    Post subject: Reply with quote

hi Mat,
I tried to reinstall the compiler again,and compile a simple hello.c program to see if the pgcc is working ,and this is what i get.Is this usual?
thanks,
petero.

[root@drizzle 3dvar]# pgcc -v hello.c

/usr/pgi/linux86/6.0/bin/pgc hello.c -opt 1 -x 119 0xa10000 -x 119 0x100000 -x 1 22 0x40 -x 123 0x1000 -x 127 4 -x 119 0x40000000 -x 19 0x400000 -x 80 0x300 -y 8 0 0x1000 -x 80 0x40000000 -x 119 0x8000000 -astype 0 -stdinc /usr/pgi/linux86/6. 0/include:/usr/local/include:/usr/lib/gcc-lib/i386-redhat-linux/3.2/include:/usr /lib/gcc-lib/i386-redhat-linux/3.2/include:/usr/include -def unix -def __unix -d ef __unix__ -def linux -def __linux -def __linux__ -def __inline__= -def i386 -d ef __i386 -def __i386__ -def __NO_MATH_INLINES -def linux86 -def __THROW= -predi cate '#machine(i386) #lint(off) #system(unix) #system(posix) #cpu(i386)' -cmdlin e '+pgcc hello.c -v' -asm /tmp/pgccaaaaaeCsal.s
NOTE: your evaluation license will expire in 14 days, 0.347 hours.
For a permanent license, please read the order acknowledgement
that you received. Connect to https://www.pgroup.com/License with
the username and password in the order acknowledgement.

PGC-I-0222-Redundant definition for symbol __THROW (/usr/include/sys/cdefs.h: 57 )
PGC-I-0222-Redundant definition for symbol __stub___kernel_cosl (/usr/include/gn u/stubs.h: 11)
PGC-I-0222-Redundant definition for symbol __stub___kernel_sinl (/usr/include/gn u/stubs.h: 13)
PGC-I-0222-Redundant definition for symbol __stub___kernel_tanl (/usr/include/gn u/stubs.h: 15)
PGC-I-0222-Redundant definition for symbol __stub_chflags (/usr/include/gnu/stub s.h: 17)
PGC-I-0222-Redundant definition for symbol __stub_fattach (/usr/include/gnu/stub s.h: 19)
PGC-I-0222-Redundant definition for symbol __stub_fchflags (/usr/include/gnu/stu bs.h: 21)
PGC-I-0222-Redundant definition for symbol __stub_fdetach (/usr/include/gnu/stub s.h: 23)
PGC-I-0222-Redundant definition for symbol __stub_futimes (/usr/include/gnu/stub s.h: 25)
PGC-I-0222-Redundant definition for symbol __stub_gtty (/usr/include/gnu/stubs.h : 27)
PGC-I-0222-Redundant definition for symbol __stub_lchmod (/usr/include/gnu/stubs .h: 29)
PGC-I-0222-Redundant definition for symbol __stub_lutimes (/usr/include/gnu/stub s.h: 31)
PGC-I-0222-Redundant definition for symbol __stub_posix_fadvise64 (/usr/include/ gnu/stubs.h: 33)
PGC-I-0222-Redundant definition for symbol __stub_remap_file_pages (/usr/include /gnu/stubs.h: 35)
PGC-I-0222-Redundant definition for symbol __stub_revoke (/usr/include/gnu/stubs .h: 37)
PGC-I-0222-Redundant definition for symbol __stub_setlogin (/usr/include/gnu/stu bs.h: 39)
PGC-I-0222-Redundant definition for symbol __stub_sigreturn (/usr/include/gnu/st ubs.h: 41)
PGC-I-0222-Redundant definition for symbol __stub_sstk (/usr/include/gnu/stubs.h : 43)
PGC-I-0222-Redundant definition for symbol __stub_stty (/usr/include/gnu/stubs.h : 45)
PGC-I-0222-Redundant definition for symbol __need_wint_t (/usr/include/wchar.h: 47)
PGC-I-0222-Redundant definition for symbol __need_wint_t (/usr/include/wchar.h: 47)
PGC/x86 Linux/x86 6.0-4: compilation completed with informational messages

/usr/bin/as /tmp/pgccaaaaaeCsal.s -o /tmp/pgccbaaaaeCsal.o

/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-redhat-linux/3 .2/crtbegin.o -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /tmp/pgccbaaaaeCsal .o -L/usr/pgi/linux86/6.0/lib -L/usr/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3. 2 -rpath /usr/pgi/linux86/6.0/lib -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc /usr/lib /gcc-lib/i386-redhat-linux/3.2/crtend.o /usr/lib/crtn.o
Unlinking /tmp/pgccaaaaaeCsal.s
Unlinking /tmp/pgccbaaaaeCsal.o
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Fri May 27, 2005 9:20 am    Post subject: Reply with quote

hi Mat,
I tried to reinstall the compiler again,and compile a simple hello.c program to see if the pgcc is working ,and this is what i get.Is this usual?
thanks,
petero.

[root@drizzle 3dvar]# pgcc -v hello.c

/usr/pgi/linux86/6.0/bin/pgc hello.c -opt 1 -x 119 0xa10000 -x 119 0x100000 -x 1 22 0x40 -x 123 0x1000 -x 127 4 -x 119 0x40000000 -x 19 0x400000 -x 80 0x300 -y 8 0 0x1000 -x 80 0x40000000 -x 119 0x8000000 -astype 0 -stdinc /usr/pgi/linux86/6. 0/include:/usr/local/include:/usr/lib/gcc-lib/i386-redhat-linux/3.2/include:/usr /lib/gcc-lib/i386-redhat-linux/3.2/include:/usr/include -def unix -def __unix -d ef __unix__ -def linux -def __linux -def __linux__ -def __inline__= -def i386 -d ef __i386 -def __i386__ -def __NO_MATH_INLINES -def linux86 -def __THROW= -predi cate '#machine(i386) #lint(off) #system(unix) #system(posix) #cpu(i386)' -cmdlin e '+pgcc hello.c -v' -asm /tmp/pgccaaaaaeCsal.s
NOTE: your evaluation license will expire in 14 days, 0.347 hours.
For a permanent license, please read the order acknowledgement
that you received. Connect to https://www.pgroup.com/License with
the username and password in the order acknowledgement.

PGC-I-0222-Redundant definition for symbol __THROW (/usr/include/sys/cdefs.h: 57 )
PGC-I-0222-Redundant definition for symbol __stub___kernel_cosl (/usr/include/gn u/stubs.h: 11)
PGC-I-0222-Redundant definition for symbol __stub___kernel_sinl (/usr/include/gn u/stubs.h: 13)
PGC-I-0222-Redundant definition for symbol __stub___kernel_tanl (/usr/include/gn u/stubs.h: 15)
PGC-I-0222-Redundant definition for symbol __stub_chflags (/usr/include/gnu/stub s.h: 17)
PGC-I-0222-Redundant definition for symbol __stub_fattach (/usr/include/gnu/stub s.h: 19)
PGC-I-0222-Redundant definition for symbol __stub_fchflags (/usr/include/gnu/stu bs.h: 21)
PGC-I-0222-Redundant definition for symbol __stub_fdetach (/usr/include/gnu/stub s.h: 23)
PGC-I-0222-Redundant definition for symbol __stub_futimes (/usr/include/gnu/stub s.h: 25)
PGC-I-0222-Redundant definition for symbol __stub_gtty (/usr/include/gnu/stubs.h : 27)
PGC-I-0222-Redundant definition for symbol __stub_lchmod (/usr/include/gnu/stubs .h: 29)
PGC-I-0222-Redundant definition for symbol __stub_lutimes (/usr/include/gnu/stub s.h: 31)
PGC-I-0222-Redundant definition for symbol __stub_posix_fadvise64 (/usr/include/ gnu/stubs.h: 33)
PGC-I-0222-Redundant definition for symbol __stub_remap_file_pages (/usr/include /gnu/stubs.h: 35)
PGC-I-0222-Redundant definition for symbol __stub_revoke (/usr/include/gnu/stubs .h: 37)
PGC-I-0222-Redundant definition for symbol __stub_setlogin (/usr/include/gnu/stu bs.h: 39)
PGC-I-0222-Redundant definition for symbol __stub_sigreturn (/usr/include/gnu/st ubs.h: 41)
PGC-I-0222-Redundant definition for symbol __stub_sstk (/usr/include/gnu/stubs.h : 43)
PGC-I-0222-Redundant definition for symbol __stub_stty (/usr/include/gnu/stubs.h : 45)
PGC-I-0222-Redundant definition for symbol __need_wint_t (/usr/include/wchar.h: 47)
PGC-I-0222-Redundant definition for symbol __need_wint_t (/usr/include/wchar.h: 47)
PGC/x86 Linux/x86 6.0-4: compilation completed with informational messages

/usr/bin/as /tmp/pgccaaaaaeCsal.s -o /tmp/pgccbaaaaeCsal.o

/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-redhat-linux/3 .2/crtbegin.o -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /tmp/pgccbaaaaeCsal .o -L/usr/pgi/linux86/6.0/lib -L/usr/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3. 2 -rpath /usr/pgi/linux86/6.0/lib -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc /usr/lib /gcc-lib/i386-redhat-linux/3.2/crtend.o /usr/lib/crtn.o
Unlinking /tmp/pgccaaaaaeCsal.s
Unlinking /tmp/pgccbaaaaeCsal.o
Back to top
View user's profile
mkcolg



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

PostPosted: Fri May 27, 2005 10:57 am    Post subject: Reply with quote

Hi Peter,

These are normal informational messages and your PGI installation is most likely working correctly. Note, you should not need to re-install the compilers since the problem is "libwrfio_nf.a" didn't get built. Were you able to determine why?

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Fri May 27, 2005 2:16 pm    Post subject: Reply with quote

Mat,
I have recompile again ./compile 3dvar and i have got the following errors
,So i think,this might be the reason as to why the libwrfio_nf.a is not be created.
Any ideas?
thanks,
Petero

PGF90-S-0038-Symbol, nf_inq_varid, has not been explicitly declared (wrf_io.f)
PGF90-S-0038-Symbol, nf_inq_vartype, has not been explicitly declared (wrf_io.f)
PGF90-S-0038-Symbol, nf_get_att_int, has not been explicitly declared (wrf_io.f)
0 inform, 0 warnings, 12 severes, 0 fatal for ext_ncd_get_var_info
make[3]: [wrf_io.o] Error 2 (ignored)
........
.........
PGF90-S-0038-Symbol, nf_put_vara_real, has not been explicitly declared (field_routines.f)
PGF90-S-0038-Symbol, nf_get_vara_real, has not been explicitly declared (field_routines.f)
0 inform, 0 warnings, 2 severes, 0 fatal for ext_ncd_logicalfieldio
make[3]: [field_routines.o] Error 2 (ignored)
/bin/rm -f libwrfio_nf.a
ar cr libwrfio_nf.a wrf_io.o field_routines.o
ar: wrf_io.o: No such file or directory
make[3]: [libwrfio_nf.a] Error 1 (ignored)
make[3]: Leaving directory `/home/3dvar/dat_dir/wrf3dvar/external/io_netcdf
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, 3, 4  Next
Page 3 of 4

 
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