bug-libtool
[Top][All Lists]
Advanced

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

Re: [TEST FAILURE] branch-2-0, Solaris 2.9, Sun C compiler 5.5


From: Ralf Menzel
Subject: Re: [TEST FAILURE] branch-2-0, Solaris 2.9, Sun C compiler 5.5
Date: Wed, 30 Mar 2005 20:15:38 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Reasonable Discussion, usg-unix-v)

Ralf Wildenhues <address@hidden> writes:
> * Ralf Menzel wrote on Wed, Jan 19, 2005 at 02:32:27PM CET:
>> PASS: f77demo-static.test
>> PASS: f77demo-make.test
>> PASS: f77demo-exec.test
>> PASS: f77demo-conf.test
>> SKIP: f77demo-make.test
>> SKIP: f77demo-exec.test
>> PASS: f77demo-shared.test
>> SKIP: f77demo-make.test
>> SKIP: f77demo-exec.test
>
> Please rerun the Fortran tests VERBOSEly as well.

See the attachment.

Attachment: FTESTS.LOG
Description: verbose output of fortran tests

> Please also report the exact configure line you issued.

  CONFIG_SHELL=/bin/bash /bin/bash configure

(I used to use this invocation of configure to please quote.test. But
meanwhile I found out that it doesn't make a difference. When
quote.test FAILs I just call configure again and quote.test PASSes.)

[...]
> I want to look at this later, not yet.
> Just a question:  What does
>   env | grep LD
> give (i.e., do you have LD_PRELOAD or similar set)?

  LD_LIBRARY_PATH=/usr/openwin/lib
  OLDPWD=/home/menzel/src/testing/suncc5.5

[...]
> Please, after running these tests again, go into tests/tagdemo, execute
> the above link line ("CC -G -zdefs...") with `-v' added.

--- snip ---
[anarion:tagdemo]172> CC -v -G -zdefs -nolib -hlibfoo.so.0 -o 
.libs/libfoo.so.0.0.0   .libs/foo.o  -Qoption ld -z -Qoption ld 
allextract,./.libs/libconv.a -Qoption ld -z -Qoption ld defaultextract  -lm    
###     command line files and options (expanded):
### -v -G -zdefs -xnolib -hlibfoo.so.0 -o .libs/libfoo.so.0.0.0 .libs/foo.o 
-Qoption ld -z -Qoption ld allextract,./.libs/libconv.a -Qoption ld -z -Qoption 
ld defaultextract -lm -xcode=pic13 
### CC: Note: NLSPATH = 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### CC: Note: LD_LIBRARY_PATH = /usr/openwin/lib
### CC: Note: LD_RUN_PATH     = (null)
### CC: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libCCexcept.so.1 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libCCexcept.so.1 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libldstab_ws.so 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libldstab_ws.so 
-dy -G -hlibfoo.so.0 -z allextract ./.libs/libconv.a -z defaultextract 
-R/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
 -o .libs/libfoo.so.0.0.0 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crti.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrti.o -zdefs .libs/foo.o 
-lm -Y 
P,/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
 /app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrtn.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crtn.o >&/tmp/ld.08951.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/c++filt -filt=no%stdlib 
</tmp/ld.08951.0.err >>/tmp/c++filt.08951.1.err
rm /tmp/ld.08951.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/stdlibfilt -stderr 
</tmp/c++filt.08951.1.err
Undefined                       first referenced
 symbol                             in file
std::ostream &std::ostream::operator<<(double) .libs/foo.o
std::ostream &std::operator<<(std::ostream &,const char*) .libs/foo.o
std::ostream &std::ostream::flush() .libs/foo.o
std::ostream &std::ostream::put(char) .libs/foo.o
std::cout                      .libs/foo.o
[Hint: static member std::cout must be defined in the program]

std::ostream &std::ostream::operator<<(std::ostream &(*)(std::ostream &)) 
.libs/foo.o
ld: fatal: Symbol referencing errors. No output written to .libs/libfoo.so.0.0.0
rm /tmp/c++filt.08951.1.err
--- snip ---

> I don't know much about Solaris, but Docs suggest there may be more
> than one choice for the Standard C++ library to be added.  So, let's
> gather information first:  What does
>   libtool --tag=CXX --config | grep postdeps

-- snip --
[anarion:tagdemo]178> ./libtool --tag=CXX --config | grep postdeps
postdeps=""
postdeps=""
[anarion:tagdemo]179> cd ../..
[anarion:libtool-2-0]180> ./libtool --tag=CXX --config | grep postdeps
postdeps=""
postdeps=""
--- snip ---

> give?  What happens if you issue the link line manually "CC -G -zdefs.."
> and leave out the "-nolib"?  Please add "-dryrun" to see which libraries
> are added.

--- snip ---
[anarion:libtool-2-0]182> cd tests/tagdemo
/home/menzel/src/testing/suncc5.5/libtool-2-0/tests/tagdemo
[anarion:tagdemo]183> CC -G -zdefs -hlibfoo.so.0 -o .libs/libfoo.so.0.0.0   
.libs/foo.o  -Qoption ld -z -Qoption ld allextract,./.libs/libconv.a -Qoption 
ld -z -Qoption ld defaultextract  -lm    
Undefined                       first referenced
 symbol                             in file
std::ostream &std::ostream::operator<<(double) .libs/foo.o
std::ostream &std::operator<<(std::ostream &,const char*) .libs/foo.o
std::ostream &std::ostream::flush() .libs/foo.o
std::ostream &std::ostream::put(char) .libs/foo.o
std::cout                      .libs/foo.o
[Hint: static member std::cout must be defined in the program]

std::ostream &std::ostream::operator<<(std::ostream &(*)(std::ostream &)) 
.libs/foo.o
ld: fatal: Symbol referencing errors. No output written to .libs/libfoo.so.0.0.0
[anarion:tagdemo]184> CC -dryrun -G -zdefs -hlibfoo.so.0 -o 
.libs/libfoo.so.0.0.0   .libs/foo.o  -Qoption ld -z -Qoption ld 
allextract,./.libs/libconv.a -Qoption ld -z -Qoption ld defaultextract  -lm
###     command line files and options (expanded):
### -dryrun -G -zdefs -hlibfoo.so.0 -o .libs/libfoo.so.0.0.0 .libs/foo.o 
-Qoption ld -z -Qoption ld allextract,./.libs/libconv.a -Qoption ld -z -Qoption 
ld defaultextract -lm -xcode=pic13 
### CC: Note: NLSPATH = 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### CC: Note: LD_LIBRARY_PATH = /usr/openwin/lib
### CC: Note: LD_RUN_PATH     = (null)
### CC: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libCCexcept.so.1 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libCCexcept.so.1 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libldstab_ws.so 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libldstab_ws.so 
-dy -G -hlibfoo.so.0 -z allextract ./.libs/libconv.a -z defaultextract 
-R/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
 -o .libs/libfoo.so.0.0.0 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crti.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrti.o -zdefs .libs/foo.o 
-lm -Y 
P,/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
 /app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrtn.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crtn.o >&/tmp/ld.25391.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/c++filt -filt=no%stdlib 
</tmp/ld.25391.0.err >>/tmp/c++filt.25391.1.err
rm /tmp/ld.25391.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/stdlibfilt -stderr 
</tmp/c++filt.25391.1.err
rm /tmp/c++filt.25391.1.err
--- snip ---

> We may just need to teach libtool to try -dryrun to find out the system
> libs, but I'm not sure.

Hm, maybe this is helpful:

--- snip ---
[anarion:tagdemo]199> CC -G -zdefs -hlibfoo.so.0 -o .libs/libfoo.so.0.0.0   
.libs/foo.o  -Qoption ld -z -Qoption ld allextract,./.libs/libconv.a -Qoption 
ld -z -Qoption ld defaultextract  -lm -library=Cstd
[anarion:tagdemo]200> CC -dryrun -G -zdefs -hlibfoo.so.0 -o 
.libs/libfoo.so.0.0.0   .libs/foo.o  -Qoption ld -z -Qoption ld 
allextract,./.libs/libconv.a -Qoption ld -z -Qoption ld defaultextract  -lm 
-library=Cstd
###     command line files and options (expanded):
### -dryrun -G -zdefs -hlibfoo.so.0 -o .libs/libfoo.so.0.0.0 .libs/foo.o 
-Qoption ld -z -Qoption ld allextract,./.libs/libconv.a -Qoption ld -z -Qoption 
ld defaultextract -lm -xcode=pic13 -library=Cstd 
### CC: Note: NLSPATH = 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### CC: Note: LD_LIBRARY_PATH = /usr/openwin/lib
### CC: Note: LD_RUN_PATH     = (null)
### CC: Note: LD_OPTIONS = (null)
/usr/ccs/bin/ld 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libCCexcept.so.1 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libCCexcept.so.1 
-zld32=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/libldstab_ws.so 
-zld64=-S/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/v9/libldstab_ws.so 
-dy -G -hlibfoo.so.0 -z allextract ./.libs/libconv.a -z defaultextract 
-R/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
 -o .libs/libfoo.so.0.0.0 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crti.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrti.o -zdefs .libs/foo.o 
-lm -lCstd -Y 
P,/app/unido-inf/sun/workshop/8.0/SUNWspro/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/lib:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/rw7:/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib:/usr/ccs/lib:/usr/lib
 /app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/CCrtn.o 
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/lib/crtn.o >&/tmp/ld.18384.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/c++filt -filt=no%stdlib 
</tmp/ld.18384.0.err >>/tmp/c++filt.18384.1.err
rm /tmp/ld.18384.0.err
/app/unido-inf/sun/workshop/8.0/SUNWspro/prod/bin/stdlibfilt -stderr 
</tmp/c++filt.18384.1.err
rm /tmp/c++filt.18384.1.err
--- snip ---

Bye,
Ralf Menzel

reply via email to

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