Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342841 - sys-kernel/linux-headers-2.6.35 fails with make-3.82 and powerpc targets
Summary: sys-kernel/linux-headers-2.6.35 fails with make-3.82 and powerpc targets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gmake-3.82
  Show dependency tree
 
Reported: 2010-10-26 22:42 UTC by Ian Johnson
Modified: 2010-11-22 00:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Johnson 2010-10-26 22:42:43 UTC
cross-powerpc-linux-gnu/linux-headers-2.6.35: Run as:

prompt:  crossdev -t powerpc 

Make process fails with:

/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35/arch/powerpc/Makefile:183: *** mixed implicit and normal rules.  Stop.

System:  uname -a:

Linux gentoo 2.6.36-gentoo #1 SMP Tue Oct 26 17:48:00 EDT 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz GenuineIntel GNU/Linux


Reproducible: Always

Steps to Reproduce:
1. crossdev -t powerpc
2.
3.

Actual Results:  
make -j5 headers_install INSTALL_HDR_PATH=/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/image///usr/powerpc-linux-gnu/usr/include/.. ARCH=powerpc CROSS_COMPILE=x86_64-pc-linux-gnu- 
/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35/arch/powerpc/Makefile:183: *** mixed implicit and normal rules.  Stop.

Expected Results:  
cross compiling environment

gentoo ianj # emerge --info =cross-powerpc-linux-gnu/linux-headers-2.6.35
Portage 2.1.9.22 (default/linux/amd64/10.0/no-multilib, gcc-4.4.5, glibc-2.12.1-r2, 2.6.36-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 26 Oct 2010 16:00:20 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mtune=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi ahci amd64 apache2 apm bash-completion berkdb bzip2 cairo cli consolekit cracklib crypt css ctype curl curlwrappers cvs cxx dbus detex dga dri ehci encode esd evdev exif expat fam fbcon ffmpeg filter fontconfig fortran gd gif glitz gpm gstreamer hal iconv ieee1394 imagemagick imap ipv6 ja java6 javascript jpeg jpeg2k jpg kpathsea latex libwww lm_sensors logrotate maildir mmx modules mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly ntpl ogg ohci opengl openmp oss pam pcmcia pcre pdf perl php pmu png posix pppd python rdynamic readline rss sasl session spell sse sse2 sse3 ssl symlink sysfs tcpd theora threads tiff truetype unicode usb vnc xcb xml xorg xsl xv zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



gentoo ianj # cat /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/temp/build.log
 * Package:    cross-powerpc-linux-gnu/linux-headers-2.6.35
 * Maintainer: toolchain@gentoo.org
 * USE:  amd64 crosscompile_opts_headers-only elibc_glibc kernel_linux userland_GNU
>>> Unpacking source...
>>> Unpacking gentoo-headers-base-2.6.35.tar.xz to /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work
>>> Unpacking gentoo-headers-2.6.35-1.tar.xz to /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work
 * Applying various patches (bugfixes/updates) ...
 *   00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch ...
 [ ok ]
 *   00_all_0002-linux-types.h-create-userspace-safe-64bit-aligned-de.patch ...
 [ ok ]
 *   00_all_0003-linux-stat.h-remove-__GLIBC__-checks.patch ...
 [ ok ]
 *   00_all_0004-linux-stddef.h-export-offsetof-to-userspace.patch ...
 [ ok ]
 *   00_all_0005-linux-pull-in-other-needed-headers-for-userspace.patch ...
 [ ok ]
 *   00_all_0006-netfilter-pull-in-limits.h.patch ...
 [ ok ]
 *   00_all_0007-convert-PAGE_SIZE-usage.patch ...
 [ ok ]
 *   00_all_0008-HACK-asm-pull-in-C-library-headers.patch ...
 [ ok ]
 * Done with patching
>>> Source unpacked in /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work
>>> Preparing source in /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35 ...
>>> Source compiled.
>>> Test phase [not enabled]: cross-powerpc-linux-gnu/linux-headers-2.6.35

>>> Install linux-headers-2.6.35 into /var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/image/ category cross-powerpc-linux-gnu
make -j5 headers_install INSTALL_HDR_PATH=/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/image///usr/powerpc-linux-gnu/usr/include/.. ARCH=powerpc CROSS_COMPILE=x86_64-pc-linux-gnu- 
/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35/arch/powerpc/Makefile:183: *** mixed implicit and normal rules.  Stop.
emake failed
 * ERROR: cross-powerpc-linux-gnu/linux-headers-2.6.35 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 3214:  Called kernel-2_src_install
 *   environment, line 2361:  Called install_headers
 *   environment, line 2210:  Called die
 * The specific snippet of code:
 *           emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die;
 * 
 * If you need support, post the output of 'emerge --info =cross-powerpc-linux-gnu/linux-headers-2.6.35',
 * the complete build log and the output of 'emerge -pqv =cross-powerpc-linux-gnu/linux-headers-2.6.35'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/temp/environment'.
 * S: '/var/tmp/portage/cross-powerpc-linux-gnu/linux-headers-2.6.35/work/gentoo-headers-base-2.6.35'
Comment 1 Benda Xu gentoo-dev 2010-11-15 08:58:18 UTC
Same as here on gentoo ppc. A discussion in the kernel mailing list is:

  http://lkml.org/lkml/2010/8/2/117

patch is:

  http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fv2.6%2Fpatch-2.6.36.bz2;z=2150

It seems that all the kernels before 2.6.36 are affected by this GNU Make intentional breakage.