[Dev] linux-firmware: makepkg fails

taro-k at movasense.com taro-k at movasense.com
Thu Oct 9 08:35:24 GMT 2014


Hi. When I do makepkg for libre/linux-libre-firmware

1. with xtensa-unknown-elf-binutils (2.24-7.2) and
xtensa-unknown-elf-gcc (4.9.1-2.1) installed, I see the following error:

==> Starting package()...
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or
directory
 #include <sys/types.h>
                       ^
compilation terminated.
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[2]: *** [scripts/basic/fixdep] Error 1
Makefile:454: recipe for target 'scripts_basic' failed
make[1]: *** [scripts_basic] Error 2
  IHEX    firmware/dsp56k/bootstrap.bin
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/dsp56k/bootstrap.bin
  IHEX    firmware/av7110/bootcode.bin
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/av7110/bootcode.bin
  HOSTCC  firmware/ihex2fw
In file included from firmware/ihex2fw.c:12:0:
/usr/lib/gcc/xtensa-unknown-elf/4.9.1/include/stdint.h:9:26: fatal
error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
scripts/Makefile.host:118: recipe for target 'firmware/ihex2fw' failed
make[1]: *** [firmware/ihex2fw] Error 1
Makefile:994: recipe for target 'firmware_install' failed
make: *** [firmware_install] Error 2
==> ERROR: A failure occurred in package().
    Aborting...


2. then with binutils (2.24-7) and gcc-multilib (4.9.1-2) installed,
I see the following error but the build finishes.
However, it seems invalid. (filesize is too small.)

==> Starting package()...
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
     jump->offset = strlen(r->s);
                  ^
scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here
  struct jump_key *jump;
                   ^
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:545: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
  IHEX    firmware/dsp56k/bootstrap.bin
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/dsp56k/bootstrap.bin
  IHEX    firmware/av7110/bootcode.bin
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/av7110/bootcode.bin
  HOSTCC  firmware/ihex2fw
  IHEX2FW firmware/keyspan_pda/keyspan_pda.fw
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/keyspan_pda/keyspan_pda.fw
  IHEX2FW firmware/keyspan_pda/xircom_pgs.fw
  INSTALL
/mnt/tmp/abslibre/libre/linux-libre-firmware/pkg/linux-libre-firmware/usr/lib/firmware/keyspan_pda/xircom_pgs.fw
==> Tidying install...
  -> Purging unwanted files...
  -> Removing libtool files...
  -> Removing static library files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package "linux-libre-firmware"...
  -> Generating .PKGINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: linux-libre-firmware 3.16_gnu-3 (Thu Oct  9
16:52:28 JST 2014)


3. In the same environment with binutils and gcc-multilib,
Archlinux's linux-firmware was built without error.

Any advise?  taro-k



More information about the Dev mailing list