Nixpkgs: GCC in pkgsCross.armhf-embedded does not build

Created on 1 Sep 2020  路  2Comments  路  Source: NixOS/nixpkgs

Describe the bug

pkgsCross.armhf-embedded.buildPackages.gcc fails the build.

To Reproduce

$ nix build -f channel:nixpkgs-unstable pkgsCross.armhf-embedded.buildPackages.gcc -L
[...]
arm-none-eabihf-stage-static-gcc-debug> echo | /build/build/./gcc/xgcc -B/build/build/./gcc/ -E -dM - | \
arm-none-eabihf-stage-static-gcc-debug> sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
arm-none-eabihf-stage-static-gcc-debug> -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
arm-none-eabihf-stage-static-gcc-debug> sort -u > tmp-macro_list
arm-none-eabihf-stage-static-gcc-debug> /build/build/./gcc/xgcc -B/build/build/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc-9.3.0/gcc/testsuite/selftests
arm-none-eabihf-stage-static-gcc-debug> cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU
arm-none-eabihf-stage-static-gcc-debug> cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU
arm-none-eabihf-stage-static-gcc-debug> cc1: note: self-tests are not enabled in this build
arm-none-eabihf-stage-static-gcc-debug> make[2]: *** [../../gcc-9.3.0/gcc/c/Make-lang.in:124: s-selftest-c] Error 1
arm-none-eabihf-stage-static-gcc-debug> make[2]: *** Waiting for unfinished jobs....
arm-none-eabihf-stage-static-gcc-debug> /nix/store/npfsrhkjww5q7sax7p7ijcrj3wlbrxn7-bash-4.4-p23/bin/bash ../../gcc-9.3.0/gcc/../move-if-change tmp-macro_list macro_list
arm-none-eabihf-stage-static-gcc-debug> echo timestamp > s-macro_list
arm-none-eabihf-stage-static-gcc-debug> rm gcc.pod
arm-none-eabihf-stage-static-gcc-debug> make[2]: Leaving directory '/build/build/gcc'
arm-none-eabihf-stage-static-gcc-debug> make[1]: *** [Makefile:4296: all-gcc] Error 2
arm-none-eabihf-stage-static-gcc-debug> make[1]: Leaving directory '/build/build'
arm-none-eabihf-stage-static-gcc-debug> make: *** [Makefile:934: all] Error 2
[...]

Expected behavior

I'm trying to build a gcc for cross compilation to hard float arm embedded. I'd like this to succed.

Notify maintainers

@Synthetica9

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.7.11, NixOS, 20.09pre236419.a45f68ccac4 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - channels(root): `"nixos-20.09pre236419.a45f68ccac4"`
 - channels(guillaume): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
bug cross-compilation

Most helpful comment

This currently breaks QMK Firmware.

All 2 comments

I've got the same issue.
I get "cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU"

This currently breaks QMK Firmware.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

copumpkin picture copumpkin  路  3Comments

grahamc picture grahamc  路  3Comments

langston-barrett picture langston-barrett  路  3Comments

rzetterberg picture rzetterberg  路  3Comments

chris-martin picture chris-martin  路  3Comments