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

thumb-windows-gnu #105

Closed
LinuxUserGD opened this issue Aug 9, 2022 · 4 comments · Fixed by #197
Closed

thumb-windows-gnu #105

LinuxUserGD opened this issue Aug 9, 2022 · 4 comments · Fixed by #197

Comments

@LinuxUserGD
Copy link
Contributor

Host system: x86_64-gentoo-linux-musl

-- Found ccache /usr/bin/ccache
-- Configuring zig version 0.10.0-dev.2931+bdf3fa12f
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/zig-bootstrap/out/build-zig-host
[  1%] Built target opt_c_util
[ 82%] Built target embedded_softfloat
[ 86%] Built target zigcpp
[ 98%] Built target zigstage1
[ 99%] Built target zig0
[100%] Built target zig
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user/zig-bootstrap/out/host/bin/zig
-- Set runtime path of "/home/user/zig-bootstrap/out/host/bin/zig" to ""
-- Installing: /home/user/zig-bootstrap/out/host/lib
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/home/user/zig-bootstrap/out/host/bin/zig"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_bfdd2/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_bfdd2.dir/build.make CMakeFiles/cmTC_bfdd2.dir/build
    gmake[1]: Entering directory '/home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_bfdd2.dir/testCCompiler.c.obj
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target arm-windows-gnu -mcpu=baseline    -o CMakeFiles/cmTC_bfdd2.dir/testCCompiler.c.obj -c /home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeTmp/testCCompiler.c
    error: Function 'main' uses ARM instructions, but the target does not support ARM mode execution.
    1 error generated.
    gmake[1]: *** [CMakeFiles/cmTC_bfdd2.dir/build.make:78: CMakeFiles/cmTC_bfdd2.dir/testCCompiler.c.obj] Error 1
    gmake[1]: Leaving directory '/home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_bfdd2/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
See also "/home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeOutput.log".
See also "/home/user/zig-bootstrap/out/build-zlib-arm-windows-gnu-baseline/CMakeFiles/CMakeError.log".
@alexrp
Copy link
Member

alexrp commented Aug 31, 2024

ziglang/zig#21174

@alexrp
Copy link
Member

alexrp commented Sep 22, 2024

ziglang/zig#21472

@alexrp
Copy link
Member

alexrp commented Sep 22, 2024

lld-link: error: undefined symbol: __i64tod
>>> referenced by libLLVMSupport.a(APInt.cpp.obj):(llvm::APInt::roundToDouble(bool) const)
>>> referenced by libLLVMSupport.a(Timer.cpp.obj):(llvm::TimeRecord::getCurrentTime(bool))
>>> referenced by libLLVMSupport.a(Timer.cpp.obj):(llvm::TimeRecord::getCurrentTime(bool))
>>> referenced 10 more times

lld-link: error: undefined symbol: __u64tod
>>> referenced by libLLVMSupport.a(APInt.cpp.obj):(llvm::APInt::roundToDouble(bool) const)
>>> referenced by libLLVMSupport.a(APInt.cpp.obj):(llvm::APInt::sqrt() const)
>>> referenced by libLLVMSupport.a(Timer.cpp.obj):(llvm::TimerGroup::printJSONValues(llvm::raw_ostream&, char const*))
>>> referenced 3 more times

lld-link: error: undefined symbol: __dtou64
>>> referenced by libLLVMSupport.a(APInt.cpp.obj):(llvm::APInt::sqrt() const)

lld-link: error: undefined symbol: __dtoi64
>>> referenced by libLLVMSupport.a(JSON.cpp.obj):(llvm::json::Object::getInteger(llvm::StringRef) const)
>>> referenced by libLLVMSupport.a(JSON.cpp.obj):(llvm::json::operator==(llvm::json::Value const&, llvm::json::Value const&))
>>> referenced by libLLVMSupport.a(JSON.cpp.obj):(llvm::json::operator==(llvm::json::Value const&, llvm::json::Value const&))
gmake[2]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/build.make:886: bin/llvm-tblgen.exe] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:8654: utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2

@alexrp
Copy link
Member

alexrp commented Sep 22, 2024

ziglang/zig#21489

@LinuxUserGD LinuxUserGD changed the title arm-windows-gnu thumb-windows-gnu Sep 22, 2024
@alexrp alexrp closed this as completed in bc7b15c Nov 3, 2024
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

Successfully merging a pull request may close this issue.

2 participants