You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user@userland:/tools/reveng/Triton/build$ cmake -DCAPSTONE_INCLUDE_DIRS=/usr/lib/capstone/include ..
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with Python bindings
-- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter Development Development.Module Development.Embed
-- Python3 includes: /usr/include/python3.12
-- Python3 libraries: /usr/lib/x86_64-linux-gnu/libpython3.12.so
-- Compiling with Z3 SMT solver
-- Found Z3 include directory: /usr/include
-- Found Z3 library: /usr/lib/x86_64-linux-gnu/libz3.so
-- Z3 version: 4.8.12.0
-- Compiling with Capstone
-- Capstone includes directory defined: /usr/lib/capstone/include
-- Capstone libraries defined:
-- CAPSTONE version: 5.0.3
-- Compiling with wide-integer headers
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/dex/tools/reveng/Triton/build
user@userland:/tools/reveng/Triton/build$ make -j3
[ 3%] Building CXX object src/libtriton/CMakeFiles/triton.dir/arch/arm/aarch64/aarch64Cpu.cpp.o
[ 3%] Building CXX object src/libtriton/CMakeFiles/triton.dir/arch/arm/aarch64/aarch64Semantics.cpp.o
... snip ...
[ 88%] Linking CXX shared library libtriton.so
[ 88%] Built target triton
[ 90%] Building CXX object src/examples/cpp/CMakeFiles/info_reg.dir/info_reg.cpp.o
[ 90%] Building CXX object src/examples/cpp/CMakeFiles/taint_reg.dir/taint_reg.cpp.o
[ 90%] Built target python-triton
[ 91%] Building CXX object src/examples/cpp/CMakeFiles/ir.dir/ir.cpp.o
[ 91%] Linking CXX executable taint_reg
[ 92%] Linking CXX executable ir
[ 93%] Linking CXX executable info_reg
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_disasm' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_free'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_open' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_option'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_close' collect2: error: ld returned 1 exit status make[2]: *** [src/examples/cpp/CMakeFiles/taint_reg.dir/build.make:99: src/examples/cpp/taint_reg] Error 1 make[1]: *** [CMakeFiles/Makefile2:1070: src/examples/cpp/CMakeFiles/taint_reg.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_disasm'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_free' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_open'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_option' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_close'
collect2: error: ld returned 1 exit status
make[2]: *** [src/examples/cpp/CMakeFiles/ir.dir/build.make:99: src/examples/cpp/ir] Error 1
make[1]: *** [CMakeFiles/Makefile2:1122: src/examples/cpp/CMakeFiles/ir.dir/all] Error 2
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_disasm' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_free'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_open' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to cs_option'
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to `cs_close'
collect2: error: ld returned 1 exit status
make[2]: *** [src/examples/cpp/CMakeFiles/info_reg.dir/build.make:99: src/examples/cpp/info_reg] Error 1
make[1]: *** [CMakeFiles/Makefile2:1096: src/examples/cpp/CMakeFiles/info_reg.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
thx,
Holger
The text was updated successfully, but these errors were encountered:
ah sorry, for my initial reply to your answer and the confusion (in case you saw it). I got your answer by email and confused two projects. Rg. this case, due to the "-- Compiling with Capstone" output of the config script, I assumed the config script found the capstone lib and has some issue to hand it over to the makefile/linker or the functions was deprecated in my capstone lib version. TBH I didn't looked deeper into it or tried to fix it, just wanted to let you know.
Hi, the build process is broken or I am missing some dependency (maybe some libs are too new?) on Ubuntu Server 24.04.01LTS:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
user@userland:
/tools/reveng/Triton/build$ cmake -DCAPSTONE_INCLUDE_DIRS=/usr/lib/capstone/include ../tools/reveng/Triton/build$ make -j3-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling with Python bindings
-- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter Development Development.Module Development.Embed
-- Python3 includes: /usr/include/python3.12
-- Python3 libraries: /usr/lib/x86_64-linux-gnu/libpython3.12.so
-- Compiling with Z3 SMT solver
-- Found Z3 include directory: /usr/include
-- Found Z3 library: /usr/lib/x86_64-linux-gnu/libz3.so
-- Z3 version: 4.8.12.0
-- Compiling with Capstone
-- Capstone includes directory defined: /usr/lib/capstone/include
-- Capstone libraries defined:
-- CAPSTONE version: 5.0.3
-- Compiling with wide-integer headers
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/dex/tools/reveng/Triton/build
user@userland:
[ 3%] Building CXX object src/libtriton/CMakeFiles/triton.dir/arch/arm/aarch64/aarch64Cpu.cpp.o
[ 3%] Building CXX object src/libtriton/CMakeFiles/triton.dir/arch/arm/aarch64/aarch64Semantics.cpp.o
... snip ...
[ 88%] Linking CXX shared library libtriton.so
[ 88%] Built target triton
[ 90%] Building CXX object src/examples/cpp/CMakeFiles/info_reg.dir/info_reg.cpp.o
[ 90%] Building CXX object src/examples/cpp/CMakeFiles/taint_reg.dir/taint_reg.cpp.o
[ 90%] Built target python-triton
[ 91%] Building CXX object src/examples/cpp/CMakeFiles/ir.dir/ir.cpp.o
[ 91%] Linking CXX executable taint_reg
[ 92%] Linking CXX executable ir
[ 93%] Linking CXX executable info_reg
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_disasm' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_free'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_open' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_option'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_close' collect2: error: ld returned 1 exit status make[2]: *** [src/examples/cpp/CMakeFiles/taint_reg.dir/build.make:99: src/examples/cpp/taint_reg] Error 1 make[1]: *** [CMakeFiles/Makefile2:1070: src/examples/cpp/CMakeFiles/taint_reg.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_disasm'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_free' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_open'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_option' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_close'collect2: error: ld returned 1 exit status
make[2]: *** [src/examples/cpp/CMakeFiles/ir.dir/build.make:99: src/examples/cpp/ir] Error 1
make[1]: *** [CMakeFiles/Makefile2:1122: src/examples/cpp/CMakeFiles/ir.dir/all] Error 2
/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_disasm' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_free'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_open' /usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to
cs_option'/usr/bin/ld: ../../libtriton/libtriton.so: undefined reference to `cs_close'
collect2: error: ld returned 1 exit status
make[2]: *** [src/examples/cpp/CMakeFiles/info_reg.dir/build.make:99: src/examples/cpp/info_reg] Error 1
make[1]: *** [CMakeFiles/Makefile2:1096: src/examples/cpp/CMakeFiles/info_reg.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
thx,
Holger
The text was updated successfully, but these errors were encountered: