bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool-2.2.11a on AIX 5.3 current git master 2010-08-25 /status


From: Rainer Tammer
Subject: Re: libtool-2.2.11a on AIX 5.3 current git master 2010-08-25 /status
Date: Wed, 15 Sep 2010 08:29:14 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0

 Hello Ralf,

On 14.09.2010 20:06, Ralf Wildenhues wrote:
> Hello Rainer,
... cut for clarity ...
>
>> Before I start with the bisect could you please post the output of:
>>
>>   dump -nv tests/f77demo/.libs/fprogram | head -n 25
> See below at the end.  Did you ever confirm by the way that this was a
> regression in Libtool, and that it wasn't due to, say, a change in
> compiler version or setup?  That should be the first step, before
> starting bisect.
>
Yes,
the problem was not present in the last release 2.2.8:

PASS: tests/f77demo-static.test
PASS: tests/f77demo-make.test
PASS: tests/f77demo-exec.test
PASS: tests/f77demo-conf.test
PASS: tests/f77demo-make.test
PASS: tests/f77demo-exec.test
PASS: tests/f77demo-shared.test
PASS: tests/f77demo-make.test
PASS: tests/f77demo-exec.test
PASS: tests/fcdemo-static.test
PASS: tests/fcdemo-make.test
PASS: tests/fcdemo-exec.test
PASS: tests/fcdemo-conf.test
PASS: tests/fcdemo-make.test
PASS: tests/fcdemo-exec.test
PASS: tests/fcdemo-shared.test
PASS: tests/fcdemo-make.test
PASS: tests/fcdemo-exec.test

>> and an
>>
>>   ls -al /usr/lib/*libgfortran.*
> Empty.
>
OK,
so no links...
>> I just did a complete new checkout and unfortunately the problem persists.
>>
>> I have this Fortran:
>>
>> # gfortran --version
>> GNU Fortran (GCC) 4.2.4
>> Copyright (C) 2007 Free Software Foundation, Inc.
> I have 4.2.4, too, but it may be modified by the vendor.  It seems to
> have -blibpath set at configure time, but I don't think that should
> translate to a setting at run time:
>
> cat >a.c <<EOF
> int main () { return 0; }
> EOF
>
> /opt/fsw/gcc42/bin/gcc -v -o a a.c
> Using built-in specs.
> Target: powerpc-ibm-aix5.3.0.0
> Configured with: /opt/build/gcc-4.2.4/configure --enable-nls 
> --with-included-gettext --enable-shared --enable-threads 
> --with-local-prefix=/opt/fsw/gcc42 --with-gmp=/opt/fsw/libgmp42 
> --with-mpfr=/opt/fsw/libmpfr23 --with-gmp-ldflags=-Wl,-brtl 
> -Wl,-blibpath:/opt/fsw/libgmp42/lib:/usr/lib --with-mpfr-ldflags=-Wl,-brtl 
> -Wl,-blibpath:/opt/fsw/libmpfr23/lib:/usr/lib 
> --enable-languages=ada,c,c++,fortran --datadir=/opt/fsw/gcc42/share 
> --with-gxx-include-dir=/opt/fsw/gcc42/include/c++ --prefix=/opt/fsw/gcc42
> Thread model: aix
> gcc version 4.2.4
>  /opt/fsw/gcc42/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2/cc1 -quiet -v a.c 
> -quiet -dumpbase a.c -auxbase a -version -o /tmp//cc6fc1cd.s
> ignoring nonexistent directory 
> "/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/../../../../powerpc-ibm-aix5.3.0.0/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /opt/fsw/gcc42/include
>  /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/include
>  /usr/include
> End of search list.
> GNU C version 4.2.4 (powerpc-ibm-aix5.3.0.0)
>         compiled by GNU C version 4.2.4.
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> Compiler executable checksum: 7be76c37eb1daea89bec498f78dc310c
>  as -u -mppc -o /tmp//ccwLPock.o /tmp//cc6fc1cd.s
>  /opt/fsw/gcc42/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2/collect2 
> -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o a /lib/crt0.o 
> -L/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2 
> -L/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/../../.. /tmp//ccwLPock.o 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc.a 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc_eh.a -lc 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc.a 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc_eh.a
>

# gcc -v -o a a.c
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.2.4/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
--prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --disable-nls
--enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.2.4
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/cc1 -quiet -v
a.c -quiet -dumpbase a.c -auxbase a -version -o /tmp//ccuG7Xz9.s
ignoring nonexistent directory
"/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../powerpc-ibm-aix5.3.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/freeware/include
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include
 /usr/include
End of search list.
GNU C version 4.2.4 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.2.4.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
Compiler executable checksum: 7e561a8ffa677fcfcdfa11eae0c16b28
 /usr/bin/as -u -mppc -o /tmp//ccSSZscd.o /tmp//ccuG7Xz9.s
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/collect2
-bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o a /lib/crt0.o
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../..
/tmp//ccSSZscd.o
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc_eh.a -lc
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc_eh.a

> cat >a.f90 <<EOF
> program main
> end
> EOF
>
> $ /opt/fsw/gcc42/bin/gfortran -v -o a a.f90
> Driving: /opt/fsw/gcc42/bin/gfortran -v -o a a.f90 -lgfortranbegin -lgfortran 
> -lm -shared-libgcc
> Using built-in specs.
> Target: powerpc-ibm-aix5.3.0.0
> Configured with: /opt/build/gcc-4.2.4/configure --enable-nls 
> --with-included-gettext --enable-shared --enable-threads 
> --with-local-prefix=/opt/fsw/gcc42 --with-gmp=/opt/fsw/libgmp42 
> --with-mpfr=/opt/fsw/libmpfr23 --with-gmp-ldflags=-Wl,-brtl 
> -Wl,-blibpath:/opt/fsw/libgmp42/lib:/usr/lib --with-mpfr-ldflags=-Wl,-brtl 
> -Wl,-blibpath:/opt/fsw/libmpfr23/lib:/usr/lib 
> --enable-languages=ada,c,c++,fortran --datadir=/opt/fsw/gcc42/share 
> --with-gxx-include-dir=/opt/fsw/gcc42/include/c++ --prefix=/opt/fsw/gcc42
> Thread model: aix
> gcc version 4.2.4
>  /opt/fsw/gcc42/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2/f951 a.f90 -quiet 
> -dumpbase a.f90 -auxbase a -version -I 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/finclude -o /tmp//cctzCooE.s
> GNU F95 version 4.2.4 (powerpc-ibm-aix5.3.0.0)
>         compiled by GNU C version 4.2.4.
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
>  as -u -mppc -o /tmp//ccuHY1B7.o /tmp//cctzCooE.s
>  /opt/fsw/gcc42/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2/collect2 
> -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o a /lib/crt0.o 
> -L/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2 
> -L/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/../../.. /tmp//ccuHY1B7.o 
> -lgfortranbegin -lgfortran -lm -lgcc_s 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc.a -lc -lgcc_s 
> /opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/libgcc.a
> ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
> ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
> ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
> ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
> ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
>
>

# gfortran -v -o a a.f90
Driving: gfortran -v -o a a.f90 -lgfortranbegin -lgfortran -lm
-shared-libgcc
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.2.4/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
--prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --disable-nls
--enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.2.4
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/f951 a.f90
-quiet -dumpbase a.f90 -auxbase a -version -I
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/finclude -o
/tmp//ccEjqNvs.s
GNU F95 version 4.2.4 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.2.4.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
 /usr/bin/as -u -mppc -o /tmp//ccOQ5yBJ.o /tmp//ccEjqNvs.s
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/collect2
-bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o a /lib/crt0.o
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../..
/tmp//ccOQ5yBJ.o -lgfortranbegin -lgfortran -lm -lgcc_s
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a -lc -lgcc_s
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/libgcc.a
ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

>> Maybe the Fortran sample is working because you have symlinks to /usr/lib ??
> No, but the test in libltdl/m4/libtool.m4:_LT_SYS_MODULE_PATH_AIX sets
> lt_cv_aix_libpath='/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2:/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/../../..:/usr/lib:/lib
>    ...'
>
> (see config.log or config.cache).
>
OK,
on my machine it looks like this (libtool-master):

lt_cv_aix_libpath='/usr/vac/lib:/usr/lib/threads:/usr/lib:/lib                  
                      
'

> Cheers,
> Ralf
>
Bye
  Rainer
>
> $ dump -nv tests/f77demo/.libs/fprogram | head -n 25
>
> tests/f77demo/.libs/fprogram:
>
>                         ***Loader Section***
>                       Loader Header Information
> VERSION#         #SYMtableENT     #RELOCent        LENidSTR
> 0x00000001       0x0000001c       0x0000004b       0x0000012d       
>
> #IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
> 0x00000006       0x00000644       0x00000136       0x00000771       
>
>
>                         ***Import File Strings***
> INDEX  PATH                          BASE                MEMBER              
> 0      
> /tmp/build-powerpc-ibm-aix5.3.0.0-gcc/_inst-f77demo/lib:/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2:/opt/fsw/gcc42/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2/../../..:/usr/lib:/lib
>                                          
> 1                                    libc.a              shr.o               
> 2                                    libgfortran.a       libgfortran.so.2    
> 3                                    libfoo.a            libfoo.so.0         
> 4                                    libfoo3.a           libfoo3.so.0        
> 5                                    libgcc_s.a          shr.o               
>
>                         ***Loader Symbol Table Information***
> [Index]      Value      Scn     IMEX Sclass   Type           IMPid Name
>
> [0]     0x200008f8    .data              RW SECdef        [noIMid] __rtinit
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]