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

Unable to Build LLVM on Windows with GCC Version 11.2.0 #4298

Closed
sago35 opened this issue Jun 15, 2024 · 2 comments
Closed

Unable to Build LLVM on Windows with GCC Version 11.2.0 #4298

sago35 opened this issue Jun 15, 2024 · 2 comments

Comments

@sago35
Copy link
Member

sago35 commented Jun 15, 2024

I couldn't build LLVM on Windows.
The version of GCC is 11.2.0.

GCC 11.2.0 is the latest version currently available through choco.
LLVM 17.0.1 before commit 81ce7fb can be built successfully.

[1/3077] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.obj
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.obj
C:\ProgramData\chocolatey\bin\c++.exe -DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:/tinygo/tinygo/llvm-build/lib/Support -IC:/tinygo/tinygo/llvm-project/llvm/lib/Suppor
t -IC:/tinygo/tinygo/llvm-build/include -IC:/tinygo/tinygo/llvm-project/llvm/include -Wa,-mbig-obj -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedanti
c -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation
 -Wctad-maybe-unsupported -ffunction-sections -fdata-sections  -O2 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.obj -MF lib\Support\CMakeFiles\LLVMSuppo
rt.dir\raw_socket_stream.cpp.obj.d -o lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.obj -c C:/tinygo/tinygo/llvm-project/llvm/lib/Support/raw_socket_stream.cpp
C:/tinygo/tinygo/llvm-project/llvm/lib/Support/raw_socket_stream.cpp:27:10: fatal error: afunix.h: No such file or directory
   27 | #include <afunix.h>
      |          ^~~~~~~~~~
compilation terminated.
@sago35
Copy link
Member Author

sago35 commented Jun 19, 2024

I was able to successfully build with GCC 13.2.0 installed using the command scoop install gcc. I plan to create a PR for the tinygo-site later.

$ gcc --version
gcc.exe (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@sago35
Copy link
Member Author

sago35 commented Aug 14, 2024

The current Chocolatey mingw 13.2.0 includes gcc 13.2.0, and you can use it to build LLVM according to the documentation.

@sago35 sago35 closed this as completed Aug 14, 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

No branches or pull requests

1 participant