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

armv6kz-linux-musleabihf #13

Closed
andrewrk opened this issue Apr 1, 2020 · 1 comment
Closed

armv6kz-linux-musleabihf #13

andrewrk opened this issue Apr 1, 2020 · 1 comment

Comments

@andrewrk
Copy link
Member

andrewrk commented Apr 1, 2020

This is the architecture of raspberry pi zero: I think this is happening because it should be soft float not hard float.

./build -j1 arm-linux-musleabihf -mcpu=generic+v6kz

It fails when configuring cross LLVM with:

-- Check for working C compiler: /home/andy/dev/bootstrap-zig/out/host/bin/zig -- broken
CMake Error at /nix/store/qbn4f7k7yj5dj8ay292hr2nv0q8854vq-cmake-3.16.3/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/home/andy/dev/bootstrap-zig/out/host/bin/zig"

  is not able to compile a simple test program.

Clang is segfaulting with:

Stack dump:
0.	Program arguments: /home/andy/dev/bootstrap-zig/out/host/bin/zig clang -c -nostdinc -fno-spell-checking -target arm-unknown-linux-musleabihf -isystem /home/andy/dev/bootstrap-zig/out/host/lib/zig/include -Xclang -target-cpu -Xclang generic -Xclang -target-feature -Xclang -32bit,-8msecext,-a76,-aclass,-acquire-release,-aes,-avoid-movs-shop,-avoid-partial-cpsr,-cheap-predicable-cpsr,-crc,-crypto,-d32,-db,-dfb,-disable-postra-scheduler,-dont-widen-vmovs,-dotprod,-dsp,-execute-only,-expand-fp-mlx,-exynos,-fp16,-fp16fml,-fp64,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fpao,-fpregs,-fpregs16,-fpregs64,-fullfp16,-fuse-aes,-fuse-literals,+v4t,+v5t,+v5te,+v6,+v6k,-v6m,-v6t2,-v7,-v7clrex,-v8.1a,-v8.1m.main,-v8.2a,-v8.3a,-v8.4a,-v8.5a,-v8,-v8m,-v8m.main,-hwdiv,-hwdiv-arm,-iwmmxt,-iwmmxt2,-lob,-long-calls,-loop-align,-m3,-mclass,-mp,-muxed-units,-mve,-mve.fp,-mve1beat,-mve2beat,-mve4beat,-nacl-trap,-neon,-neon-fpmovs,-neonfp,-no-branch-predictor,-no-movt,-no-neg-immediates,-noarm,-nonpipelined-vfp,-perfmon,-prefer-ishst,-prefer-vmovsr,-prof-unpr,-r4,-ras,-rclass,-read-tp-hard,-reserve-r9,-ret-addr-stack,-sb,-sha2,-slow-fp-brcc,-slow-load-D-subreg,-slow-odd-reg,-slow-vdup32,-slow-vgetlni32,-slowfpvfmx,-slowfpvmlx,-soft-float,-splat-vfp-neon,-strict-align,-swift,-thumb2,-thumb-mode,+trustzone,-use-misched,-armv2,-armv2a,-armv3,-armv3m,-armv4,-armv4t,-armv5t,-armv5te,-armv5tej,-armv6,-armv6j,-armv6k,+armv6kz,-armv6-m,-armv6s-m,-armv6t2,-armv7-a,-armv7e-m,-armv7k,-armv7-m,-armv7-r,-armv7s,-armv7ve,-armv8-a,-armv8-m.base,-armv8-m.main,-armv8-r,-armv8.1-a,-armv8.1-m.main,-armv8.2-a,-armv8.3-a,-armv8.4-a,-armv8.5-a,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp,-virtualization,-vldn-align,-vmlx-forwarding,-vmlx-hazards,-wide-stride-vfp,-xscale,-zcz -MD -MV -MF /home/andy/.cache/zig/stage1/tmp/TSq5fbxbQZxZ-fabsf.o.d -fno-omit-frame-pointer -D_DEBUG -Og -fno-stack-protector -o /home/andy/.cache/zig/stage1/tmp/TSq5fbxbQZxZ-fabsf.o /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/src/math/arm/fabsf.c -std=c99 -ffreestanding -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/arch/arm -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/arch/generic -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/src/include -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/src/internal -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/include -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/include/arm-linux-musl -I /home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/include/generic-musl -Os -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -Qunused-arguments -w 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/home/andy/dev/bootstrap-zig/out/host/lib/zig/libc/musl/src/math/arm/fabsf.c'.
4.	Running pass 'ARM Instruction Selection' on function '@fabsf'
Segmentation fault (core dumped)
@andrewrk
Copy link
Member Author

andrewrk commented Apr 7, 2020

I don't think this is a particularly interesting target.

@andrewrk andrewrk closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant