Skip to content

Can't build crtbegin.c on s390x & arm64 for wasm32 #63799

@sylvestre

Description

@sylvestre

Recent regression on s390x & arm64:

cd /build/source/build-wasm/compiler-rt-wasm32 && /build/source/build-llvm/tools/clang/stage2-bins/bin/clang -O2 -DNDEBUG -g1 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 --target=wasm32-unknown-unknown -fno-lto -std=c11 -DEH_USE_FRAME_REGISTRY -fPIC -Wno-pedantic --target=wasm32-unknown-unknown -o /build/source/build-wasm/compiler-rt-wasm32/lib/wasi/clang_rt.crtbegin-wasm32.o -c /build/source/compiler-rt/lib/builtins/crtbegin.c
/build/source/compiler-rt/lib/builtins/crtbegin.c:77:2: error: "crtbegin without .init_fini array unimplemented for this architecture"
   77 | #error "crtbegin without .init_fini array unimplemented for this architecture"
      |  ^
/build/source/compiler-rt/lib/builtins/crtbegin.c:134:2: error: "crtbegin without .init_fini array unimplemented for this architecture"
  134 | #error "crtbegin without .init_fini array unimplemented for this architecture"
      |  ^
2 errors generated.

Log:
https://llvm-jenkins.debian.net/job/llvm-toolchain-bionic-binaries/architecture=s390x,distribution=bionic,label=s390x/1153/console

Seems to be caused by:
https://reviews.llvm.org/D153989

@petrhosek rings a bell?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions