Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61184 - linux-atm: configure doesn't recognise the i386-pc-linux-uclibc compiler in a uclibc env
Summary: linux-atm: configure doesn't recognise the i386-pc-linux-uclibc compiler in a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 12:12 UTC by Christian Zoffoli (RETIRED)
Modified: 2004-11-14 14:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
this patch fixes the compiler detection in a uclibc env (linux-atm-uclibc.chris.patch,497 bytes, patch)
2004-08-21 12:13 UTC, Christian Zoffoli (RETIRED)
Details | Diff
updated ebuild to fix the complation on a uclibc env (linux-atm-2.4.1.ebuild,953 bytes, text/plain)
2004-08-22 05:50 UTC, Christian Zoffoli (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2004-08-21 12:12:06 UTC
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"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-21 12:13:17 UTC
Created attachment 37887 [details, diff]
this patch fixes the compiler detection in a uclibc env
Comment 2 solar (RETIRED) gentoo-dev 2004-08-21 17:05:31 UTC
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'
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-22 05:50:10 UTC
Created attachment 37936 [details]
updated ebuild to fix the complation on a uclibc env
Comment 4 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-22 06:15:46 UTC
Comment on attachment 37936 [details]
updated ebuild to fix the complation on a uclibc env

with this ebuild, the patch is not needed
Comment 5 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-22 06:17:20 UTC
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 
Comment 6 solar (RETIRED) gentoo-dev 2004-08-25 23:19:57 UTC
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
Comment 7 solar (RETIRED) gentoo-dev 2004-08-26 14:07:41 UTC
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.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-09-23 09:24:29 UTC
I'm guessing mia based on other 75 bugs that haven't been touched by net-dialup is sooooo loooong.
Comment 9 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-25 08:53:47 UTC
yeah, net-dialup is quite inactive atm, but i am recruting a very good new guy :)
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2004-11-12 11:00:37 UTC
I've submitted -r1 version to the tree. 
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2004-11-12 11:02:49 UTC
ah.. sorry for closing it. thought is net-dialup's bug.
Comment 12 solar (RETIRED) gentoo-dev 2004-11-14 14:38:54 UTC
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.