Coder Social home page Coder Social logo

Comments (6)

es3n1n avatar es3n1n commented on June 19, 2024 1

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

from obfuscator.

Garithe avatar Garithe commented on June 19, 2024 1

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

from obfuscator.

Garithe avatar Garithe commented on June 19, 2024

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

from obfuscator.

es3n1n avatar es3n1n commented on June 19, 2024

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

from obfuscator.

Garithe avatar Garithe commented on June 19, 2024

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)

from obfuscator.

es3n1n avatar es3n1n commented on June 19, 2024

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

from obfuscator.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.