Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 158040
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Diego E. 'Flameeyes' Pettenò <flameeyes@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
attr-ebuild.patch Ebuild patch patch Diego E. 'Flameeyes' Pettenò 2006-12-13 12:06 0000 868 bytes Details | Diff
attr-ebuild.patch Ebuild patch patch Diego E. 'Flameeyes' Pettenò 2006-12-26 17:20 0000 1.04 KB Details | Diff
attr-2.4.32-libtool.patch attr-2.4.32-libtool.patch patch Diego E. 'Flameeyes' Pettenò 2006-12-26 17:29 0000 1.51 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 158040 depends on: Show dependency tree
Bug 158040 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-13 08:52 0000
When building sys-apps/attr on ROOT!=SYSROOT for a final rootfs, it fails with
this error:

./configure --prefix=/usr --host=arm-carel-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-gettext --libexecdir=/usr/lib --bindir=/bin
--build=i686-pc-linux-gnu
checking for arm-carel-linux-gnu-gcc... arm-carel-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-carel-linux-gnu-gcc accepts -g... yes
checking for arm-carel-linux-gnu-gcc option to accept ANSI C... none needed
checking for gmake... /usr/bin/gmake
checking for glibtool... no
checking for libtool... /usr/bin/libtool
checking for tar... /bin/tar
checking for gzip... /bin/gzip
checking for makedepend... /bin/true
checking for awk... /bin/awk
checking for sed... /bin/sed
checking for echo... /bin/echo
checking for sort... /bin/sort
checking whether ln -s works... yes
checking for rpm... no
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... arm-carel-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for mode_t... yes
checking for working alloca.h... yes
checking for alloca... yes
configure: creating ./config.status
config.status: creating include/builddefs
config.status: creating include/config.h
=== include ===
gmake[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
rm -f attr
ln -s . attr
=== libmisc ===
gmake[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
/usr/bin/libtool --mode=compile arm-carel-linux-gnu-gcc -O -ggdb -fno-inline -O
-ggdb -fno-inline -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall
-DVERSION=\"2.4.28\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\"
-I./include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -O -ggdb -fno-inline -DNDEBUG
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.4.28\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64   -c quote.c
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
gmake[1]: *** [quote.lo] Error 1
make: *** [default] Error 2

the problem is that the libtool used it's the system's one, that is not
tailored for the correct CHOST.

I've worked this around by emerging libtool in SYSROOT with -O (to avoid it
taking up autoconf as runtime dependency, that in turn requires perl, that is
not crosscompilable), and then setting
LIBTOOL=/usr/arm-carel-linux-gnu/usr/bin/libtool .

I think crossdev should consider libtool as an extra stage that might be
needed.

Another problem is that acl fails to build against libattr even with the
libtool hack:

=== getfacl ===
gmake[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
arm-carel-linux-gnu-gcc -O -ggdb -fno-inline -O -ggdb -fno-inline -DNDEBUG
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -O -ggdb -fno-inline -DNDEBUG -funsigned-char
-fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64    -c -o getfacl.o getfacl.c
arm-carel-linux-gnu-gcc -O -ggdb -fno-inline -O -ggdb -fno-inline -DNDEBUG
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -O -ggdb -fno-inline -DNDEBUG -funsigned-char
-fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64    -c -o user_group.o user_group.c
/usr/arm-carel-linux-gnu/usr/bin/libtool --mode=link arm-carel-linux-gnu-gcc -o
getfacl    getfacl.o user_group.o   ../libacl/libacl.la /usr/lib/libattr.la
../libmisc/libmisc.la
mkdir .libs
arm-carel-linux-gnu-gcc -o .libs/getfacl getfacl.o user_group.o 
../libacl/.libs/libacl.so -lattr /usr/lib/libattr.so ../libmisc/.libs/libmisc.a
/usr/libexec/gcc/arm-carel-linux-gnu/ld: skipping incompatible /lib/libattr.so
when searching for /lib/libattr.so
/usr/libexec/gcc/arm-carel-linux-gnu/ld: cannot find /lib/libattr.so
collect2: ld returned 1 exit status
gmake[1]: *** [getfacl] Error 1
make: *** [default] Error 2

!!! ERROR: sys-apps/acl-2.2.34 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  acl-2.2.34.ebuild, line 42:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
relevant.

I'll try to modify crossdev tonight, and see what happens.

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-12-13 12:06:21 0000 -------
Created an attachment (id=103976) [details]
Ebuild patch

This patch replace AC_PATH_PROG calls with AC_PATH_TOOL, so that it will use
${CHOST}-libtool if present (see bug #158067), and allows attr to be
crosscompiled easily.

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2006-12-26 17:16:43 0000 -------
I'm going to attach a patch and an ebuild patch that solves the issue for me (I
sent the patch upstream, waiting to see what they think of it).

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2006-12-26 17:20:51 0000 -------
Created an attachment (id=104781) [details]
Ebuild patch

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-12-26 17:29:48 0000 -------
Created an attachment (id=104782) [details]
attr-2.4.32-libtool.patch

------- Comment #5 From Matt Sealey, Genesi 2007-07-26 17:49:43 0000 -------
this patch doesn't seem to be applied in the ebuild, cross compiling is still
nerfed..

------- Comment #6 From Josh Saddler 2007-08-18 06:52:18 0000 -------
Any word on this? Please please please put it in there, if it will help
crosscompiling to work, period. I can't build anything for i686 (on my amd64
host), as everything that tries to be compiled starts at the first step, with
attr and the infamous bug:

libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'

What needs to happen to get this committed ASAP? It's been long enough. :)

------- Comment #7 From SpanKY 2007-09-05 13:52:38 0000 -------
*** Bug 191363 has been marked as a duplicate of this bug. ***

------- Comment #8 From Gunnar Thielebein 2007-09-19 20:39:17 0000 -------
for me the patch applied from Diego Pettenò works, thanks for that. 
But again, problem appears for acl.

Isn't it better to put this problem more in general terms?
I mean Is there some other bug open?

------- Comment #9 From Santiago M. Mola 2007-09-19 21:13:28 0000 -------
(In reply to comment #8)
> 
> Isn't it better to put this problem more in general terms?
> I mean Is there some other bug open?
> 

See bug 158068 for ACL patch.

------- Comment #10 From SpanKY 2007-09-20 07:06:15 0000 -------
attr-2.4.39 should handle this

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug