|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
sash multilib link fails on mips64Hi René & List,
When building sash with a Mips64 multi lib configuration, it failed during the link, could not locate zlib, which was present in /lib64 ------------------------- mips64-t2-linux-gnu-gcc -static -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz /opt/T2/t2-trunk/build/GW_5-MIPS64-8.0-trunk-embedded-adax-gw-mips64-EB-cross/TOOLCHAIN/tools.cross/crosscc/../lib64/gcc/mips64-t2-linux-gnu/4.3.2/../../../../mips64-t2-linux-gnu/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [sash] Error 1 ----------------------------- The following sash.conf changes fixed it for me: Index: sash.conf =================================================================== --- sash.conf (revision 33863) +++ sash.conf (working copy) @@ -12,6 +12,12 @@ # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- +# on a multilib build (mips64) +# ld -lz could not locate libz. it was in /lib64 +# $libdir was set to /usr/lib64 +if [ "$SDECFG_MULTILIB" = 1 ]; then + var_append GCC_WRAPPER_APPEND " " " -L$root/lib64" +fi if [ $prefix_auto = 1 ] ; then prefix= set_confopt Jan ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to lists@... with a subject of: unsubscribe t2 |
|
|
Re: sash multilib link fails on mips64Dear Jan,
thank you for your valuable input. I'm especially busy these days, but review and apply your patches ASAP. Have a nice Sunday, René On 14.08.2009, at 18:30, Jan Rovins wrote: > Hi René & List, > > > When building sash with a Mips64 multi lib configuration, it failed > during the link, could not locate zlib, which was present in /lib64 > > ------------------------- > mips64-t2-linux-gnu-gcc -static -s -o sash sash.o cmds.o cmd_dd.o > cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o > cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz > /opt/T2/t2-trunk/build/GW_5-MIPS64-8.0-trunk-embedded-adax-gw-mips64- > EB-cross/TOOLCHAIN/tools.cross/crosscc/../lib64/gcc/mips64-t2-linux- > gnu/4.3.2/../../../../mips64-t2-linux-gnu/bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [sash] Error 1 > ----------------------------- > > The following sash.conf changes fixed it for me: > > Index: sash.conf > =================================================================== > --- sash.conf (revision 33863) > +++ sash.conf (working copy) > @@ -12,6 +12,12 @@ > # GNU General Public License can be found in the file COPYING. > # --- T2-COPYRIGHT-NOTE-END --- > > +# on a multilib build (mips64) > +# ld -lz could not locate libz. it was in /lib64 > +# $libdir was set to /usr/lib64 > +if [ "$SDECFG_MULTILIB" = 1 ]; then > + var_append GCC_WRAPPER_APPEND " " " -L$root/lib64" > +fi > if [ $prefix_auto = 1 ] ; then > prefix= > set_confopt > > > Jan > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > lists@... with a subject of: unsubscribe t2 René Rebe, ExactCODE GmbH, Jaegerstr. 67, DE-10785 Berlin http://exactcode.de | http://t2-project.org | http://rene.rebe.name ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to lists@... with a subject of: unsubscribe t2 |
| Free embeddable forum powered by Nabble | Forum Help |