Skip to content

unable to build musl for target armv8-linux-musleabihf #3286

Closed

Description

@andrewrk

I was adding test coverage for this but it regressed:

In file included from /home/andy/dev/zig/build/lib/zig/libc/musl/crt/crt1.c:2:
In file included from /home/andy/dev/zig/build/lib/zig/libc/musl/src/internal/libc.h:4:
In file included from /home/andy/dev/zig/build/lib/zig/libc/musl/src/include/stdlib.h:4:
/home/andy/dev/zig/build/lib/zig/libc/musl/src/include/../../include/stdlib.h:19:10: fatal error: 'bits/alltypes.h' file not found
#include <bits/alltypes.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.

The following command failed:
/home/andy/dev/zig/build/zig cc -MD -MV -MF /home/andy/.local/share/zig/stage1/tmp/X4L3BWvG_57H-crt1.o.d -nostdinc -fno-spell-checking -isystem /home/andy/dev/zig/build/lib/zig/include -target armv8.5a-unknown-linux-musleabihf -g -fno-omit-frame-pointer -D_DEBUG -fno-stack-protector -o /home/andy/.local/share/zig/stage1/tmp/X4L3BWvG_57H-crt1.o -c /home/andy/dev/zig/build/lib/zig/libc/musl/crt/crt1.c -std=c99 -ffreestanding -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I /home/andy/dev/zig/build/lib/zig/libc/musl/arch/arm -I /home/andy/dev/zig/build/lib/zig/libc/musl/arch/generic -I /home/andy/dev/zig/build/lib/zig/libc/musl/src/include -I /home/andy/dev/zig/build/lib/zig/libc/musl/src/internal -I /home/andy/dev/zig/build/lib/zig/libc/musl/include -I /home/andy/dev/zig/build/lib/zig/libc/include/arm-linux-musleabihf -I /home/andy/dev/zig/build/lib/zig/libc/include/generic-musl -Os -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fno-stack-protector -DCRT
The following command exited with error code 1:
/home/andy/dev/zig/build/zig test /home/andy/dev/zig/test/stage1/behavior.zig --library c --test-name-prefix behavior-arm-linux-musleabihf-Debug-c-multi  --cache-dir /home/andy/dev/zig/zig-cache --name test -target armv8_5a-linux-musleabihf --test-cmd qemu-arm --test-cmd-bin --override-std-dir /home/andy/dev/zig/std 

Activity

  1. added
    bug
    contributor friendly
    arch-arm
    on Sep 22, 2019
  2. added this to the 0.6.0 milestone on Sep 22, 2019
  3. andrewrk commented on Sep 25, 2019

    @andrewrk
    MemberAuthor

    I fixed the original issue above, but there is another one remaining:

    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:23:6: error: invalid operand for instruction
            ldc p2, cr4, [ip], #48
                ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:33:7: error: invalid operand for instruction
            ldcl p1, cr10, [ip], #8
                 ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:34:7: error: invalid operand for instruction
            ldcl p1, cr11, [ip], #8
                 ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:35:7: error: invalid operand for instruction
            ldcl p1, cr12, [ip], #8
                 ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:36:7: error: invalid operand for instruction
            ldcl p1, cr13, [ip], #8
                 ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:37:7: error: invalid operand for instruction
            ldcl p1, cr14, [ip], #8
                 ^
    /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s:38:7: error: invalid operand for instruction
            ldcl p1, cr15, [ip], #8
                 ^
    
    The following command failed:
    /home/andy/dev/zig/build/zig cc -MD -MV -MF /home/andy/.local/share/zig/stage1/tmp/ClyqLMa5u-g--longjmp.o.d -nostdinc -fno-spell-checking -isystem /home/andy/dev/zig/build/lib/zig/include -target armv8.5a-unknown-linux-musleabihf -g -fno-omit-frame-pointer -D_DEBUG -fno-stack-protector -o /home/andy/.local/share/zig/stage1/tmp/ClyqLMa5u-g--longjmp.o -c /home/andy/dev/zig/build/lib/zig/libc/musl/src/setjmp/arm/longjmp.s -std=c99 -ffreestanding -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I /home/andy/dev/zig/build/lib/zig/libc/musl/arch/arm -I /home/andy/dev/zig/build/lib/zig/libc/musl/arch/generic -I /home/andy/dev/zig/build/lib/zig/libc/musl/src/include -I /home/andy/dev/zig/build/lib/zig/libc/musl/src/internal -I /home/andy/dev/zig/build/lib/zig/libc/musl/include -I /home/andy/dev/zig/build/lib/zig/libc/include/arm-linux-musl -I /home/andy/dev/zig/build/lib/zig/libc/include/generic-musl -Os -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -Qunused-arguments -w
    

    This is an upstream issue, but it is unclear whether it's musl or llvm that needs to be patched.

  4. added
    upstream
    on Sep 25, 2019
  5. removed
    contributor friendly
    upstream
    on Sep 25, 2019
  6. changed the title [-]unable to build musl for target armv8-linux-musleabihf [/-] [+]std lib tests failing for target armv8-linux-musleabihf [/+] on Sep 25, 2019
  7. changed the title [-]std lib tests failing for target armv8-linux-musleabihf [/-] [+] unable to build musl for target armv8-linux-musleabihf[/+] on Sep 25, 2019
  8. andrewrk commented on Sep 26, 2019

    @andrewrk
    MemberAuthor

    Solved in f112e8a

  9. modified the milestones: 0.6.0, 0.5.0 on Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-armbug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions