Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build glibc on armv7l #81972

Closed
expipiplus1 opened this issue Mar 7, 2020 · 3 comments · Fixed by #82051
Closed

Unable to build glibc on armv7l #81972

expipiplus1 opened this issue Mar 7, 2020 · 3 comments · Fixed by #82051

Comments

@expipiplus1
Copy link
Contributor

expipiplus1 commented Mar 7, 2020

Describe the bug

nix-build -A glibc doesn't work, either on master or nixos-20.03. It works on nixos-19.09 and I have a bisect running at the moment (on some slow hardware, so the results might take some time).

It fails with this log:

these derivations will be built:
  /nix/store/aixify1li31zgrzyc00b0hjlqir2j9nk-glibc-2.30.drv
building '/nix/store/aixify1li31zgrzyc00b0hjlqir2j9nk-glibc-2.30.drv'...
unpacking sources
unpacking source archive /nix/store/6kl3xyqvybfv0s6gkhwlxwr0g4k1rwmw-glibc-2.30.tar.xz
source root is glibc-2.30
setting SOURCE_DATE_EPOCH to timestamp 1564633771 of file glibc-2.30/wctype/wctype_l.c
patching sources
applying patch /nix/store/r0rc2prwi70hgw4jray5a8sd41fhvjm7-rpcgen-path.patch
patching file sunrpc/rpc_main.c
applying patch /nix/store/pp29isd0nvy4jrm9q2f92pjlc83xwa0i-nix-locale-archive.patch
patching file locale/loadarchive.c
patching file locale/programs/locale.c
Hunk #1 succeeded at 634 (offset 1 line).
Hunk #2 succeeded at 663 (offset 1 line).
patching file locale/programs/locarchive.c
applying patch /nix/store/5212825a2npxaf7qd81sxfrqq6219rlx-dont-use-system-ld-so-cache.patch
patching file elf/ldconfig.c
patching file elf/Makefile
Hunk #1 succeeded at 589 (offset 30 lines).
patching file sysdeps/generic/dl-cache.h
applying patch /nix/store/mnglr8rr7nl444h7p50ysyq8qd0fm1lm-dont-use-system-ld-so-preload.patch
patching file elf/rtld.c
Hunk #1 succeeded at 1697 (offset 184 lines).
applying patch /nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch
patching file sysdeps/unix/confstr.h
applying patch /nix/store/xkd50xxii6k7l1kmw4l5x6xzbhamcs87-allow-kernel-2.6.32.patch
patching file sysdeps/unix/sysv/linux/configure
patching file sysdeps/unix/sysv/linux/configure.ac
patching file sysdeps/unix/sysv/linux/dl-osinfo.h
applying patch /nix/store/nqa9d4yxz1l2cgswzqr1pkm4jfrksm0q-locale-C.diff
patching file localedata/locales/C
patching file inet/idna.c
Hunk #1 succeeded at 27 (offset 2 lines).
configuring
configure flags: --disable-static --prefix=/nix/store/9jznc5gg80v53i6pnj7s0vm1pd5rc27l-glibc-2.30 --bindir=/nix/store/hy49r1awxldbz54zfbx3b1s0r9d4qy57-glibc-2.30-bin/bin --sbindir=/nix/store/hy49r1awxldbz54zfbx3b1s0r9d4qy57-glibc-2.30-bin/sbin --includedir=/nix/store/86qsdcjddw3bj8zq7wjvhpmwdigmm9f5-glibc-2.30-dev/include --oldincludedir=/nix/store/86qsdcjddw3bj8zq7wjvhpmwdigmm9f5-glibc-2.30-dev/include --mandir=/nix/store/hy49r1awxldbz54zfbx3b1s0r9d4qy57-glibc-2.30-bin/share/man --infodir=/nix/store/hy49r1awxldbz54zfbx3b1s0r9d4qy57-glibc-2.30-bin/share/info --docdir=/nix/store/9jznc5gg80v53i6pnj7s0vm1pd5rc27l-glibc-2.30/share/doc/glibc --libdir=/nix/store/9jznc5gg80v53i6pnj7s0vm1pd5rc27l-glibc-2.30/lib --libexecdir=/nix/store/9jznc5gg80v53i6pnj7s0vm1pd5rc27l-glibc-2.30/libexec --localedir=/nix/store/9jznc5gg80v53i6pnj7s0vm1pd5rc27l-glibc-2.30/share/locale -C --enable-add-ons --enable-obsolete-nsl --enable-obsolete-rpc --sysconfdir=/etc --enable-stackguard-randomization --with-headers=/nix/store/3ngfv4pzbr18pxp148zdc5pf65nh0kwf-linux-headers-5.5/include --disable-profile --enable-kernel=3.2.0 --host=arm-linux-gnueabi --build=arm-linux-gnueabi libc_cv_as_needed=no
configure: creating cache config.cache
checking build system type... arm-unknown-linux-gnueabi
checking host system type... arm-unknown-linux-gnueabi
checking for arm-linux-gnueabi-gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for arm-linux-gnueabi-readelf... readelf
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ can link programs... no
checking for sysdeps preconfigure fragments... aarch64 alpha arm configure: Found compiler is configured for armv7
csky hppa i386 m68k microblaze mips nios2 powerpc riscv s390 sh sparc x86_64
checking for use of fpu sysdeps directories... yes
checking for -fstack-protector... yes
checking for -fstack-protector-strong... yes
checking for -fstack-protector-all... yes
checking for assembler and linker STT_GNU_IFUNC support... yes
checking for gcc attribute ifunc support... no
checking whether the linker supports textrels along with ifunc... yes
checking if compiler warns about alias for function with incompatible types... no
checking sysdep dirs... sysdeps/unix/sysv/linux/arm sysdeps/arm/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/armv7/multiarch sysdeps/arm/armv7 sysdeps/arm/armv6t2 sysdeps/arm/armv6 sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /nix/store/65sxp86ypi3ca914pq069blazwq9qzr1-bootstrap-tools/bin/install -c
checking whether ln -s works... yes
checking whether /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/as is GNU as... yes
checking whether /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/ld is GNU ld... yes
checking for /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/as... /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/as
checking version of /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/as... 2.31.1, ok
checking for /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/ld... /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/ld
checking version of /nix/store/hszwh50hga8i4gx09r85w14x038wg0pf-bootstrap-stage2-gcc-wrapper-/bin/ld... 2.31.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.2.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... no
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.4, ok
checking for gawk... gawk
checking version of gawk... 4.1.3, ok
checking for bison... bison
checking version of bison... 3.5.1, ok
checking if gcc is sufficient to build libc... no
checking for arm-linux-gnueabi-nm... nm
checking for python3... python3
checking version of python3... 3.7.6, ok
configure: error:
*** These critical programs are missing or too old: compiler
*** Check the INSTALL file for required versions.
builder for '/nix/store/aixify1li31zgrzyc00b0hjlqir2j9nk-glibc-2.30.drv' failed with exit code 1

To Reproduce

nix-build -A glibc

Metadata
nix-shell -p nix-info --run "nix-info -m"

 - system: `"armv7l-linux"`
 - host os: `Linux 4.19.75, NixOS, 19.09.git.2b23e13 (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.1`
 - nixpkgs: `/home/j/src/nixpkgs2`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: 
  - glibc
  - "pretty much everything lol"
@expipiplus1
Copy link
Contributor Author

The first bad commit could be any of:
d9b726a jfsutils: fix build with glibc>=2.28
dcd9031 ppp: fix build with glibc>=2.28
ff135a3 oathToolkit: fix build with glibc>=2.28
8e7bbb7 postfix: fix build w/glibc 2.30
be3e7b4 libffi: only run tests on musl targets
2d36eac stdenv: rebuild aarch64 bootstrap files with gcc8
9646faf expect: remove hack for aarch64 build
2476d6d expect: fix aarch64 build
2df926d seasocks: fix build w/glibc-2.30
01ce36f bzip2: fix aarch64 build
e7b6039 xnbd: fix build w/glibc-2.30
2d5ed2b glibc: remove outdated patches
8045baf rr: 5.2.0 -> 5.3.0, fix build w/glibc-2.30
894da51 diod: fix build w/glibc-2.30
c170582 libunistring: disable tests
1200d06 distrho: fix build w/glibc-2.30
2aea16c glibc: depend on libidn2 (and libunistring, transitively)
0c75f51 stdenv bootstrap: disable dejagnu tests
feb29ae gcal: fix build w/glibc-2.30
89590eb sharutils: fix build with glibc>=2.28
c3c2e67 drbd: fix build w/glibc-2.30
820a197 gnum4: fix build with glibc>=2.28
ad2fd68 xen_4_8: fix build w/glibc-2.30
27534bd gnulib: 20190326 -> 20190811
7fea9df mono: fix build w/glibc-2.30
447edaa glibc: 2.27 -> 2.30
c36d8a8 foundationdb61: fix build w/glibc-2.30
32ea78a spaceFM: fix build w/glibc-2.30
76d90cf cpython: fetch darwin-libutil.patch to nixpkgs
91b7e73 xen_4_8-{light,slim}: fix build
e80a85a bootstrap-files: bump WIP
eddfcc3 Merge branch 'staging' into glibc230

Ignoring 'fix build with glibc' commits

be3e7b4 libffi: only run tests on musl targets
2d36eac stdenv: rebuild aarch64 bootstrap files with gcc8
9646faf expect: remove hack for aarch64 build
2476d6d expect: fix aarch64 build
01ce36f bzip2: fix aarch64 build
2d5ed2b glibc: remove outdated patches
c170582 libunistring: disable tests
2aea16c glibc: depend on libidn2 (and libunistring, transitively)
0c75f51 stdenv bootstrap: disable dejagnu tests
27534bd gnulib: 20190326 -> 20190811
447edaa glibc: 2.27 -> 2.30
76d90cf cpython: fetch darwin-libutil.patch to nixpkgs
91b7e73 xen_4_8-{light,slim}: fix build
e80a85a bootstrap-files: bump WIP
eddfcc3 Merge branch 'staging' into glibc230

@vcunat
Copy link
Member

vcunat commented Mar 8, 2020

stdenv bootstrapping of 32-bit ARMs is (hopefully) being fixed right now: #82051

@veprbl veprbl linked a pull request Mar 8, 2020 that will close this issue
10 tasks
@expipiplus1
Copy link
Contributor Author

Thanks for the hard work @grahamc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants