Summary: | sys-apps/iproute2-2.6.22.20070710 fail to cross-compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bertrand Jacquin <bertrand> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Bertrand Jacquin
2008-06-12 08:12:56 UTC
that is because host gcc is *supposed* to be used in the netem subdirectory. it's building utilities that it then executes. the problem is that the target CFLAGS bleed and get used when executing on the build system. Yes, I corrected the "bug" by doing that : On iproute2 source --- netem/Makefile.ori 2008-06-12 10:44:19.000000000 +0200 +++ netem/Makefile 2008-06-12 10:45:07.000000000 +0200 @@ -2,6 +2,7 @@ DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist HOSTCC ?= $(CC) +CCOPTS = $(CBUILD_CFLAGS) LDLIBS += -lm all: $(DISTGEN) $(DISTDATA) On iproute2 ebuild --- /usr/portage/sys-apps/iproute2/iproute2-2.6.22.20070710.ebuild 2008-03-11 18:07:50.000000000 +0100 +++ iproute2-2.6.22.20070710.ebuild 2008-06-12 10:49:15.000000000 +0200 @@ -38,6 +38,7 @@ sed -i "s:-O2:${CFLAGS}:" Makefile || die "sed Makefile failed" epatch "${FILESDIR}"/${PN}-2.6.16.20060323-build.patch #137574 + epatch "${FILESDIR}"/${PN}-2.6.22.20070710-netem-hostcc.diff local check base=${PORTAGE_CONFIGROOT}/etc/portage/patches for check in {${CATEGORY}/${PF},${CATEGORY}/${P},${CATEGORY}/${PN}}; do Then build like that : ROOT=/root/cross/i586-geode-linux-uclibc PORTAGE_CONFIGROOT=/etc/ct/i586-geode-linux-uclibc CHOST=i586-geode-linux-uclibc CBUILD=x86_64-pc-linux-gnu CBUILD_CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" emerge -vat iproute2 It's really bad and just home working, so didn't post any fix. But, what could be done for that ? Desactivate SUBDIR for cross compilation ? Get upstream ? |