obfuscator icon indicating copy to clipboard operation
obfuscator copied to clipboard

What is the enviroment&version of build tool-chain?

Open Garithe opened this issue 1 year ago • 6 comments
trafficstars

I have tried clang17/libc++abi-17-dev on kali but failed on linker (looks like some symbols couldn't found in libc++, compiled 100% ) Then I tried other llvm docker but also failed . If would be helpful to provide some version information as c++23 is not stably supported

Garithe avatar Mar 21 '24 07:03 Garithe

Honestly, the last time i tested clang 17 and libc++17, it worked fine for me. What are the errors you are getting?

es3n1n avatar Mar 21 '24 08:03 es3n1n

Honestly, the last time i tested clang 17 and libc++17, it worked fine for me. What are the errors you are getting?

I got things like: ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>::~basic_string() ld.lld: error: undefined symbol: std::__1::random_device::operator()() ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>::operator=(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&) ld.lld: error: undefined symbol: std::__1::random_device::~random_device() ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&) ld.lld: error: undefined symbol: std::__1::stoull(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, unsigned long*, int) ld.lld: error: undefined symbol: std::runtime_error::runtime_error(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&) ld.lld: error: undefined symbol: std::__1::__fs::filesystem::path::replace_extension(std::__1::__fs::filesystem::path const&) ld.lld: error: undefined symbol: std::__1::__fs::filesystem::__status(std::__1::__fs::filesystem::path const&, std::__1::error_code*) ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>::assign(char const*) ld.lld: error: undefined symbol: std::__1::__next_prime(unsigned long)

So many these error after [100%] Linking CXX executable obfuscator

Garithe avatar Mar 21 '24 08:03 Garithe

Are you sure that you installed both libc++-17-dev and libc++abi-17-dev?

es3n1n avatar Mar 21 '24 16:03 es3n1n

dpkg -l | grep libc++ ii libc++-17-dev:amd64 1:17.0.6-5 amd64 LLVM C++ Standard library (development files) ii libc++1-17:amd64 1:17.0.6-5 amd64 LLVM C++ Standard library ii libc++abi-17-dev:amd64 1:17.0.6-5 amd64 LLVM low level support for a standard C++ library (development files) ii libc++abi1-17:amd64 1:17.0.6-5 amd64 LLVM low level support for a standard C++ library

CC=clang-17 CXX=clang++-17

[100%] Linking CXX executable obfuscator ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>::~basic_string() ......... ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang++-17: error: linker command failed with exit code 1 (use -v to see invocation)

OS: wsl2 (kali)

Garithe avatar Mar 22 '24 03:03 Garithe

Update: I tried on my macbook m3 and it worked with llvm17. Just can‘t succeed on my kali in wsl2.

Garithe avatar Apr 05 '24 04:04 Garithe

Update: I tried on my macbook m3 and it worked with llvm17. Just can‘t succeed on my kali in wsl2.

Can you checkout to the dev branch and remove -Wl,-L/usr/local/lib/ from https://github.com/es3n1n/obfuscator/blob/dev/src/cmake.toml#L6 ? Then make a new cmake build and try to build it

es3n1n avatar Apr 05 '24 11:04 es3n1n