PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

problems compiling with pgf77 7.1-6 64bit version

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



Joined: 27 Mar 2008
Posts: 2

PostPosted: Thu Mar 27, 2008 4:39 am    Post subject: problems compiling with pgf77 7.1-6 64bit version Reply with quote

Hi,

I'm trying to compile with portald 7.1-6 in an intel 64bit machine (xeon) with 16GB of RAM and I get the following error:


Code:

 pgf77 -V -v -mcmodel=medium -Mlarge_arrays -i8 -r8 -tp p7-64 -o iso2 isomag2.f -L/usr/local/portland/linux86-64/7.1-6/lib -llapack -lblas -lpgftnrtl -lpgc

pgf77 7.1-6 64-bit target on x86-64 Linux -tp p7-64
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.
isomag2.f:

/usr/local/portland/linux86-64/7.1-6/bin/pgftn isomag2.f -opt 1 -version -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 70 0x8000 -x 122 1 -quad -x 59 4 -x 59 4 -tp p7-64 -x 51 0x20 -x 124 0x1401 -astype 0 -stdinc /usr/local/portland/linux86-64/7.1-6/include:/usr/local/include:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/include:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def '__SIZE_TYPE__=unsigned long int' -def '__PTRDIFF_TYPE__=long int' -def __THROW= -def __extension__= -def __amd64__ -def __SSE__ -def __MMX__ -def __SSE2__ -def __SSE3__ -cmdline '+pgf77 isomag2.f -V -v -mcmodel=medium -Mlarge_arrays -i8 -r8 -tp p7-64 -o iso2 -L/usr/local/portland/linux86-64/7.1-6/lib -llapack -lblas -lpgftnrtl -lpgc' -x 124 0x10 -x 124 1 -x 135 1 -x 68 0x1 -x 68 0x1 -x 124 0x28 -asm /tmp/pgf77BMwfrGGQgx5d.s
NOTE: your trial license will expire in 6 days, 11.5 hours.
PGFTN/x86-64 Linux 7.1-6
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.
  0 inform,   0 warnings,   0 severes, 0 fatal for isomag2
PGFTN-I-0035-Predefined intrinsic imag loses intrinsic property (./pariso21: 11)
  1 inform,   0 warnings,   0 severes, 0 fatal for ene
PGFTN-I-0035-Predefined intrinsic imag loses intrinsic property (./pariso21: 11)
  1 inform,   0 warnings,   0 severes, 0 fatal for iso
PGFTN-I-0035-Predefined intrinsic imag loses intrinsic property (./pariso21: 11)
  1 inform,   0 warnings,   0 severes, 0 fatal for sus
PGFTN-I-0035-Predefined intrinsic imag loses intrinsic property (./pariso21: 11)
  1 inform,   0 warnings,   0 severes, 0 fatal for mag
PGFTN-I-0035-Predefined intrinsic imag loses intrinsic property (./pariso21: 11)
  1 inform,   0 warnings,   0 severes, 0 fatal for war
  0 inform,   0 warnings,   0 severes, 0 fatal for fak
  0 inform,   0 warnings,   0 severes, 0 fatal for lab
  0 inform,   0 warnings,   0 severes, 0 fatal for cle
  0 inform,   0 warnings,   0 severes, 0 fatal for c6j
  0 inform,   0 warnings,   0 severes, 0 fatal for c9000
  0 inform,   0 warnings,   0 severes, 0 fatal for c9011
  0 inform,   0 warnings,   0 severes, 0 fatal for c9101
  0 inform,   0 warnings,   0 severes, 0 fatal for c9110
  0 inform,   0 warnings,   0 severes, 0 fatal for c9022
  0 inform,   0 warnings,   0 severes, 0 fatal for c9202
  0 inform,   0 warnings,   0 severes, 0 fatal for c9220
PGFTN/x86-64 Linux 7.1-6: compilation completed with informational messages

/usr/bin/as /tmp/pgf77BMwfrGGQgx5d.s -o isomag2.o

/usr/bin/ld /usr/lib64/crt1.o /usr/lib64/crti.o /usr/local/portland/linux86-64/7.1-6/libso/trace_init.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtbegin.o /usr/local/portland/linux86-64/7.1-6/libso/pgfmain.o -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/local/portland/linux86-64/7.1-6/lib/pgi.ld -L/usr/local/portland/linux86-64/7.1-6/lib -L/usr/local/portland/linux86-64/7.1-6/libso -L/usr/local/portland/linux86-64/7.1-6/lib -L/usr/lib64 -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2 isomag2.o -llapack -lblas -lpgftnrtl -lpgc -rpath /usr/local/portland/linux86-64/7.1-6/libso -rpath /usr/local/portland/linux86-64/7.1-6/lib -o iso2 -lpgftnrtl -lnspgc -lpgc -lrt -lpthread -lm -lgcc -lc -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtend.o /usr/lib64/crtn.o
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(fmtwrite.o): In function `fw_write':
fmtwrite.c:(.text+0x6db): relocation truncated to fit: R_X86_64_PC32 against symbol `envar_fortranopt' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(fmtconv.o): In function `conv_int8':
fmtconv.c:(.text+0x790): relocation truncated to fit: R_X86_64_PC32 against symbol `__ftn_32in64_' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(fmtwrite.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o): In function `fio_init':
error.c:(.text+0x957): relocation truncated to fit: R_X86_64_PC32 against symbol `envar_fortranopt' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o): In function `__fio_check_format':
error.c:(.text+0x967): relocation truncated to fit: R_X86_64_PC32 against symbol `envar_fortranopt' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o): In function `__fio_eor_crlf':
error.c:(.text+0x9a7): relocation truncated to fit: R_X86_64_PC32 against symbol `envar_fortranopt' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(open.o): In function `__fio_open':
open.c:(.text+0x874): relocation truncated to fit: R_X86_64_PC32 against symbol `envar_fortranopt' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a(error.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o): In function `__pgio_get_argv':
pgargs.c:(.text+0x7): relocation truncated to fit: R_X86_64_PC32 against symbol `__argv_save' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o): In function `__pgio_set_argv':
pgargs.c:(.text+0x1c): relocation truncated to fit: R_X86_64_PC32 against symbol `__argv_save' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o): In function `__pgio_get_argc':
pgargs.c:(.text+0x28): relocation truncated to fit: R_X86_64_PC32 against symbol `__argc_save' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o)
/usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o): In function `__pgio_set_argc':
pgargs.c:(.text+0x3a): relocation truncated to fit: R_X86_64_PC32 against symbol `__argc_save' defined in COMMON section in /usr/local/portland/linux86-64/7.1-6/lib/libpgc.a(pgargs.o)
pgf77-Fatal-linker completed with exit code 1

Unlinking /tmp/pgf77BMwfrGGQgx5d.s




NOTE: I use the -mcmodel=medium -Mlarge_arrays -i8 -r8 -tp p7-64 flags

Could you say me what happens?

Thanks in advance,

sorry I forgot to say that when I try to look for any of this symbols it seems that portland hasn't got any definition for these.

Code:


nm -A /usr/local/portland/linux86-64/7.1-6/lib/*.a | grep envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgf90.a:error.o:0000000000000008 C envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgf90.a:fmtwrite.o:                 U envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgf90.a:open.o:                 U envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a:fmtwrite.o:                 U envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a:error.o:0000000000000008 C envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpgftnrtl.a:open.o:                 U envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpghpf.a:error.o:0000000000000008 C envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpghpf.a:fmtwrite.o:                 U envar_fortranopt
/usr/local/portland/linux86-64/7.1-6/lib/libpghpf.a:open.o:                 U envar_fortranopt



best regards

jingles
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 448

PostPosted: Thu Mar 27, 2008 10:17 am    Post subject: Reply with quote

Hi Jingles,

Did you add -L/.... to you link line? Can you remove it if you did? There is no need to add -L/to_pgi_libraries because the compiler will look for the right libraries itself. If you directly it, it will look for libraries in this case libso in the lib directory and gives warnings.


Hongyon
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 448

PostPosted: Thu Mar 27, 2008 10:43 am    Post subject: Reply with quote

hongyon wrote:
Hi Jingles,

Did you add -L/.... to you link line? Can you remove it if you did? There is no need to add -L/to_pgi_libraries because the compiler will look for the right libraries itself. If you direct it, it will look for libraries where you tell it to before libso and there are some libraries with same in in lib and libso and in this case it picks the wrong one and hence warnings.


Hongyon
Back to top
View user's profile
jingles



Joined: 27 Mar 2008
Posts: 2

PostPosted: Fri Mar 28, 2008 3:27 am    Post subject: Reply with quote

Great!

It works now. Thanks for all hongyon.

regards,

jingles
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 © 2001, 2002 phpBB Group