LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-12-2013, 07:01 PM   #1
cisneros
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 95

Rep: Reputation: 5
Question 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.

Last edited by cisneros; 06-12-2013 at 08:03 PM.
 
Old 06-12-2013, 08:37 PM   #2
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,849
Blog Entries: 15

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Did you update your kernel headers by chance?
 
Old 06-12-2013, 08:50 PM   #3
cisneros
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 5
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.
 
Old 06-12-2013, 09:02 PM   #4
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,849
Blog Entries: 15

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
By chance was there an update to glibc as well?
 
Old 06-12-2013, 09:21 PM   #5
cisneros
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 5
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

Last edited by cisneros; 06-12-2013 at 09:24 PM.
 
Old 06-12-2013, 09:48 PM   #6
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: OpenSuse 13.1
Posts: 80

Rep: Reputation: 16
amd-driver-installer-catalyst-13-4-x86.x86_64.run compiles and runs fine here on -current.
 
Old 06-13-2013, 02:29 PM   #7
cisneros
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 5
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.
 
Old 06-13-2013, 03:15 PM   #8
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,849
Blog Entries: 15

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] fglrx doesnt build package anymore on slackware-current x64 anti_user Slackware 5 04-11-2013 09:37 PM
fglrx problems with Slackware-Current MoridinBG Slackware 1 03-30-2007 01:53 PM


All times are GMT -5. The time now is 07:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration