swarm-support
[Top][All Lists]
Advanced

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

Re: crossed ABIs


From: Jayshree Sarma
Subject: Re: crossed ABIs
Date: Wed, 24 Mar 1999 11:38:07 -0500 (EST)

Hi,

I compiled Breeder successfully.  The only thing that jumps out from 
your trace that is different from what I get is the "-L/lib".  I do not
have that include in my compilation process. I am not sure where you
have added that line "-L/lib" in your makefile.  The default is to go
to /lib32 but you are forcing it to go /lib which contains the 032 libs
while the /lib32 contains the N32 libs.  

Look at your Makefiles and maybe you can find out how "-L/lib" is being
added and delete the include.

Hope this helps,

Jayshree

On Wed, 24 Mar 1999, Jonathan Impett wrote:

>     Thanks - it is indeed on an IRIX6.5 machine.
>     The /etc/compiler.defaults file does contain
> "-DEFAULT:abi=n32:isa=mips4:proc=r5k", and all of the files I queried
> (including all the swarm demos) are n32, mips4. Hence I think gcc is
> doing the right thing.
>     I append below the results of my trying to make the galib demos. The
> problem seems to arise at linking; something doesn't know it should be
> looking in the n32 libs (/lib32). This is analogous to the problem I had
> in making the swarm demos originally, that I had to solve with a link to
> the appropriate xpmlib. Might there be some standard swarm line I should
> amend? How do I check exactly from where this erroneous call was made?
>     Thanks again,
>     Jonathan
> 
> Jonathan Impett
> Faculty of Music
> University of Cambridge
> West Road
> Cambridge CB3 9DP
> UK
> 
> tel/fax: (+44) (0)1954 250192
> address@hidden
> 
> 
> sg 5# cd /usr/local/Breeder-1.4.1
> sg 6# gmake
> test -d ga || ln -s . ga
> gcc -c -Wno-import -Wno-protocol -O2  -I/usr/local/include BinChrom.m
> gcc -c -Wno-import -Wno-protocol -O2  -I/usr/local/include
> PopBatchSwarm.m
> gcc -c -Wno-import -Wno-protocol -O2  -I/usr/local/include PopObsSwarm.m
> 
> gcc -c -Wno-import -Wno-protocol -O2  -I/usr/local/include PopSwarm.m
> rm -f libga.a
> ar q libga.a BinChrom.o PopBatchSwarm.o PopObsSwarm.o PopSwarm.o
> ar: Warning: creating libga.a
> 
> : libga.a
> sg 7# file PopSwarm.o
> PopSwarm.o:     ELF N32 MSB mips-4 relocatable MIPS - version 1
> sg 8# gmake gademo
> gcc -c -Wno-import -Wno-protocol -O2  -I/usr/local/include gademo.m
> /usr/local/bin/libtool-swarm --mode link gcc -O2 -L/usr/local/lib -rpath
> /usr/local/lib -L/lib -L/usr/local/lib -L/usr/local/lib -L/lib -rpath
> /lib -L/usr/local/swarm-1.4/xpm/lib -rpath /usr/local/swarm-1.4/xpm/lib
> -L/lib -L/lib -o gademo gademo.o BinChrom.o PopBatchSwarm.o
> PopObsSwarm.o PopSwarm.o -lspace -lanalysis -lsimtools -lsimtoolsgui
> -ltkobjc -ltclobjc -lactivity -lrandom -lobjectbase -lcollections
> -ldefobj -lmisc -lBLT -ltk8.0 -ltcl8.0 -lXpm -lpng -lz -lffi -lX11 -lm
> -lobjc -ldl
> gcc -O2 -L/usr/local/lib -L/lib -L/usr/local/lib -L/usr/local/lib -L/lib
> -L/usr/local/swarm-1.4/xpm/lib -L/lib -L/lib -o gademo gademo.o
> BinChrom.o PopBatchSwarm.o PopObsSwarm.o PopSwarm.o -lspace -lanalysis
> -lsimtools -lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom
> -lobjectbase -lcollections -ldefobj -lmisc -lBLT -ltk8.0 -ltcl8.0 -lXpm
> -lpng -lz -lffi -lX11 -lm -lobjc -ldl -Wl,-rpath -Wl,/usr/local/lib
> -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/usr/local/swarm-1.4/xpm/lib
> ld32: WARNING 84: /usr/local/lib/libspace.a is not used for resolving
> any symbol.
> ld32: WARNING 84: /usr/lib32/libdl.so is not used for resolving any
> symbol.
> ld32: FATAL 12: Expecting n32 objects: /lib/libc.so.1 is o32.
> gmake: *** [gademo] Error 1
> sg 9# file gademo.o
> gademo.o:       ELF N32 MSB mips-4 relocatable MIPS - version 1
> 
> 
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
> 
> 


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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