Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201202 - media-video/gspcav1-20070508 compile problem caused by bad makefile
Summary: media-video/gspcav1-20070508 compile problem caused by bad makefile
Status: RESOLVED DUPLICATE of bug 207826
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-04 10:43 UTC by Christian Rothländer
Modified: 2008-01-28 20:04 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 Christian Rothländer 2007-12-04 10:43:38 UTC
Tried on newest 2.6.24-rc3 Kernel, with the old (2.6.23-rc5) it worked.




>>> Emerging (1 of 1) media-video/gspcav1-20070508 to /
 * gspcav1-20070508.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                        [ ok ]
 * checking auxfile checksums ;-) ...                                       [ ok ]
 * checking miscfile checksums ;-) ...                                      [ ok ]
 * checking gspcav1-20070508.tar.gz ;-) ...                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.24-rc3/build
 * Found sources for kernel version:
 *     2.6.24-rc3
 * Checking for suitable kernel configuration options...                    [ ok ]
>>> Unpacking source...
>>> Unpacking gspcav1-20070508.tar.gz to /var/tmp/portage/media-video/gspcav1-20070508/work
 * Converting gspcav1-20070508/Makefile to use M= instead of SUBDIRS= ...   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508 ...
 * Preparing gspca module
make -C /usr/src/linux M=/var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508 CC=i686-pc-linux-gnu-gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.24-rc3'
scripts/Makefile.build:46: *** CFLAGS was changed in "/var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508/Makefile". Fix it to use EXTRA_CFLAGS.  Schluss.
make[1]: *** [_module_/var/tmp/portage/media-video/gspcav1-20070508/work/gspcav1-20070508] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-rc3'
make: *** [default] Fehler 2
 *
 * ERROR: media-video/gspcav1-20070508 failed.
 * Call stack:
 *          ebuild.sh, line 1701:  Called dyn_compile
 *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1383:  Called linux-mod_src_compile
 *   linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNELDIR=/usr/src/linux default.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/gspcav1-20070508/temp/build.log'.
 *

 * Messages for package media-video/gspcav1-20070508:

 *
 * ERROR: media-video/gspcav1-20070508 failed.
 * Call stack:
 *          ebuild.sh, line 1701:  Called dyn_compile
 *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1383:  Called linux-mod_src_compile
 *   linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNELDIR=/usr/src/linux default.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/gspcav1-20070508/temp/build.log'.
 *
Comment 1 Christian Rothländer 2007-12-04 10:49:19 UTC
if I manually change the CFLAGS into EXTRA_CFLAGS the following error appears:



make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/gspcav1-20070508 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.24-rc3'
  CC [M]  /tmp/gspcav1-20070508/gspca_core.o
/tmp/gspcav1-20070508/gspca_core.c:2567: Fehler: unbekanntes Feld »hardware« in Initialisierung angegeben
/tmp/gspcav1-20070508/gspca_core.c: In Funktion »cd_to_spca50x«:
/tmp/gspcav1-20070508/gspca_core.c:2616: Warnung: Initialisierung von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c: In Funktion »spca50x_create_sysfs«:
/tmp/gspcav1-20070508/gspca_core.c:2655: Warnung: Übergabe des Arguments 2 von »video_device_create_file« von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c:2657: Warnung: Übergabe des Arguments 2 von »video_device_create_file« von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c:2659: Warnung: Übergabe des Arguments 2 von »video_device_create_file« von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c:2665: Warnung: Übergabe des Arguments 2 von »video_device_remove_file« von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c:2667: Warnung: Übergabe des Arguments 2 von »video_device_remove_file« von inkompatiblem Zeigertyp
/tmp/gspcav1-20070508/gspca_core.c:2669: Warnung: Übergabe des Arguments 2 von »video_device_remove_file« von inkompatiblem Zeigertyp
make[2]: *** [/tmp/gspcav1-20070508/gspca_core.o] Fehler 1
make[1]: *** [_module_/tmp/gspcav1-20070508] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-rc3'
make: *** [default] Fehler 2
Comment 2 Christian Rothländer 2007-12-04 10:50:01 UTC
last but not least: system Info


Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.24-rc3 i686)
=================================================================
System uname: 2.6.24-rc3 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Mon, 03 Dec 2007 14:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="de"
LC_ALL="de_DE@euro"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/synce /usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi aim alsa berkdb bitmap-fonts bluetooth bzip2 cdda cddb cdparanoia cdr cli cracklib crypt cups cvs dbus dga doc dri dts dvb dvd dvdr dvdread encode exif ffmpeg firefox flac fortran ftp gdbm gif glitz glut gnuplot gpm gps gtk hal iconv icq ieee1394 ipv6 ipw3945 isdnlog jabber java javscript jpeg jpeg2000 kde kdeenablefinal lesstif live mad md5sum midi mmc mmx mono motif mozilla mp3 mpeg mplayer msn mudflap nas ncurses nls nptl nptlonly nsplugin nvidia ocaml ogg openal opengl openmp oscar pam pascal pcre pda pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline recode reflection rt73usb ruby samba sdl seamonkey session slang sockets spl sse sse2 ssl stream subversion svg tcl tcltk tcpd tetes theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wifi win32codecs wmf wxwindows x86 xine xinerama xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-04 13:52:57 UTC
Please set your locales to C when reporting bugs. We don't want errors in random languages.
Comment 4 Pacho Ramos gentoo-dev 2008-01-16 19:33:56 UTC
This will be fixed with bug 203678

at least from upstream changelog:
Release 01.00.20 rc2
	FIX sysfs for kernel upto 2.6.23
	Makefile need to change for kernel 2.6.24 used EXTRA_CLAGS instead of
	CFLAGS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 20:03:23 UTC

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