Hi,
I am trying to build objc2 library on a Debian 12 VM.
I can generate the makefiles (the output of make is attached)
but when I do a ‘make’ it fails with the ABI selection flag.
The output of make is also attached.
I am using clang
Debian clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64
What am I missing ?
Thanks,
Regards
Daniel Santos
-- The C compiler identification is Clang 14.0.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/cc
-- The CXX compiler identification is GNU 12.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
-- The OBJC compiler identification is Clang 14.0.6
-- The OBJCXX compiler identification is GNU 12.2.0
-- Detecting OBJC compiler ABI info
-- Detecting OBJC compiler ABI info - done
-- Check for working OBJC compiler: /usr/bin/cc - skipped
-- Detecting OBJCXX compiler ABI info
-- Detecting OBJCXX compiler ABI info - done
-- Check for working OBJCXX compiler: /usr/bin/c++ - skipped
-- Architecture as detected by CMake: x86_64
CMake Warning at CMakeLists.txt:115 (find_package):
By not providing "Findtsl-robin-map.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"tsl-robin-map", but CMake did not find one.
Could not find a package configuration file provided by "tsl-robin-map"
with any of the following names:
tsl-robin-mapConfig.cmake
tsl-robin-map-config.cmake
Add the installation prefix of "tsl-robin-map" to CMAKE_PREFIX_PATH or set
"tsl-robin-map_DIR" to a directory containing one of the above files. If
"tsl-robin-map" provides a separate development package or SDK, be sure it
has been installed.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- GNUstep install type set to NONE
-- Performing Test CXA_ALLOCATE_EXCEPTION_NOEXCEPT_COMPILES
-- Performing Test CXA_ALLOCATE_EXCEPTION_NOEXCEPT_COMPILES - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dlsa/code/libobjc2/build
[ 2%] Generating eh_trampoline.S
[ 5%] Building C object CMakeFiles/objc.dir/alias_table.c.o
[ 8%] Building C object CMakeFiles/objc.dir/block_to_imp.c.o
[ 11%] Building C object CMakeFiles/objc.dir/builtin_classes.c.o
[ 14%] Building C object CMakeFiles/objc.dir/caps.c.o
[ 17%] Building C object CMakeFiles/objc.dir/category_loader.c.o
In file included from /home/dlsa/code/libobjc2/category_loader.c:5:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 20%] Building C object CMakeFiles/objc.dir/class_table.c.o
In file included from /home/dlsa/code/libobjc2/class_table.c:9:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 22%] Building C object CMakeFiles/objc.dir/dtable.c.o
In file included from /home/dlsa/code/libobjc2/dtable.c:8:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 25%] Building C object CMakeFiles/objc.dir/encoding2.c.o
[ 28%] Building C object CMakeFiles/objc.dir/gc_none.c.o
[ 31%] Building C object CMakeFiles/objc.dir/hooks.c.o
[ 34%] Building C object CMakeFiles/objc.dir/ivar.c.o
[ 37%] Building C object CMakeFiles/objc.dir/loader.c.o
[ 40%] Building OBJC object CMakeFiles/objc.dir/mutation.m.o
[ 42%] Building C object CMakeFiles/objc.dir/protocol.c.o
[ 45%] Building C object CMakeFiles/objc.dir/runtime.c.o
In file included from /home/dlsa/code/libobjc2/runtime.c:8:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 48%] Building C object CMakeFiles/objc.dir/sarray2.c.o
In file included from /home/dlsa/code/libobjc2/sarray2.c:6:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 51%] Building C object CMakeFiles/objc.dir/sendmsg2.c.o
In file included from /home/dlsa/code/libobjc2/sendmsg2.c:3:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 54%] Building OBJC object CMakeFiles/objc.dir/fast_paths.m.o
[ 57%] Building C object CMakeFiles/objc.dir/eh_personality.c.o
[ 60%] Building C object CMakeFiles/objc.dir/legacy.c.o
[ 62%] Building C object CMakeFiles/objc.dir/abi_version.c.o
[ 65%] Building C object CMakeFiles/objc.dir/statics_loader.c.o
[ 68%] Building ASM object CMakeFiles/objc.dir/block_trampolines.S.o
[ 71%] Building ASM object CMakeFiles/objc.dir/objc_msgSend.S.o
[ 74%] Building ASM object CMakeFiles/objc.dir/eh_trampoline.S.o
[ 77%] Building OBJC object CMakeFiles/objc.dir/NSBlocks.m.o
In file included from /home/dlsa/code/libobjc2/NSBlocks.m:6:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 80%] Building OBJC object CMakeFiles/objc.dir/associate.m.o
In file included from /home/dlsa/code/libobjc2/associate.m:10:
In file included from /home/dlsa/code/libobjc2/dtable.h:3:
/home/dlsa/code/libobjc2/sarray2.h:55:8: warning: variable length array folded
to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
[ 82%] Building OBJC object CMakeFiles/objc.dir/blocks_runtime_np.m.o
[ 85%] Building OBJC object CMakeFiles/objc.dir/properties.m.o
[ 88%] Building OBJC object CMakeFiles/objc.dir/blocks_runtime.m.o
[ 91%] Building OBJCXX object CMakeFiles/objc.dir/arc.mm.o
c++: error: unrecognized command-line option â-fobjc-runtime=gnustep-2.0â
make[2]: *** [CMakeFiles/objc.dir/build.make:497: CMakeFiles/objc.dir/arc.mm.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:101: CMakeFiles/objc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2