Skip to content

cannot build LLVM for arm-freebsd-eabihf #25215

@HomuHomu833

Description

@HomuHomu833

Zig Version

0.16.0-dev.164+bc7955306

Steps to Reproduce and Observed Behavior

idk just trying to compile LLVM as is with using Zig's LLVM backend, maybe can be upstream issue?

workflow:
https://github.com/HomuHomu833/llvm-custom/blob/main/.github/workflows/build_llvm_bsd.yml

workflow run:
https://github.com/HomuHomu833-garbage/llvm-custom-experimental/actions/runs/17573860945/job/49914854471

error:

FAILED: [code=1] bin/llvm-min-tblgen 
: && /home/runner/work/llvm-custom-experimental/llvm-custom-experimental/zig-as-llvm/bin/c++ -fstack-protector-strong -fsanitize=undefined -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Os -DNDEBUG -fno-pie -Wl,--color-diagnostics    -Wl,-z,origin  -Wl,--gc-sections utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/ARMTargetDefEmitter.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/Attributes.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/CodeGenIntrinsics.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/DirectiveEmitter.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/IntrinsicEmitter.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/RISCVTargetDefEmitter.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/SDNodeProperties.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/TableGen.cpp.o utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/VTEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/llvm-min-tblgen.cpp.o -o bin/llvm-min-tblgen  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libLLVMSupport.a  lib/libLLVMTableGen.a  -lrt  -lm  /home/runner/work/llvm-custom-experimental/llvm-custom-experimental/output/arm-freebsd-eabihf/lib/libz.a  /home/runner/work/llvm-custom-experimental/llvm-custom-experimental/output/arm-freebsd-eabihf/lib/libzstd.a  lib/libLLVMDemangle.a && :
ld.lld: error: undefined symbol: __aeabi_read_tp
>>> referenced by PrettyStackTrace.cpp
>>>               PrettyStackTrace.cpp.o:(llvm::PrettyStackTraceEntry::PrettyStackTraceEntry()) in archive lib/libLLVMSupport.a
>>> referenced by PrettyStackTrace.cpp
>>>               PrettyStackTrace.cpp.o:(printForSigInfoIfNeeded()) in archive lib/libLLVMSupport.a
>>> referenced by PrettyStackTrace.cpp
>>>               PrettyStackTrace.cpp.o:(llvm::PrettyStackTraceEntry::~PrettyStackTraceEntry()) in archive lib/libLLVMSupport.a
>>> referenced 2 more times

Expected Behavior

to LLVM compile

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm32-bit ARMbugObserved behavior contradicts documented or intended behaviorcompiler-rtlibcIssues related to libzigc and Zig's vendored libc code.os-freebsd

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions