Fedora 20 HOWTO – AMD ATI Proprietary Catalyst Display Driver

Fedora 20 HOWTO – AMD ATI Proprietary Catalyst Display Driver

Note: This blog post was updated. The first (original) part describes an unsuccessful installation of the proprietary Catalyst driver on Fedora 20 and how to switch back to the open-source Radeon driver. The (new) second part, describes how to modify Catalyst driver’s source code and walk around the API incompatibility in the Fedora 20 kernel headers.

Update 7.2.2014: The current Latest Beta Driver (amd-catalyst-14.1-betav1.3) seems to be working well, without a need of additional modifications! Hooray!


Chapter one – Unsuccessful installation and switch back to the Radeon driver

Yesterday, I tried to install the official “AMD Catalyst™ 13.12 Proprietary Linux x86 Display Driver” (fglrx) from ATI’s support page.

I checked the release notes for system requirements:

  • Xorg/Xserver 7.4 and above (up to 1.14)
  • Linux kernel 2.6 or above (up to 3.11)

I checked my system:

$ Xorg -version
X.Org X Server 1.14.4
Release Date: 2013-10-31
X Protocol Version 11, Revision 0

$ uname -a
Linux localhost.localdomain 3.11.10-301.fc20.x86_64

Everything looked promising.

I downloaded the driver, started the installation and… saw an error message.

Sadly, it turned out that Catalyst driver cannot be installed because the kernel module compilation failed – Fedora 20 kernel headers have different API than the Catalyst 13.12 driver expects.

This was the good part of the story.

The bad part was that after reboot, I found out that my display uses resolution 1024×768 instead of 1920×1080 and that the Cinnamon crashes immediately after logging in. Quickly I found that instead of Radeon, the Vesa driver is used.

It took me a some time to figure out what the ATI Catalyst driver installer have done in system and fix it.

So in short, when you wanna switch from the proprietary ATI Catalyst (fglrx) driver back to the open-source Radeon driver. Even if the installation of the ATI Catalyst (fglrx) driver wasn’t successful! You have to:

  • Remove the “/etc/X11/xorg.conf” created by the driver installer.
  • Remove the “/etc/modprobe.d/blacklist-fglrx.conf” (or at least comment line which blacklists the Radeon driver inside it).

You may remove some other files, generated by the installer, too:

  • /usr/lib64/xorg/modules/amdxmm.so
  • /usr/lib64/xorg/modules/drivers/fglrx_drv.so

Update: Or you could use the uninstall script (/usr/share/ati/amd-uninstall.sh), if it was installed.


Chapter two – (The update) How to install Catalyst anyway

I’ve looked at the thread linked by Castagna in the comments below and apply the mentioned method. And it works!

Thank you Castangna!

What I’ve done:

I’ve started the Catalyst installation script again. It failed again as expected. But it has done everything I’ve needed: It has created the previously deleted /etc/X11/org.conf and blacklisted the Radeon driver again.

The compilation and installation of the module I’ve done by hand. After the (failed) installation, I have a fglrx driver module’s source code on my system in /lib/modules/fglrx/build_mod/, so I’ve just modified it, compiled it and installed it by hand. There are the used steps:

  • $ cd /lib/modules/fglrx/build_mod/
  • Modify the kcl_acpi.c as suggested by Maxtorete in the thread. (On the line 999, change the type cast of the function pointer “((acpi_table_handler)handler)(hdr);)” to “((acpi_tbl_table_handler)handler)(hdr);
  • $ ./make.sh
  • $ cd .. && ./make_install.sh
  • This is all, now reboot the system and enjoy smooth graphic

Important notes

Note 1: As tac mentioned in the comment bellow, you must have kernel-devel, kernel-headers and gcc packages installed:

yum install kernel-devel kernel-headers gcc -y

Note 2: Check the comments below, Andrey posted a patch there.

Note 3: To be able to load the fglrx module, you have to disable the secure boot feature in BIOS (if you have it enabled).

Update (7.2.2014): The current “Latest Beta Driver” (amd-catalyst-14.1-betav1.3) with date 2/1/2014 (where the 2 is month and the 1 is day – oh, I really hate this date format order!) seems to be working out of the box without a need of this modifications!

52 thoughts on “Fedora 20 HOWTO – AMD ATI Proprietary Catalyst Display Driver

  1. after installing the driver, theres no time to modify the files, my system freezes, i restart, try to edit with terminal (using vi to edit text) but no luck, how can i do that before i install the driver?

  2. Hi ian,
    it weird. Even if the driver (kernel module) would be installed correctly (but it doesn’t), it is loaded to memory after the reboot, during boot. So until you restart, the systems shouldn’t freeze. Did you restarted your system after the driver installation, or it actually froze right after installation (before the system was rebooted).

    I’ve modified the file, right after the driver installation was over – when the dialog suggesting the computer reboot appeared, I chose to skip reboot and modified the file. I rebooted after the modification (kcl_acpi.c), compilation (make.sh) and installation (make_install.sh) was done.

    1. thanks for replying so soon, i forgot some facts, doesnt freeze if i dont try to point the mouse to something graphic (like settings or activities) however i can modify the files after, using terminal, but fglrx wont install, i get this “DKMS part of installation failed. Please refer to /usr/share/ati/fglrx-install.log for details”, so i wasnt able to modify kcl_acpi.c, maybe if i force it?

  3. thanks for replying so soon, i forgot some facts, doesnt freeze if i dont try to point the mouse to something graphic (like settings or activities) however i can modify the files after, using terminal, but fglrx wont install, i get this “DKMS part of installation failed. Please refer to /usr/share/ati/fglrx-install.log for details”, so i wasnt able to modify kcl_acpi.c, maybe if i force it?

  4. The installation should fails, it’s OK.

    Now, after the failed installation, you should have a driver source code in “/lib/modules/fglrx/build_mod/” directory, and you should modify the code there. Use the procedure mentioned in the article (modify the code, compile it by the ./make.sh and install it by the ./make_install.sh). This procedure will lead to the fglrx driver installation. If your desktop freezes in graphic mode, you should try to use recovery mode or at least switch to the text terminal (e.g. CTRL + ALT + F2).

    Btw. I don’t know what desktop environment are you using. I am currently using MATE and it is possible that other desktop environments could have a problem with running on fglrx driver, I am not sure. (I’ve used Cinnamon first, but now it is broken and it doesn’t work properly even with the open-source Radeon driver, currently, I am not sure where is the problem, but I don’t care, because MATE fits my needs perfectly).

    1. well im a new user in linux world, i try ubuntu first, but i has the same problems despites some software that i work with work better on fedora, (i think i`m using gnome, i really dont know) but about the fglrx, doesnt even install the folder fglrx, i use ls in module folder, there is only other folder with numbers of drive version, but since you mentioned, how do i use MATE?

      1. Hm, if even the “/lib/modules/fglrx/build_mod/” wasn’t created, then I don’t know where the problem could be.

        You could definitely check the install log (/usr/share/ati/fglrx-install.log).

        My log looks like:
        /usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:999:5: note: expected ‘u32’ but argument is of type ‘struct acpi_table_header *’
        /usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:999:5: error: too few arguments to function ‘(acpi_status (*)(u32, void *, void *))handler’
        make[2]: *** [/usr/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
        make[1]: *** [_module_/usr/lib/modules/fglrx/build_mod/2.6.x] Error 2
        make[1]: Leaving directory `/usr/src/kernels/3.12.5-302.fc20.x86_64'
        make: *** [kmod_build] Error 2
        build failed with return value 2
        [Error] Kernel Module : Failed to compile kernel module - please consult readme.

        About the MATE, it is another graphic desktop environment that you can choose during Fedora installation. But I don’t think that this really be the problem in this case.

  5. Hey Tojaj,

    Thanks for your great article!
    It is working now and even the freezes with Libreoffice Calc have stopped. I was reading that they could be happening because of the graphic driver and now it’s confirmed.
    But coming to the installation on the latest kernel 3.12.5-302.fc20.x86_64 I had the problem, that I didn’t have version.h in something like /lib/modules/…
    After that I installed the kernel-headers and the kernel-devel, tried again and I read in the log that I need gcc. So after installing it, I managed to complete the instructions from your post and after rebooting… voilà… everything is fine.
    So for everybody having the problem that the fglrx modules are not even installed after running the AMD installer, just try the following steps first:
    yum install kernel-devel kernel-headers gcc -y
    Quit your GUI to shell with CTRL+ALT+F2 or reboot to rescue mode and run the driver with ./amd-catalyst-13.12-linux-x86.x86_64.run.
    Follow the instructions from Tojaj’s post.

    Hope that helps somebody.
    Thanks again Tojaj!!!

  6. Pingback: Anonymous
  7. Thanks for this guide. Definitely helped me get my machine up and running after I wiped F18 and jumped to F20. It was booting to a black screen with nothing but the mouse pointer. I could see that the pointer would change when hovering over the text field of the login window but it would just display really funky colors after logging in. Using your guide over the command-line, I was able to get it to boot correctly. Thanks again!

  8. Patch for 13.12 driver

    — 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-17 20:05:35.000000000 +0100
    +++ 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-19 18:40:18.386568588 +0100
    @@ -995,7 +995,11 @@
    #endif
    {
    return KCL_ACPI_ERROR;
    – }
    + }
    +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
    + ((acpi_tbl_table_handler)handler)(hdr);
    +#else
    ((acpi_table_handler)handler)(hdr);
    +#endif
    return KCL_ACPI_OK;
    -}
    +}

  9. Hi Tojaj,
    followed instructions as following, but didn’t work.
    i have kernel 3.12 and 3.11. I have kernel-headers kernel-extras kernel-devel for both kernels and gcc

    1) Logged in from radeon driver in to UI from kernel 3.12.
    2) installed catalyst 13.12 (which failed)
    3) edited and compiled which was success.
    4) make installed success.
    5) At restart from kernel 3.12, the progress bar is at bottom goes after that black screen. can enter command line. fglrx driver is in use.
    6) can revert to radeon driver but it overheats the VGA and crashes like in 10 minutes.

    is this because i have two kernels. Or is the 13.12 not compatible. i can try with 13.11 then.

    please see the dmesg output
    ==========================
    [ 37.498605] fglrx_pci 0000:01:00.0: irq 47 for MSI/MSI-X
    [ 37.499419] [fglrx] Firegl kernel thread PID: 1155
    [ 37.499496] [fglrx] Firegl kernel thread PID: 1156
    [ 37.499548] [fglrx] Firegl kernel thread PID: 1157
    [ 37.499689] [fglrx] IRQ 47 Enabled
    [ 37.569768] [fglrx] Reserved FB block: Shared offset:0, size:1000000
    [ 37.569772] [fglrx] Reserved FB block: Unshared offset:f878000, size:4000
    [ 37.569774] [fglrx] Reserved FB block: Unshared offset:f87c000, size:484000
    [ 37.569776] [fglrx] Reserved FB block: Unshared offset:3fff4000, size:c000
    [ 39.663536] ALSA sound/pci/hda/hda_eld.c:334 HDMI: ELD buf size is 0, force 128
    [ 39.663557] ALSA sound/pci/hda/hda_eld.c:351 HDMI: invalid ELD data byte 0
    [ 39.663593] ALSA sound/pci/hda/hda_eld.c:334 HDMI: ELD buf size is 0, force 128
    [ 39.663610] ALSA sound/pci/hda/hda_eld.c:351 HDMI: invalid ELD data byte 0
    [ 39.963794] ALSA sound/pci/hda/hda_eld.c:334 HDMI: ELD buf size is 0, force 128
    [ 39.963823] ALSA sound/pci/hda/hda_eld.c:351 HDMI: invalid ELD data byte 0
    [ 40.264727] ALSA sound/pci/hda/hda_eld.c:334 HDMI: ELD buf size is 0, force 128

    1. in above “. Or is the 13.12 not compatible. i can try with 13.11 then.” should change as “. Or is the 3.12 not compatible. i can try with 3.11 then.”

      1. Hi, sorry for late answer I am little busy lately.
        Please check few comments bellow, about the secure boot and disable it in BIOS if you have it active.

        About the kernel, currently I am using “kernel-3.12.6-300.fc20.x86_64” and fglrx is working fine.
        On the previous version, the “kernel-3.12.5-302.fc20.x86_64”, it was working fine too.

  10. Hello Tojaj

    Thanks for posting this.

    I followed your post but am experiencing the same problem as Malshan Peiris. The screen is blank after the loading bar. I can get to the terminal with Ctl+Alt+F2 and I get the same dmesg as Malshan.

    One additional piece of information, when I grep for fglrx from dmesg I get the following…

    [ 7.460223] fglrx: module license ‘Proprietary. (C) 2002 – ATI Technologies, Starnberg, GERMANY’ taints kernel.
    [ 7.480165] fglrx: module verification failed: signature and/or required key missing – tainting kernel
    [ 7.499409] [fglrx] Maximum main memory to use for locked dma buffers: 3165 MBytes.
    [ 7.499452] [fglrx] vendor: 1002 device: 9832 count: 1
    [ 7.500910] [fglrx] ioport: bar 4, base 0xf000, size: 0x100
    [ 7.501571] [fglrx] Kernel PAT support is enabled
    [ 7.501619] [fglrx] module loaded – fglrx 13.25.5 [Dec 6 2013] with 1 minors
    [ 15.700122] fglrx_pci 0000:00:01.0: irq 79 for MSI/MSI-X
    [ 15.702266] [fglrx] Firegl kernel thread PID: 774
    [ 15.702974] [fglrx] Firegl kernel thread PID: 775
    [ 15.703231] [fglrx] Firegl kernel thread PID: 776
    [ 15.703538] [fglrx] IRQ 79 Enabled
    [ 15.715180] [fglrx] Reserved FB block: Shared offset:0, size:1000000
    [ 15.715193] [fglrx] Reserved FB block: Unshared offset:fc55000, size:3000
    [ 15.715198] [fglrx] Reserved FB block: Unshared offset:fc58000, size:3a8000
    [ 15.715203] [fglrx] Reserved FB block: Unshared offset:1ffc8000, size:38000

    I wondered if you knew what the second line refers to?

    Thanks

    1. Hi, I am not sure where is the problem, you could try to disable a secure boot in your BIOS.

      Citation from https://fedoraproject.org/wiki/Secureboot:
      Q: What if I want to build a custom kernel or load 3rd party kernel modules?
      A: You will need to disable Secure boot, or setup your own keys and sign everything with them.

      AFAIK, the message about tainting kernel can be safely ignored in case of fglrx, because the message means that a proprietary code was loaded to the kernel – and flgrx module is (sadly) proprietary.

  11. Hello,
    ./make.sh run well but,
    i got below error after ./make._install.sh command

    [root@localhost build_mod]# cd ..
    [root@localhost fglrx]# ./make_install.sh
    – recreating module dependency list
    – trying a sample load of the kernel modules
    modprobe: ERROR: could not insert ‘fglrx’: Required key not available
    failed.

    Thanks,

  12. Thanks Tojaj,
    it was done Successfully ./make_install.sh
    but after reboot i login Fedora 20 Cinnamon .
    I got error in Cinnamon run in fall back mode yes or no
    could not load complete Cinnamon…
    thanks for reply….

    1. As I wrote in the article. I have the exactly same problem. My Cinnamon is constantly crashing. As a workaround, I started to use a MATE desktop, instead of the Cinnamon. I use a lot of different desktop environments (Xfce on desktop at work, MATE on desktop at home, Unity on laptop), so I don’t mind to switch from one to another. I didn’t even tried to solve the Cinnamon problem, so I can’t help you :-/

  13. Hi,
    can You suggest me best linux flavor for my Hp Laptop with graphic card ?.
    I want a simple layout.

    Thanks,

  14. I have try It, but don’t work. Still black screen. Never mind. I don’t use catalyst since fedora 18.

  15. Hi guys, I buy a Dell Inspirion 15R with video card Radeon HD 8850M, but i not have success to install the Catalyst driver. My Fedora 20 kernel is 3.12.8, the last time when I forced the installation (–force) the image does not show more.

    Have any idea how set functionally this video card in my notebook? The Catalyst from ATI website is too old for me?
    Sorry for bad english :/

  16. Hi this didn’t work for me since, once the failed first install is finished, I get only the
    /usr/src/fglrx-xxxxx /build_mod directory where I find the kcl_acpi.c file.
    I can modify it.
    It compiles fine

    But I have nothing in the directories above and then don’t find the make_install.sh

    I tried also to run the amd installer with the extract option. I find the the kcl_acpi.c file but couldn’t compile it.

    1. Hi John,
      try the “Latest Beta Driver”. The installation works fine for me (without a need to modify the sources).

  17. Hey Tojaj,
    I’m finding the latest beta driver gives me a black screen on boot. Any suggestions?

  18. Hello Tojaj,

    Thanks for the detailed info with updates and helping everyone for installing Catalyst driver.

    I have HP Pavillion 15 with Radeon.

    I have downloaded the latest beta driver but after installation system froze. After reboot blank screen is there instead of login while even mouse is not working.
    The beta driver’s installation log mentioned that installation is successful and it also sample loaded the module with success (before freezing the display)

    Secure boot is disabled already as installed F20 from live image on USB, so required this to disable Secure boot.

    Please help.

  19. As has been mentioned previously, the latest (beta) Catalyst driver now compiles without requiring any modification. If you look at the source code, it has been modified to resolve the initial “bug” in this Blog.

    Many people, myself included, have noticed that the compiled driver boots to a black screen. I am not sure why this happens, but I filed a bug report with ATI.

    I also filed a bug report with ATI about the need to sign the driver. They sign the Windows driver, thus it boots without the need to disable secure boot.

    Open bugs here : http://ati.cchtml.com/buglist.cgi?query_format=specific&order=relevance%20desc&bug_status=__open__&content=Fedora%2020&list_id=4165

    1. Yes, I have also had the same black screen or “Oops! Something went wrong with the system” error that bodhi.zazen mentions with catalyst 14.1 beta1.3.

      It fails with an error like:
      gdm-session: Cannot initialize clutter: no valid OpenGL string found.”

      But then if you run xinit and checkout glxinfo, then everything appears to be running fine (AMD vendor string, DRI rendering=yes etc..).

  20. I have an AMD 7870 with Fedora 20 x86_64 and I’m unable to install the drivers. AMD Catalyst 14.2 Beta will just give me a black screen upong booting.

    Any solutions?

  21. So let me confirm on the process (please correct me if I’m wrong): download the Catalyst 14.2 Beta driver for 64-bit Linux, run the installer with the “–force” option (I get an error otherwise), and reboot? I just switched to Fedora for good from Windows. While I know what I’m doing when it comes to Linux (after my learning experience with FreeBSD), I wouldn’t call myself a Linux guru.

    I followed your guide for the Catalyst 13.12 driver, and while it at least booted, I had worse performance than the open-source driver. I think it may have actually been using a fallback driver that time because I was limited to a maximum of 1600×1200 resolution.

    I am using an AMD Radeon HD 7970 with Fedora 20/KDE.

  22. I installed the AMD Catalyst driver on my Fedora 20 amd_64 system. When I try to move windows on the desktop, they shake & shudder while they move. I can’t figure out where the config files are for this. I tried to run the AMD Catalyst Control center & administrative programs, but they don’t do anything, no window comes up, no error message. If I could find where the Control Center program file is, I could run it in a terminal to check for errors. Here is my xorg.conf file:
    Section “Monitor”
    Identifier “aticonfig-Monitor[0]-0”
    Option “VendorName” “ATI Proprietary Driver”
    Option “ModelName” “Generic Autodetecting Monitor”
    Option “DPMS” “true”
    EndSection

    Section “Device”
    Identifier “aticonfig-Device[0]-0”
    Driver “fglrx”
    BusID “PCI:1:0:0”
    EndSection

    Section “Screen”
    Identifier “aticonfig-Screen[0]-0”
    Device “aticonfig-Device[0]-0”
    Monitor “aticonfig-Monitor[0]-0”
    DefaultDepth 24
    SubSection “Display”
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection

    lspci|grep VGA
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Redwood XT [Radeon HD 5670/5690/5730]

  23. Same problem as everyone else, the install of the latest catalyst beta driver went fine, but I end up with black screen upon reboot. I had to switch back to tty and uninstall the proprietary driver for now…

    Did someone patch gdm/gnome to make it work? Is there a repo I can use to avoid that kind of problems in the future?

    Regards,

  24. Today, I’ve updated my kernel to the latest version “3.13.6-200.fc20.x86_64”, I’ve re-installed the Catalyst Driver (to get the driver module recompiled against the new kernel) and everything works fine. No black screen at all.
    I repeat: I am using the latest beta Catalyst driver from the official AMD ATI support page (and the MATE desktop environment).
    JFYI: I have AMD APU A8-3850 with integrated Radeon HD6550D

    1. For other that might want to read about it later, I’m also running 3.13.6-200.fc20.x86_64, with the latest catalyst driver, but using standard gnome desktop environment on a Radeon HD 6850.

      Maybe I should move to MATE…
      Thanks for your input Tojaj.

  25. Hi, I have the same pb :
    fedora 20, kernel 3.13.6-200.fc20.x86_64, Radeon HD 8670M on Lenovo S440, and the current amd beta driver (14.2).
    As the installation of the driver seems OK, when i reboot, i have a black screen me too. With alt+ctl and Fx, i get a terminal and my xorg log says “atiddxProbe: fail to probe intel VGA device”.
    I red many howtos but i didn’t succed to get a good graphic device.
    If you still have any clue or idea, you’ll be very welcome.
    thx !

  26. Hello I did
    yum install kernel-devel kernel-headers gcc -y

    then I tried to install 13.12 and 14.13 beta but both gave error with log:

    Supported adapter detected.
    Check if system has the tools required for installation.
    fglrx installation requires that the system have kernel headers for 3.7 release. /lib/modules/3.11.10-301.fc20.x86_64/build/include/generated/uapi/linux/version.h cannot be found on this system.

    can you explain me how to do it step by step? I’m new to linux I love how fast it runs compared to windows but being unable to install amd drivers makes me mad… I need them desperately :(

    I looked at Andrey’s patch but I have no freaking idea what to do with it.

    Thanks ;)

    1. Try to do “yum update” first, to get the latest packages, and then reboot the system, then run try to run the installation again.

  27. hello
    yeah it seems updating the system did it. After system update I managed to install 14.13 but it I had black screen. Literally nothing was displayed. I have reinstalled the system now, and I am doing update again. I had problems with radeon drivers on windows too. Since 13.4 there is no backlight so they are practically useless. I will try to install older drivers, last that worked on my windows were 12.8.

    Basically, AFAIK the problem with display is that I run on asus k52jr laptop and these k52’s have problems with ati drivers past 13.4 (though it has mobility radeon hd5470 which is supported by the driver as their site says).

    Thanks for reply I hope I will be able to successfully install drivers. I don’t care for latest version, just want them to be running….

  28. Concerning catalyst…I have a radeon hd 3400 installed…the only version of catalyst which could apparently run is amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run…but as you know it does not compile the driver on fedora 20.
    All the more recent catalyst do not support hd3400 any longer…
    Any idea on how I could tweak the 13.1 code to get compiled under fedora 20?
    Thanks

  29. When trying to manually compile catalyst 13.1 I get this error…i guess the problem is not kcl_acpi.c any more:

    AMD kernel module generator version 2.1
    make.sh: line 390: [: =: unary operator expected
    doing Makefile based build for kernel 2.6.x and higher
    rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
    make -C /lib/modules/3.13.7-200.fc20.x86_64/build SUBDIRS=/usr/lib/modules/fglrx/build_mod/2.6.x modules
    make[1]: Entering directory `/usr/src/kernels/3.13.7-200.fc20.x86_64′
    CC [M] /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
    In file included from /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:464:0:
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function ‘FGLDRM_proc_init’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
    if (!minor) root = create_proc_entry(“dri”, S_IFDIR, NULL);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:19: warning: assignment makes pointer from integer without a cast [enabled by default]
    if (!minor) root = create_proc_entry(“dri”, S_IFDIR, NULL);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:105:12: warning: assignment makes pointer from integer without a cast [enabled by default]
    *dev_root = create_proc_entry(name, S_IFDIR, root);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:112:7: warning: assignment makes pointer from integer without a cast [enabled by default]
    ent = create_proc_entry(DRM(proc_list)[i].name,
    ^
    In file included from /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:464:0:
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:124:6: error: dereferencing pointer to incomplete type
    ent->read_proc = DRM(proc_list)[i].f;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:125:6: error: dereferencing pointer to incomplete type
    ent->data = dev;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘firegl_proc_init’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:586:14: warning: assignment makes pointer from integer without a cast [enabled by default]
    root = create_proc_entry(“ati”, S_IFDIR, NULL);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:598:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    ent = create_proc_entry(“major”, S_IFREG|S_IRUGO, root);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:12: error: dereferencing pointer to incomplete type
    ent->read_proc = (read_proc_t*)firegl_major_proc_read;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: error: ‘read_proc_t’ undeclared (first use in this function)
    ent->read_proc = (read_proc_t*)firegl_major_proc_read;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: note: each undeclared identifier is reported only once for each function it appears in
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:39: error: expected expression before ‘)’ token
    ent->read_proc = (read_proc_t*)firegl_major_proc_read;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:609:15: warning: assignment makes pointer from integer without a cast [enabled by default]
    *dev_root = create_proc_entry(name, S_IFDIR, root);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:619:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    ent = create_proc_entry(list->name, S_IFREG|S_IRUGO, *dev_root);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:16: error: dereferencing pointer to incomplete type
    ent->read_proc = (read_proc_t*)list->f;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:43: error: expected expression before ‘)’ token
    ent->read_proc = (read_proc_t*)list->f;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:644:16: error: dereferencing pointer to incomplete type
    ent->proc_fops = (struct file_operations*)list->fops;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:648:16: error: dereferencing pointer to incomplete type
    ent->data = (dev->pubdev.signature == FGL_DEVICE_SIGNATURE)? firegl_find_device(minor) : (dev);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:657:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    ent = create_proc_entry(“debug”, S_IFREG|S_IRUGO, root);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:16: error: dereferencing pointer to incomplete type
    ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:43: error: expected expression before ‘)’ token
    ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:16: error: dereferencing pointer to incomplete type
    ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:32: error: ‘write_proc_t’ undeclared (first use in this function)
    ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:45: error: expected expression before ‘)’ token
    ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:662:16: error: dereferencing pointer to incomplete type
    ent->data = dev;
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1558:5: error: incompatible types when returning type ‘kuid_t’ but ‘KCL_TYPE_Uid’ was expected
    return current_euid();
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_AllocLinearAddrInterval’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:5: error: implicit declaration of function ‘do_mmap’ [-Werror=implicit-function-declaration]
    vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_VM_MapRegion’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3700:34: error: ‘VM_RESERVED’ undeclared (first use in this function)
    vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don’t swap */
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:511:12: warning: ‘firegl_debug_proc_read_wrap’ defined but not used [-Wunused-function]
    READ_PROC_WRAP(firegl_debug_proc_read)
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:516:12: warning: ‘firegl_debug_proc_write_wrap’ defined but not used [-Wunused-function]
    static int firegl_debug_proc_write_wrap(void* file, const char *buffer, unsigned long count, void *data)
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:534:12: warning: ‘firegl_major_proc_read’ defined but not used [-Wunused-function]
    static int firegl_major_proc_read(char *buf, char **start, kcl_off_t offset,
    ^
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
    /usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1562:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    cc1: some warnings being treated as errors
    make[2]: *** [/usr/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
    make[1]: *** [_module_/usr/lib/modules/fglrx/build_mod/2.6.x] Error 2
    make[1]: Leaving directory `/usr/src/kernels/3.13.7-200.fc20.x86_64′
    make: *** [kmod_build] Error 2
    build failed with return value 2

  30. Hi! I’m new to Linux, I’ve successfully installed Fedora 20 alongside Windows 7. I don’t really know where to enter these codes as my Fedora 20 doesn’t boot after I installed graphic drivers to my HP Notebook in Windows 7.It only shows me a black screen and I could see the cursor point as well. I’ve also downloaded ”amd-catalyst-13.12-linux-x86.x86_64.run” but where should I place this file for the installation? I can’t access Fedora’s partitions using Windows 7. Please give me an answer as soon as possible with a simple guideline along every explanation. Thank you very much! I’ll really appreciate your help :)

    1. Hi, this is how i did to recovery my fedora 20:
      start and choose fedora
      when the final black screen shows, press ctrl alt and F2 at the same time
      then input “root” and enter
      then input your root password(while you are typing it is ok that nothing happens)
      after you login as root, enter these commands:
      “cd /usr/share/ati”
      “sudo sh ati-uninstall.sh”
      wait until the command is finished and reboot.
      sorry for poor English.
      I hope this may help a little.

  31. Thor 29/03/2014 at 14:55 – Reply

    “Hello I did
    yum install kernel-devel kernel-headers gcc -y

    then I tried to install 13.12 and 14.13 beta but both gave error with log:

    Supported adapter detected.
    Check if system has the tools required for installation.
    fglrx installation requires that the system have kernel headers for 3.7 release. /lib/modules/3.11.10-301.fc20.x86_64/build/include/generated/uapi/linux/version.h cannot be found on this system.”
    $ uname -a
    **latest_kernel_version
    $ sudo cp /usr/include/linux/version.h /lib/modules/**latest_kernel_version/build/include/linux/

Leave a Reply

Your email address will not be published. Required fields are marked *