← Back to team overview

desktop-packages team mailing list archive

[Bug 1483695] Re: fails to build module in wily-proposed: gcc-4.9: Command not found


This comes from /lib/modules/fglrx/build_mod/make.sh parsing the kernel
compiler from /proc/version, in set_GCC_version().

** Changed in: fglrx-installer-updates (Ubuntu Wily)
       Status: New => Triaged

You received this bug notification because you are a member of Desktop
Packages, which is subscribed to fglrx-installer in Ubuntu.

  fails to build module in wily-proposed: gcc-4.9: Command not found

Status in fglrx-installer package in Ubuntu:
Status in fglrx-installer-updates package in Ubuntu:
Status in fglrx-installer source package in Wily:
Status in fglrx-installer-updates source package in Wily:

Bug description:
  As shown by the test regression of
  common/wily/amd64/ , fglrx and fglrx-updates fail to build the module
  in wily-proposed:

  Setting up fglrx-core (2:15.200.1-0ubuntu2) ...
  update-alternatives: using /usr/lib/fglrx-core/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GFXCORE.conf (x86_64-linux-gnu_gfxcore_conf) in auto mode
  Loading new fglrx-core-15.200.1 DKMS files...
  First Installation: checking all kernels...
  Building only for 4.1.0-3-generic
  Building for architecture x86_64
  Building initial module for 4.1.0-3-generic
  Error! Bad return status for module build on kernel: 4.1.0-3-generic (x86_64)
  Consult /var/lib/dkms/fglrx-core/15.200.1/build/make.log for more information.
  $ cat /var/lib/dkms/fglrx-core/15.200.1/build/make.log
  DKMS make.log for fglrx-core-15.200.1 for kernel 4.1.0-3-generic (x86_64)
  Tue Aug 11 14:44:15 CEST 2015
  /usr/sbin/dkms: line 74: cd: /var/lib/dkms/fglrx/15.200.1/build: No such file or directory
  make.sh: 1: make.sh: gcc-4.9: not found
  make.sh: 50: [: !=: unexpected operator
  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/4.1.0-3-generic/build SUBDIRS=/var/lib/dkms/fglrx-core/15.200.1/build/2.6.x modules
  make[1]: Entering directory '/usr/src/linux-headers-4.1.0-3-generic'
  arch/x86/Makefile:114: stack-protector enabled but compiler support broken
  arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
  Makefile:667: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
  make[1]: gcc-4.9: Command not found
    CC [M]  /var/lib/dkms/fglrx-core/15.200.1/build/2.6.x/firegl_public.o
  /bin/sh: 1: gcc-4.9: not found
  scripts/Makefile.build:258: recipe for target '/var/lib/dkms/fglrx-core/15.200.1/build/2.6.x/firegl_public.o' failed
  make[2]: *** [/var/lib/dkms/fglrx-core/15.200.1/build/2.6.x/firegl_public.o] Error 127
  Makefile:1395: recipe for target '_module_/var/lib/dkms/fglrx-core/15.200.1/build/2.6.x' failed
  make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.200.1/build/2.6.x] Error 2
  make[1]: Leaving directory '/usr/src/linux-headers-4.1.0-3-generic'
  Makefile:88: recipe for target 'kmod_build' failed
  make: *** [kmod_build] Error 2
  build failed with return value 2

  So it seems fglrx hardcodes "gcc-4.9" without depending on it -- only
  the default compiler is installed:

  ii  gcc              4:5.2.1-3ubuntu1 amd64        GNU C compiler
  ii  gcc-5            5.2.1-15ubuntu1  amd64        GNU C compiler
  ii  gcc-5-base:amd64 5.2.1-15ubuntu1  amd64        GCC, the GNU Compiler Collection (base package)

  Ideally fglrx would switch to building with gcc-5 (or any gcc); if
  that's not possible, please adjust the dependencies to "gcc-4.9"

To manage notifications about this bug go to: