Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238541 - app-laptop/tp_smapi-0.31 - /usr/src/linux-2.6.25-gentoo-r7/scripts/Makefile.build:46: *** CFLAGS was changed in "/var/tmp/portage/app-laptop/tp_smapi-0.31/work/tp_smapi-0.31/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
Summary: app-laptop/tp_smapi-0.31 - /usr/src/linux-2.6.25-gentoo-r7/scripts/Makefile.b...
Status: RESOLVED DUPLICATE of bug 219285
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Weller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 05:27 UTC by hu
Modified: 2009-01-07 04:17 UTC (History)
1 user (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 hu 2008-09-24 05:27:49 UTC
I am install hdaps support for thinkpad t43, and my kernel is gentoo-sources 2.6.25-r7 ,i patch the kernel with patch of thinkwiki.
when I emerged tp_smapi, it failed.

Reproducible: Always

Steps to Reproduce:
1.patch the 2.6.25-r9 patch of hdaps in thinkwiki with kernel 2.6.25-r7
2.emerge tp_smapi
3.

Actual Results:  
>>> Emerging (1 of 1) app-laptop/tp_smapi-0.31 to /
 * tp_smapi-0.31.tgz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking tp_smapi-0.31.tgz ;-) ...                                     [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.25-gentoo-r7hdaps
>>> Unpacking source...
>>> Unpacking tp_smapi-0.31.tgz to /var/tmp/portage/app-laptop/tp_smapi-0.31/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-laptop/tp_smapi-0.31/work/tp_smapi-0.31 ...
 * Preparing thinkpad_ec module
echo '/* Intentionally empty. You have proper DMI OEM Strings. */' > dmi_ec_oem_string.h
make -C /usr/src/linux M=/var/tmp/portage/app-laptop/tp_smapi-0.31/work/tp_smapi-0.31 O=/usr/src/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7'
/usr/src/linux-2.6.25-gentoo-r7/scripts/Makefile.build:46: *** CFLAGS was changed in "/var/tmp/portage/app-laptop/tp_smapi-0.31/work/tp_smapi-0.31/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[2]: *** [_module_/var/tmp/portage/app-laptop/tp_smapi-0.31/work/tp_smapi-0.31] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7'
make: *** [modules] Error 2
 * 
 * ERROR: app-laptop/tp_smapi-0.31 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3153:  Called linux-mod_src_compile
 *             environment, line 2414:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CC=\"$(get-KERNEL_CC)\" 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KSRC=/usr/src/linux KBUILD=/usr/src/linux HDAPS=1 default
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-laptop:tp_smapi-0.31:20080924-052433.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-laptop/tp_smapi-0.31/temp/environment'.
 * 

 * Messages for package app-laptop/tp_smapi-0.31:

 * 
 * ERROR: app-laptop/tp_smapi-0.31 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3153:  Called linux-mod_src_compile
 *             environment, line 2414:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 			CC=\"$(get-KERNEL_CC)\" 						LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 		${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KSRC=/usr/src/linux KBUILD=/usr/src/linux HDAPS=1 default
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-laptop:tp_smapi-0.31:20080924-052433.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-laptop/tp_smapi-0.31/temp/environment'.
 * 



laptop queue # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7hdaps i686)
=================================================================
System uname: 2.6.25-gentoo-r7hdaps i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Tue, 23 Sep 2008 06:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.lecl.net/pub/gentoo/ "
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh zh_CN zh_TW"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 a52 aac aalib acl acpi aim alsa asf avahi avi bash-completion berkdb bitmap-fonts blas bzip2 cdparanoia cdr chm cjk cli cracklib crypt cups dbus divx4linux dri dv dvd dvdread emacs encode examples exif ffmpeg firefox flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gtk hal hdaps iconv isdnlog java jpeg lame lm_sensors mad midi mjpeg mp3 mp4 mpeg msn mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python qq quicktime rar readline real reflection session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype type1 unicode usb vcd vim-syntax vorbis win32codecs wmv x86 xcb xft xine xinerama xml xorg xscreensaver xv xvid zip zlib" ALSA_CARDS="intel8x0" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bram Schoenmakers 2008-10-19 09:16:38 UTC
This is a duplicate of bug 219285, I suppose.
Comment 2 Anton Bolshakov 2008-12-16 15:43:44 UTC
Hu,

try to compile the latest tp_smapi-0.39 (it is in the portage already).

Also, see bug #219285 for complete set of patches and bug reports for HDAPS/tp_smapi.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-01-07 04:17:08 UTC

*** This bug has been marked as a duplicate of bug 219285 ***