GCC 3.2 From /etc/make.conf CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" #-ffast-math -falign-functions=4 -fprefetch-loop-arrays -fforce-addr" # If you set a CFLAGS above, then this line will set your default C++ flags to # the same settings. If you don't set a CFLAGS above, then comment this line out. CXXFLAGS="${CFLAGS}" As you can see, I'd turned the CFLAGS down. Emerging the nvidia-packages. I did an emerge unmerge of them first. Kernel recompiles, X installs, long ass KDE build, yada, yada, and yada. And since I had unmerged them, obviously I'd successfully compiled them previously. With harder CFLAGS before I believe, but not certain. But I'm positive they'd been compiled successfully before b/c listed in the pretend. Not sure what to check, and seemant said to just post this so azarah could take a look. If you need more or less... Hardware, software, script to run... let me know. e-mail or SanityInFlux on IRC freenode/openprojects.net. Whatever it actually is. I'm in #linuxchics when I'm online and in #gentoo a 90% the time online. Useful garbage from an SSH window(same errors as console): login as: root Sent username "root" root@192.168.0.2's password: Last login: Thu Oct 3 06:36:04 2002 p3-1000 root # cd /var/tmp/portage/ p3-1000 portage # rm -rf * p3-1000 portage # emerge nvidia-kernel Calculating dependencies ...done! >>> emerge media-video/nvidia-kernel-1.0.3123 to / >>> md5 ;-) NVIDIA_kernel-1.0-3123.tar.gz >>> Unpacking source... >>> Unpacking NVIDIA_kernel-1.0-3123.tar.gz >>> Source unpacked. rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h *.d NVdriver echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts - Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ - DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR - D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 - DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX - DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c In file included from nv.c:14: nv-linux.h:24:31: linux/modversions.h: No such file or directory In file included from /usr/src/linux/include/linux/affs_fs_i.h:7, from /usr/src/linux/include/linux/fs.h:308, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:6, from /usr/src/linux/include/linux/sched.h:10, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from nv-linux.h:56, from nv.c:14: /usr/src/linux/include/linux/time.h: In function `timespec_to_jiffies': /usr/src/linux/include/linux/time.h:37: `CONFIG_JIFFIES' undeclared (first use in this function) /usr/src/linux/include/linux/time.h:37: (Each undeclared identifier is reported only once /usr/src/linux/include/linux/time.h:37: for each function it appears in.) /usr/src/linux/include/linux/time.h: In function `jiffies_to_timespec': /usr/src/linux/include/linux/time.h:47: `CONFIG_JIFFIES' undeclared (first use in this function) In file included from /usr/src/linux/include/linux/sched.h:15, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from nv-linux.h:56, from nv.c:14: /usr/src/linux/include/linux/timex.h:78:3: #error You lose. In file included from /usr/src/linux/include/asm/pci.h:35, from /usr/src/linux/include/linux/pci.h:614, from nv-linux.h:62, from nv.c:14: /usr/src/linux/include/asm/io.h: In function `virt_to_phys': /usr/src/linux/include/asm/io.h:78: `PAGE_OFFSET_RAW' undeclared (first use in this function) /usr/src/linux/include/asm/io.h: In function `phys_to_virt': /usr/src/linux/include/asm/io.h:96: `PAGE_OFFSET_RAW' undeclared (first use in this function) /usr/src/linux/include/asm/io.h: In function `isa_check_signature': /usr/src/linux/include/asm/io.h:268: `PAGE_OFFSET_RAW' undeclared (first use in this function) In file included from /usr/src/linux/include/linux/highmem.h:5, from nv-linux.h:75, from nv.c:14: /usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_slow': /usr/src/linux/include/asm/pgalloc.h:64: `PAGE_OFFSET_RAW' undeclared (first use in this function) In file included from nv-linux.h:75, from nv.c:14: /usr/src/linux/include/linux/highmem.h: In function `kmap': /usr/src/linux/include/linux/highmem.h:33: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nvos_malloc': nv.c:413: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nvos_free': nv.c:449: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nv_kern_close': nv.c:1208: `CONFIG_JIFFIES' undeclared (first use in this function) nv.c: In function `nv_find_kernel_mapping': nv.c:2130: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nv_get_phys_address': nv.c:2161: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nv_alloc_pages': nv.c:2262: `PAGE_OFFSET_RAW' undeclared (first use in this function) nv.c: In function `nv_free_pages': nv.c:2401: `PAGE_OFFSET_RAW' undeclared (first use in this function) make: *** [nv.o] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -39, Exitcode 2 !!! (no error message) p3-1000 portage #time emerge nvidia-kernel <snip> real 0m1.563s user 0m1.140s sys 0m0.210s Thanks, Will aka SanityInFlux (maybe you've seen siffy too)
this one is easy :) basically you need to generate that modversions.h file in your kernel tree ... this is done by running `make dep` in /usr/src/linux/ make sure your kern src reflects the kern you're running
well you spotted that and I didn't so it's all yours
any luck ?
Yes, sorry vapier/SpanKY. You were right on with that. After compiling the kernel I'd planned to use I went on to make a backup vanilla and some kernels for boot floppies. I tried the remerge of the nvidia-kernel after installing KDE. I guess it was a symlink issue, but nvidia-kernel and nvidia-glx went no problems after just recompiling my current kernel.
np, glad it works :)
*** Bug 10201 has been marked as a duplicate of this bug. ***
*** Bug 10349 has been marked as a duplicate of this bug. ***