When I try to compile linux-atm in a uclibc env, I have found that the configure script can't find the compiler named i386-pc-linux-uclibc. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r9 (x86, gcc-3.3.4, glibc-0.9.26-r5, 2.6.8-rc2) ================================================================= System uname: 2.6.8-rc2 i686 Pentium III (Coppermine) Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -pipe" CHOST="i386-pc-linux-uclibc" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.4.11/gentoo-portage" USE="berkdb ncurses python readline ssl tcpd uclibc x86 zlib"
Created attachment 37887 [details, diff] this patch fixes the compiler detection in a uclibc env
vs. patching config.sub/.guess (unwritten policy we try to avoid) try a simple 'inherit gnuconfig' and in the src_unpack() function add 'gnuconfig_update'
Created attachment 37936 [details] updated ebuild to fix the complation on a uclibc env
Comment on attachment 37936 [details] updated ebuild to fix the complation on a uclibc env with this ebuild, the patch is not needed
reply to #2 I've some problems with the gnu_config (only on this package) here is the error: -------- C -o .libs/timer.lo mv -f .libs/text2ip.lo text2ip.lo rm -f .libs/unix.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -Os -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c unix.c -fPIC -DPIC -o .libs/unix.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -Os -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c timer.c -o timer.o >/dev/null 2>&1 mv -f .libs/timer.lo timer.lo gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -Os -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c unix.c -o unix.o >/dev/null 2>&1 mv -f .libs/unix.lo unix.lo /bin/sh ../../libtool --mode=link gcc -I../../src/include -Os -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -version-info 1:0:0 -o libatm.la -rpath /usr/lib text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo sapequal.lo misc.lo ans.lo common.lo diag.lo kptr.lo text2ip.lo timer.lo unix.lo -lresolv rm -fr .libs/libatm.la .libs/libatm.* .libs/libatm.* *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. gcc -shared text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo sapequal.lo misc.lo ans.lo common.lo diag.lo kptr.lo text2ip.lo timer.lo unix.lo -Wl,-soname -Wl, -o .libs/ /usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../../i386-pc-linux-uclibc/bin/ld: cannot open output file .libs/: Is a directory collect2: ld returned 1 exit status make[3]: *** [libatm.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1' make: *** [all-recursive-am] Error 2 !!! ERROR: net-dialup/linux-atm-2.4.1 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! (no error message) -------- note: the little hack works fine
Re comment #5 I've confirmed that the gnuconfig_update fails here as well. (strange..) net-dialup: This package will need to RESTRICT=autoconfig as well if it can't be made to work with gnuconfig
net-dialup: You seem to be busy/overworked/underpaid/mia or something.. embedded@ (spanky) will take this bug off your hands as it's kinda an oddball in preparation for our 2004.NEXT release.
I'm guessing mia based on other 75 bugs that haven't been touched by net-dialup is sooooo loooong.
yeah, net-dialup is quite inactive atm, but i am recruting a very good new guy :)
I've submitted -r1 version to the tree.
ah.. sorry for closing it. thought is net-dialup's bug.
Spanky should of fixed this by now or the FEATURE autoconfig should of kicked in by now for uclibc users so this bug can be closed.