PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

installing and compiling netcdf-3.6.0-p1 with pgf90 compiler
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Wed May 11, 2005 9:29 am    Post subject: Reply with quote

Mat,
I removed the pgi tree and install it again as you suggested and run ./configure ,but i still get these errors below in config.log.Also i have included the compilation of my simple hello.c program,localrc configuration and dryrun x.c.

Any suggestions as to what went wrong,
thanks,
petero

1) checking for C compiler default output file name... configure: error: C compiler cannot create executables
2) configure:1573: pgcc -02 -Msignextend -V -DNDEBUG -DpgiFortran conftest.c >&5
pgcc-Warning-Unknown switch: -02
./PGIinstall: No such file or directory
3) configure: failed program was:
/* confdefs.h. */

-----this is localrc file configuration--------------------
[root@drizzle bin]# cat /usr/pgi/linux86/6.0/bin/localrc
set LFC=-lg2c;
set LDSO=/lib/ld-linux.so.2;
set GCCDIR=/usr/lib/gcc-lib/i386-redhat-linux/3.2;
set GCCINC=/usr/lib/gcc-lib/i386-redhat-linux/3.2/include;
set G77DIR=/usr/lib/gcc-lib/i386-redhat-linux/3.2;
set THROW=__THROW=;
set HAMMER=;
set X86_64=;
# makelocalrc executed by root Tue May 10 23:46:49
-------------end of localrc----------------------

------------this is gcc -v hello.c---------------
[root@drizzle 3dvar]# gcc -v hello.c
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/u sr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i 386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
/usr/lib/gcc-lib/i386-redhat-linux/3.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MIN OR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_ linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__li nux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ hello.c -quiet -dumpbase hello.c -ve rsion -o /tmp/ccK15EEL.s
GNU CPP version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (cpplib) (i386 Linux/ELF)
GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (i386-redhat-linux)
compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7).
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include
/usr/include
End of search list.
as -V -Qy -o /tmp/cco1a1yn.o /tmp/ccK15EEL.s
GNU assembler version 2.13.90.0.2 (i386-redhat-linux) using BFD version 2.13.90. 0.2 20020802
/usr/lib/gcc-lib/i386-redhat-linux/3.2/collect2 --eh-frame-hdr -m elf_i386 -dyn amic-linker /lib/ld-linux.so.2 /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../c rt1.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crti.o /usr/lib/gcc-lib/i3 86-redhat-linux/3.2/crtbegin.o -L/usr/lib/gcc-lib/i386-redhat-linux/3.2 -L/usr/l ib/gcc-lib/i386-redhat-linux/3.2/../../.. /tmp/cco1a1yn.o -lgcc -lgcc_eh -lc -lg cc -lgcc_eh /usr/lib/gcc-lib/i386-redhat-linux/3.2/crtend.o /usr/lib/gcc-lib/i38 6-redhat-linux/3.2/../../../crtn.o
[root@drizzle 3dvar]# gcc hello.c
[root@drizzle 3dvar]#
------------------end of gcc compilation---------------------
-----------------start of dryrun x.c-------------------------
[root@drizzle 3dvar]# cd /usr/pgi/linux86/6.0/bin/
[root@drizzle bin]# pgcc -V -dryrun x.c
Reading rcfile /usr/pgi/linux86/6.0/bin/.pgccrc
Reading rcfile /usr/pgi/linux86/6.0/bin/nativerc
Reading rcfile /usr/pgi/linux86/6.0/bin/fnativerc
Reading rcfile /usr/pgi/linux86/6.0/bin/ccrc
Reading rcfile /usr/pgi/linux86/6.0/bin/x86rc
Reading rcfile /usr/pgi/linux86/6.0/bin/x8632rc
Reading rcfile /usr/pgi/linux86/6.0/bin/lin86rc
Reading rcfile /usr/pgi/linux86/6.0/bin/lin8632rc
Reading rcfile /usr/pgi/linux86/6.0/bin/iparc
Reading rcfile /usr/pgi/linux86/6.0/bin/localrc
Skipping siterc (not found)
Skipping .mypgccrc (not found)

pgcc 6.0-1 32-bit target on x86 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.

/usr/pgi/linux86/6.0/bin/pgc x.c -opt 1 -version -terse 1 -inform warn -x 119 0xa10000 -x 119 0x100000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 119 0x40000000 -x 69 4 -x 19 0x400000 -x 80 0x300 -y 80 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 -def __unix__ -def linux -def __linux -def __linux__ -def __inline__= -def i386 -def __i386 -def __i386__ -def __NO_MATH_INLINES -def linux86 -def __THROW= -predicate '#machine(i386) #lint(off) #system(unix) #system(posix) #cpu(i386)' -asm /tmp/pgccaaaaamlCaC.s

/usr/bin/as /tmp/pgccaaaaamlCaC.s -o /tmp/pgccbaaaamlCaC.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/pgccbaaaamlCaC.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/pgccaaaaamlCaC.s
Unlinking /tmp/pgccbaaaamlCaC.o
[root@drizzle bin]#
--------------------------end of dryrun x.c-----------------------------
Back to top
View user's profile
mkcolg



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

PostPosted: Wed May 11, 2005 12:54 pm    Post subject: Reply with quote

Hi Petero,

Looks like you've got it installed correctly. The error your geting now is because the the flag is "-O2" (the letter 'O' as in optimization level 2), not "-02" (the number zero).

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Sun May 15, 2005 8:46 pm    Post subject: C compiler cannot run C compiled programs. Reply with quote

hi mat,
It seems everything is okay,but i have one error which say C compiler cannot run C compiled programs.
could you help me with this?
thanks,

Petero.

---------------------here is my config.log file------------------
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for top-level source-directory... /tmp/working/netcdf-3.6.0-p1/src
checking for C compiler default output file name... b.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

uname -s = Linux
uname -v = #1 Thu Dec 18 12:53:39 EST 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/lf9562/bin
PATH: /usr/local/lf9562/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /home/3dvar/bin
PATH: /bin
PATH: /usr/pgi/linux86/6.0/bin
PATH: /usr/bin/perl
PATH: usr/local/bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /home/3dvar/bin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/pgi/linux86/6.0/bin
PATH: /usr/local/perl
PATH: usr/local/bin
PATH: /sbin
PATH: /usr/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1369: checking build system type
configure:1387: result: i686-pc-linux-gnu
configure:1395: checking host system type
configure:1409: result: i686-pc-linux-gnu
configure:1421: checking for top-level source-directory
configure:1424: result: /tmp/working/netcdf-3.6.0-p1/src
configure:1531: checking for C compiler version
configure:1534: pgcc --version </dev/null >&5
pgcc-Warning-Unknown switch: --version
pgcc-Warning-No files to process
configure:1537: $? = 0
configure:1539: pgcc -v </dev/null >&5
pgcc-Warning-No files to process
configure:1542: $? = 0
configure:1544: pgcc -V </dev/null >&5
pgcc 6.0-1 32-bit target on x86 Linux
configure:1576: $? = 0
configure:1622: result: b.out
configure:1627: checking whether the C compiler works
configure:1633: ./b.out
./configure: line 1: ./b.out: No such file or directory
configure:1636: $? = 127
configure:1645: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Back to top
View user's profile
mkcolg



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

PostPosted: Mon May 16, 2005 10:08 am    Post subject: Reply with quote

Hi Petero,

I posted my reply in your new topic.

- Mat
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
Page 3 of 3

 
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