-
Notifications
You must be signed in to change notification settings - Fork 145
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
C++ header file not found #663
Comments
I edit CMakeLists.txt and add cmd |
But now it says "Could not find sleigh compiler", and CMake error at lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): Cannot find source file. I am confused, need help, pls. |
Please provide more information about how you configured remill. Ideally, I would like to know each command you executed from a fresh clone of the remill repository. There are many different ways to get to the error line you pasted, so I need something to narrow down what might be the issue. Thank you. |
@reverseXiang Also, what version of macOS are you running? It seems you are trying to use the 10.15 macOS SDK. We don't build for that version (as evidenced in the vcpkg directory name |
Thanks! My MacOS version is 11.7.4. Found MacOS Big Sur
HEAD is now at 9c724c1ad Merge remote-tracking branch 'origin/GP-2355_AARCH64_thunk_pattern' into patch so the trick here is to define an INST_NEXT_PTR that works in either context.git/rebase-apply/patch:28: trailing whitespace. warning: 4 lines add whitespace errors. .git/rebase-apply/patch:25: trailing whitespace. .git/rebase-apply/patch:36: trailing whitespace. .git/rebase-apply/patch:43: trailing whitespace. warning: 5 lines add whitespace errors. .git/rebase-apply/patch:33: trailing whitespace. .git/rebase-apply/patch:42: trailing whitespace. warning: squelched 17 whitespace errors .git/rebase-apply/patch:24: trailing whitespace. .git/rebase-apply/patch:28: trailing whitespace. warning: squelched 9 whitespace errors .git/rebase-apply/patch:22: trailing whitespace. .git/rebase-apply/patch:28: trailing whitespace. warning: 2 lines add whitespace errors. .git/rebase-apply/patch:46: trailing whitespace. warning: squelched 151 whitespace errors
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library):
Call Stack (most recent call first): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Error at /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/scripts/buildsystems/vcpkg.cmake:623 (_add_library): CMake Generate step failed. Build files cannot be regenerated correctly. |
Hello. I re-cloned the project then simply ran the command ". /remill/scripts/build.sh". I now keep getting stuck on this command and it reports errors frequently. |
Hmmm. This is weird. I can't recreate your issues. I can build latest remill fine on latest macOS 13.3.1 with CMake 3.26.3 using the
It's difficult to debug this if I can't reproduce it 😞 |
he is on windows. either move to linux or get a mac. |
@reverseXiang Have you removed any pre-existing build directories before trying to build again? You may have an old build directory causing issues with an updated toolchain. Please try starting with a completely fresh and updated repository and remove any previous or existing remill build directories and try building again. |
I try to build the source code on mac, and output a lot of warning about c++ header not found. How can I fix it, thx !
like this
[ 42%] Building BC object /Users/xxxxxxxx/Desktop/ollvm/remill-build/lib/Arch/AArch64/Runtime/aarch64_Intrinsics.cpp.bc cd /Users/xxxxxxxx/Desktop/ollvm/remill-build/lib/Arch/AArch64/Runtime && /Users/xxxxxxxx/Desktop/ollvm/lifting-bits-downloads/vcpkg_macos-11_llvm-15_xcode-13.0_amd64/installed/x64-osx-rel/tools/llvm/clang-15 -I/Users/xxxxxxxx/Desktop/ollvm/remill/include -I/Users/xxxxxxxx/Desktop/ollvm/remill -target x86_64-apple-macosx11.0.0 -DADDRESS_SIZE_BITS=64 -DLITTLE_ENDIAN=1 -emit-llvm -Wno-unknown-warning-option -Wall -Wshadow -Wconversion -Wpadded -pedantic -Wshorten-64-to-32 -Wgnu-alignof-expression -Wno-gnu-anonymous-struct -Wno-return-type-c-linkage -Wno-gnu-zero-variadic-macro-arguments -Wno-nested-anon-types -Wno-extended-offsetof -Wno-gnu-statement-expression -Wno-c99-extensions -Wno-ignored-attributes -fno-vectorize -fno-slp-vectorize -Wno-variadic-macros -Wno-c11-extensions -Wno-c++11-extensions -ffreestanding -fno-common -fno-builtin -fno-exceptions -fno-rtti -fno-asynchronous-unwind-tables -Wno-unneeded-internal-declaration -Wno-unused-function -Wgnu-inline-cpp-without-extern -Wno-pass-failed=transform-warning -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -std=c++17 -c /Users/xxxxxxxx/Desktop/ollvm/remill/lib/Arch/Runtime/Intrinsics.cpp -o /Users/xxxxxxxx/Desktop/ollvm/remill-build/lib/Arch/AArch64/Runtime/aarch64_Intrinsics.cpp.bc
/Users/xxxxxxxx/Desktop/ollvm/remill/lib/Arch/AArch32/Runtime/BasicBlock.cpp:17:10: fatal error: 'algorithm' file not found #include <algorithm> ^~~~~~~~~~~ 1 error generated. make[2]: *** [lib/Arch/AArch32/Runtime/thumb2_BasicBlock.cpp.bc] Error 1 make[2]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: