LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fglrx and slackware 14-current (https://www.linuxquestions.org/questions/slackware-14/fglrx-and-slackware-14-current-4175465782/)

cisneros 06-12-2013 07:01 PM

fglrx and slackware 14-current
 
so when i try to install the driver installer-catalyst-13.1-linux-x86.x86_64.run
or when i try to generate the driver package, this error shows up in the /usr/share/ati/fglrx-install.log

Code:

AMD kernel module generator version 2.1
kernel includes at /lib/modules/3.9.5/build/include not found or incomplete
file: /lib/modules/3.9.5/build/include/linux/version.h
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware


after i copied the version.h file from the src folder these errors ended up in the file:

Code:

AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.9.5/build SUBDIRS=/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.9.5'
  CC [M]  /home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: error: 'VM_RESERVED' undeclared (first use in this function)
            vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */
                                      ^
/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/home/javier/Downloads/fglrx-install.mhqEUn/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.5'
make: *** [kmod_build] Error 2
build failed with return value 2
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware


maybe the lastest version of the headers are messed up or something.
i have slackware current at the last update.
any advice? thanks.

ReaperX7 06-12-2013 08:37 PM

Did you update your kernel headers by chance?

cisneros 06-12-2013 08:50 PM

i ran a complete update to --current with slackpkg, that installed new kernel files.

a/kernel-firmware-20130610git-noarch-1.txz: Upgraded.
a/kernel-generic-3.9.5-x86_64-1.txz: Upgraded.
a/kernel-huge-3.9.5-x86_64-1.txz: Upgraded.
a/kernel-modules-3.9.5-x86_64-1.txz: Upgraded.

d/kernel-headers-3.9.5-x86-1.txz: Upgraded.
k/kernel-source-3.9.5-noarch-1.txz: Upgraded.

ReaperX7 06-12-2013 09:02 PM

By chance was there an update to glibc as well?

cisneros 06-12-2013 09:21 PM

this is what the changelog says

Code:

l/glibc-2.17-x86_64-4.txz:  Rebuilt.
l/glibc-i18n-2.17-x86_64-4.txz:  Rebuilt.
l/glibc-profile-2.17-x86_64-4.txz:  Rebuilt.

i deleted the version.h and instead i made a symbolic link.
this shows up in the log file:

Code:

AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.9.5/build SUBDIRS=/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.9.5'
  CC [M]  /home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_AllocLinearAddrInterval':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2149:5: error: implicit declaration of function 'do_mmap' [-Werror=implicit-function-declaration]
    vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
    ^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2149:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
            ^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3697:39: error: 'VM_RESERVED' undeclared (first use in this function)
            vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */
                                      ^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3697:39: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/src/linux-3.9.5/arch/x86/include/asm/cpumask.h:4:0,
                from /usr/src/linux-3.9.5/arch/x86/include/asm/msr.h:10,
                from /usr/src/linux-3.9.5/arch/x86/include/asm/processor.h:20,
                from /usr/src/linux-3.9.5/arch/x86/include/asm/thread_info.h:22,
                from include/linux/thread_info.h:54,
                from include/linux/preempt.h:9,
                from include/linux/spinlock.h:50,
                from include/linux/seqlock.h:29,
                from include/linux/time.h:5,
                from include/linux/stat.h:18,
                from include/linux/module.h:10,
                from /home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:109:
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'kasInitExecutionLevels':
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:26: error: 'cpu_possible_map' undeclared (first use in this function)
    for_each_cpu_mask(p, cpu_possible_map)
                          ^
include/linux/cpumask.h:820:44: note: in definition of macro 'next_cpu'
 #define next_cpu(n, src) __next_cpu((n), &(src))
                                            ^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: note: in expansion of macro 'for_each_cpu_mask'
    for_each_cpu_mask(p, cpu_possible_map)
    ^
include/linux/cpumask.h:824:34: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  (cpu) = next_cpu((cpu), (mask)), \
                                  ^
/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4184:5: note: in expansion of macro 'for_each_cpu_mask'
    for_each_cpu_mask(p, cpu_possible_map)
    ^
cc1: some warnings being treated as errors
make[2]: *** [/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/home/javier/Downloads/fglrx-install.2k4iOr/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.5'
make: *** [kmod_build] Error 2
build failed with return value 2
ERROR: I didn't make module
[Error] Generate Package - error generating package : Slackware/Slackware


JackHair 06-12-2013 09:48 PM

amd-driver-installer-catalyst-13-4-x86.x86_64.run compiles and runs fine here on -current.

cisneros 06-13-2013 02:29 PM

i made a new installation of slackware current, then i install the beta driver of AMD 13.6 that adds support for my video card. everything seems to work fine.

ReaperX7 06-13-2013 03:15 PM

The kernel headers should really never be updated unless you update glibc. The kernel headers really aren't a part of the Linux Kernel, but are more-so, GLibC-Kernel-Headers. In reality the package has suffered a long time mislabeling, which has led to incidents like this.

Unless you update GLibC and the Kernel Headers equally, it will break your compiler.


All times are GMT -5. The time now is 06:13 PM.