Modify

Opened 10 years ago

Closed 10 years ago

Last modified 5 years ago

#1254 closed defect (wontfix)

whiterussian svn build error (libgmodule.la): ld: cannot find /lib/libc.so.6

Reported by: zman57@… Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

All fine up to this point.
Repository pulled last night, using the recommended command

"svn co https://svn.openwrt.org/openwrt/branches/whiterussian/"

Make version is 3.81

Here is that last part of the make:

make[5]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-

1.2.10'
make[4]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-
1.2.10'
Making install in gmodule
make[4]: Entering directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib
-1.2.10/gmodule'
/bin/sh ../libtool --mode=compile /mnt/OpenWrt/whiterussian/openwrt/staging_dir_
mipsel/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodul
e -DG_LOG_DOMAIN=\"GModule\" -Os -pipe -mips32 -mtune=mips32 -funit-at
-a-time -Wall -D_REENTRANT -c gmodule.c
mkdir .libs
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c gmodule.c -fP
IC -DPIC -o .libs/gmodule.lo
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c gmodule.c -o g
module.o >/dev/null 2>&1
mv -f .libs/gmodule.lo gmodule.lo
/bin/sh ../libtool --mode=link /mnt/OpenWrt/whiterussian/openwrt/staging_dir_mip
sel/bin/mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-tim
e -Wall -D_REENTRANT -o libgmodule.la -rpath /usr/lib -rdynamic -version
-info 0:10:0 -release 1.2 -export-dynamic gmodule.lo -ldl ../libglib.la
rm -fr .libs/libgmodule.la .libs/libgmodule.* .libs/libgmodule-1.2.*
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-shared gmodule.lo -Wl,--rpath -Wl,/mnt/OpenWrt/whiterussian/openwrt/build_mi

psel/glib-1.2.10/.libs -ldl ../.libs/libglib.so -Wl,-soname -Wl,libgmodule-1.
2.so.0 -o .libs/libgmodule-1.2.so.0.0.10
(cd .libs && rm -f libgmodule-1.2.so.0 && ln -s libgmodule-1.2.so.0.0.10 libgmod
ule-1.2.so.0)
(cd .libs && rm -f libgmodule.so && ln -s libgmodule-1.2.so.0.0.10 libgmodule.so
)
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar
cru .libs/libgmodule.a gmodule.o
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ran
lib .libs/libgmodule.a
creating libgmodule.la
(cd .libs && rm -f libgmodule.la && ln -s ../libgmodule.la libgmodule.la)
/bin/sh ../libtool --mode=compile /mnt/OpenWrt/whiterussian/openwrt/staging_dir_
mipsel/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodul
e -DG_LOG_DOMAIN=\"GModule\" -Os -pipe -mips32 -mtune=mips32 -funit-at
-a-time -Wall -D_REENTRANT -c libgplugin_a.c
rm -f .libs/libgplugin_a.lo
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c libgplugin_a.c

-fPIC -DPIC -o .libs/libgplugin_a.lo

/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c libgplugin_a.c

-o libgplugin_a.o >/dev/null 2>&1

mv -f .libs/libgplugin_a.lo libgplugin_a.lo
/bin/sh ../libtool --mode=link /mnt/OpenWrt/whiterussian/openwrt/staging_dir_mip
sel/bin/mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-tim
e -Wall -D_REENTRANT -o libgplugin_a.la -rpath /usr/lib -rdynamic -avoid-vers
ion -module libgplugin_a.lo -ldl ../libglib.la
rm -fr .libs/libgplugin_a.la .libs/libgplugin_a.* .libs/libgplugin_a.*
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-shared libgplugin_a.lo -Wl,--rpath -Wl,/mnt/OpenWrt/whiterussian/openwrt/bui

ld_mipsel/glib-1.2.10/.libs -ldl ../.libs/libglib.so -Wl,-soname -Wl,libgplug
in_a.so -o .libs/libgplugin_a.so
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar
cru .libs/libgplugin_a.a libgplugin_a.o
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ran
lib .libs/libgplugin_a.a
creating libgplugin_a.la
(cd .libs && rm -f libgplugin_a.la && ln -s ../libgplugin_a.la libgplugin_a.la)
/bin/sh ../libtool --mode=compile /mnt/OpenWrt/whiterussian/openwrt/staging_dir_
mipsel/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodul
e -DG_LOG_DOMAIN=\"GModule\" -Os -pipe -mips32 -mtune=mips32 -funit-at
-a-time -Wall -D_REENTRANT -c libgplugin_b.c
rm -f .libs/libgplugin_b.lo
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c libgplugin_b.c

-fPIC -DPIC -o .libs/libgplugin_b.lo

/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule\" -Os -

pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c libgplugin_b.c

-o libgplugin_b.o >/dev/null 2>&1

mv -f .libs/libgplugin_b.lo libgplugin_b.lo
/bin/sh ../libtool --mode=link /mnt/OpenWrt/whiterussian/openwrt/staging_dir_mip
sel/bin/mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-tim
e -Wall -D_REENTRANT -o libgplugin_b.la -rpath /usr/lib -rdynamic -avoid-vers
ion -module libgplugin_b.lo -ldl ../libglib.la
rm -fr .libs/libgplugin_b.la .libs/libgplugin_b.* .libs/libgplugin_b.*
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-shared libgplugin_b.lo -Wl,--rpath -Wl,/mnt/OpenWrt/whiterussian/openwrt/bui

ld_mipsel/glib-1.2.10/.libs -ldl ../.libs/libglib.so -Wl,-soname -Wl,libgplug
in_b.so -o .libs/libgplugin_b.so
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar
cru .libs/libgplugin_b.a libgplugin_b.o
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ran
lib .libs/libgplugin_b.a
creating libgplugin_b.la
(cd .libs && rm -f libgplugin_b.la && ln -s ../libgplugin_b.la libgplugin_b.la)
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule -DG_LOG_DOMAIN=\"GModule

\" -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -c
testgmodule.c
/bin/sh ../libtool --mode=link /mnt/OpenWrt/whiterussian/openwrt/staging_dir_mip
sel/bin/mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-tim
e -Wall -D_REENTRANT -o testgmodule -rdynamic testgmodule.o libgmodule.la ../
libglib.la -ldl
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -D_REENTRANT -o .libs/te

stgmodule -rdynamic testgmodule.o ./.libs/libgmodule.so /mnt/OpenWrt/whiterussi
an/openwrt/build_mipsel/glib-1.2.10/.libs/libglib.so ../.libs/libglib.so -ldl
creating testgmodule
make[5]: Entering directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib
-1.2.10/gmodule'
/bin/sh ../mkinstalldirs /mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-1.2
.10/ipkg-install/usr/lib
/bin/sh ../libtool --mode=install /bin/install -c -m 644 libgmodule.la /mnt/Ope
nWrt/whiterussian/openwrt/build_mipsel/glib-1.2.10/ipkg-install/usr/lib/libgmodu
le.la
libtool: install: warning: relinking `libgmodule.la'
(cd /mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-1.2.10/gmodule; /bin/sh
../libtool --mode=relink /mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bi
n/mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall

-D_REENTRANT -o libgmodule.la -rpath /usr/lib -rdynamic -version-info 0:10:0 -r

elease 1.2 -export-dynamic gmodule.lo -ldl ../libglib.la -inst-prefix-dir /mnt/O
penWrt/whiterussian/openwrt/build_mipsel/glib-1.2.10/ipkg-install)
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc

-shared gmodule.lo -ldl -L/usr/lib -L/mnt/OpenWrt/whiterussian/openwrt/build_

mipsel/glib-1.2.10/ipkg-install/usr/lib -lglib -Wl,-soname -Wl,libgmodule-1.2.
so.0 -o .libs/libgmodule-1.2.so.0.0.10
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/lib/gcc/mipsel-linux-uclibc
/3.4.4/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/li
bdl.so when searching for -ldl
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/lib/gcc/mipsel-linux-uclibc
/3.4.4/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /usr/lib/li
bdl.a when searching for -ldl
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/lib/gcc/mipsel-linux-uclibc
/3.4.4/../../../../mipsel-linux-uclibc/bin/ld: skipping incompatible /lib/libc.s
o.6 when searching for /lib/libc.so.6
/mnt/OpenWrt/whiterussian/openwrt/staging_dir_mipsel/lib/gcc/mipsel-linux-uclibc
/3.4.4/../../../../mipsel-linux-uclibc/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
libtool: install: error: relink `libgmodule.la' with the above command before in
stalling it
make[5]: * [install-libLTLIBRARIES] Error 1
make[5]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-
1.2.10/gmodule'
make[4]:
* [install-am] Error 2
make[4]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-
1.2.10/gmodule'
make[3]: * [install-recursive] Error 1
make[3]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-
1.2.10'
make[2]:
* mnt/OpenWrt/whiterussian/openwrt/build_mipsel/glib-1.2.10/.built

Error 2

make[2]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/package/glib'
make[1]: * [glib-compile] Error 2
make[1]: Leaving directory `/mnt/OpenWrt/whiterussian/openwrt/package'
make:
* [package/compile] Error 2

Attachments (1)

.config (24.2 KB) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by anonymous

comment:1 Changed 10 years ago by anonymous

[15:19] <forum2006> nbd, can't confirm #1254. works for me. full build of wr r6180 finished
[15:20] <nbd> forum2006: probably distribution and/or system specific screwup

comment:2 Changed 10 years ago by anonymous

Tried another build, (first deleted everything) this time changing configuration so that GLIB was not selected during "make menuconfig". Still tries to build GLIB (although much later in process - after tcp_wrappers). Fails same way. Can someone attach a ".config" to this that should result in an operational image, however that does not attempt to build GLIB?

comment:3 Changed 10 years ago by anonymous

Arggggggggggggh. Never mind. I anaylzed the build technique a bit and figured out what was causing glib to build. (At least I think I figured it out) Its been able to build again (just finished libgmp).... Here's hoping.

comment:4 Changed 10 years ago by anonymous

That failed too. Yet another package looking for a glib.
Deleted everything. Pulled latest. Did make menuconfig, changed nothing. Exited. Did make. Build worked. So, apparently my trouble is related to optional packages that have dependencies for glib which on my machine ends up looking for libc.so.6 during compilation, which is built from glibc which is not used in openwrt in favor of the much smaller uclibc. Simply creating a symlink to this will not work. Are the developers building on a different set of base C libraries?

I am using the very latest 'make', and I presume the compile/link is coming from the toolchain compiler and binutils, so I am somewhat at a loss. Any ideas would be appreciated.

comment:5 Changed 10 years ago by nbd

  • Resolution set to wontfix
  • Status changed from new to closed

My guess is that one of autoconf/automake/libtool/etc. is used in glib and is broken on some host systems.
Marking as wontfix, since we can't reproduce this bug and we also can't support all kinds of different host system types each with their own weirdnesses.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.