[Dev] linux-firmware: makepkg fails

taro-k at movasense.com taro-k at movasense.com
Fri Oct 10 06:25:33 GMT 2014


Thx, Andre,

yes, sorry, the size of official package is also only 3.8KB.
https://www.parabola.nu/packages/libre/any/linux-libre-firmware/
I should check this before ask here.

anyway, thx!  taro-k

On 10/10/2014 02:02 AM, André Silva wrote:
> On 10/09/2014 06:35 AM, taro-k at movasense.com wrote:
>> 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...
> 
> xtensa-unknown-elf-binutils and xtensa-unknown-elf-gcc were created
> for build ath9k-htc-firmware that needs xtensa architecture support,
> not for build linux-libre-firmware
> 
>> 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)
> 
> av7110/bootcode.bin, dsp56k/bootstrap.bin and
> keyspan_pda/{keyspan_pda,xircom_pgs}.fw are the libre firmwares
> provided from Linux kernel and ath9k-htc-firmware that needs be built
> separately because is a different architecture. The remaining
> firmwares available from Arch's linux-firmware are blobs [0]
> 
>> 3. In the same environment with binutils and gcc-multilib, 
>> Archlinux's linux-firmware was built without error.
> 
> Arch's linux-firmware is not built from source and contains blobs [1]
> 
> [0]:http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/deblob-3.16
> [1]:https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/linux-firmware
> 
> _______________________________________________
> Dev mailing list
> Dev at lists.parabola.nu
> https://lists.parabola.nu/mailman/listinfo/dev
> 

-- 
taro-k at movasense.com
Key fingerprint: 8294 6974 F5C7 345B FBFB  F6B5 B5E8 87D1 00A5 42D7

Let's encrypt emails even if it's not "top secret".
"Email Self-Defense" by Free Software Foundation
https://emailselfdefense.fsf.org/en/

メールを暗号化しよう、例え極秘機密でなくても。
「電子メール自己防衛」 by フリーソフトウェア財団
https://emailselfdefense.fsf.org/ja/



More information about the Dev mailing list