Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202749 - x11-drivers/nvidia-drivers-1.0.7185 build fails under sys-kernel/gentoo-sources-2.6.23-r3
Summary: x11-drivers/nvidia-drivers-1.0.7185 build fails under sys-kernel/gentoo-sourc...
Status: RESOLVED DUPLICATE of bug 186490
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-19 04:24 UTC by Boney McCracker
Modified: 2007-12-19 06:02 UTC (History)
0 users

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 Boney McCracker 2007-12-19 04:24:52 UTC
I see several similar bugs, but none that appear to be duplicates (different errors, different modules or nvidia-driver versions). Sorry if it's duplicate.

Thank you.


--------------
External module rebuild failing, following upgrade from gentoo-sources-2.6.22 to 2.6.23-r3

Old nvidia card (TNT2 / TNT2 Pro M64) requires nvidia-drivers-1.0.7185.
Using package.mask entry: '>=x11-drivers/nvidia-drivers-1.0.8700' per docs.

Build fails under 2.6.23; succeeds under 2.6.22.
Note: current version from Nvidia website is 1.0.

Re: related bugs; disabling sandbox or ccache has no effect; errors appear dissimilar.

Reproducible: Always

Steps to Reproduce:
1.Boot using gentoo-sources-2.6.23-3
2./etc/package.mask entry: >=x11-drivers/nvidia-drivers-1.0.8700
3.emerge gentoo-sources

Actual Results:  
Entire log provided because it's brief.  Initial problem appears to be on line:   "error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token"

tempest # emerge nvidia-drivers
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-1.0.7185 to /
 * NVIDIA-Linux-x86-1.0-7185-pkg0.run RMD160 SHA1 SHA256 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                            [ ok ]
 * checking NVIDIA-Linux-x86-1.0-7185-pkg0.run ;-) ...                                                                                            [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.23-gentoo-r3/build
 * Found sources for kernel version:
 *     2.6.23-gentoo-r3
 * Checking for MTRR support ...                                                                                                                  [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-1.0-7185-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-7185........................................................................
 * Applying NVIDIA_glx-defines.patch ...                                                                                                          [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                                                                         [ ok ]
 * Converting Makefile.kbuild to use M= instead of SUBDIRS= ...                                                                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv ...
 * Preparing nvidia module

NVIDIA: calling KBUILD...
make CC=i686-pc-linux-gnu-gcc KBUILD_OUTPUT=/lib/modules/2.6.23-gentoo-r3/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.23-gentoo-r3/build \
        KBUILD_SRC=/usr/src/linux-2.6.23-gentoo-r3 \
        KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv" -f /usr/src/linux-2.6.23-gentoo-r3/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/.tmp_versions
rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.23-gentoo-r3/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv
echo \#define NV_COMPILER \"`i686-pc-linux-gnu-gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv_compiler.h
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.23-gentoo-r3/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.6.23-gentoo-r3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7185 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c: In function ‘nvos_create_alloc’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:392: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:392: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:392: error: for each function it appears in.)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c: In function ‘nvos_free_alloc’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:429: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c: In function ‘nvidia_init_module’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:1332: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:1332: error: too many arguments to function ‘kmem_cache_create’
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:1466: error: void value not ignored as it ought to be
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c: In function ‘nvidia_exit_module’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:1491: error: void value not ignored as it ought to be
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.c:1596: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.7185/work/NVIDIA-Linux-x86-1.0-7185-pkg0/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 * 
 * ERROR: x11-drivers/nvidia-drivers-1.0.7185 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
 *   nvidia-drivers-1.0.7185.ebuild, line  210:  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  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.23-gentoo-r3/build clean module.
 * 
 * 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/x11-drivers:nvidia-drivers-1.0.7185:20071219-032520.log'.


Expected Results:  
Build succeeds, as it continues to do under 2.6.22

tempest ~ # emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Pentium III (Coppermine)
Timestamp of tree: Tue, 18 Dec 2007 21: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-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 alsa bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dv dvd dvdread encode esd exif fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick java jpeg logrotate mad midi mime mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre pdf perl png python quicktime readline reflection reiserfs samba sdl session spell spl sse sse2 ssl startup-notification svg symlink sysfs threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs x86 xface xml xorg xpm xv zlib" ALSA_CARDS="emu10k1" 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 joystick" KERNEL="linux" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-19 06:02:35 UTC

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