Skip to content
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

Failed compiling on MacOS M2 #1030

Open
c4stelo opened this issue Dec 18, 2024 · 0 comments
Open

Failed compiling on MacOS M2 #1030

c4stelo opened this issue Dec 18, 2024 · 0 comments

Comments

@c4stelo
Copy link

c4stelo commented Dec 18, 2024

Problem description

I followed the installation procedure provided with cmake commands and I can't compile plotjuggler
cmake -S src/PlotJuggler -B build/PlotJuggler -DCMAKE_INSTALL_PREFIX=install ─╯
cmake --build build/PlotJuggler --config RelWithDebInfo --target install

Describe the problem and the expected behavior. Use screenshots or a video, if applicable.

-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - broken
CMake Error at /opt/homebrew/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: '/Users/c4stelo/FST/plotjuggler/build/PlotJuggler/CMakeFiles/CMakeScratch/TryCompile-l1xJUB'

Run Build Command(s): /opt/homebrew/bin/cmake -E env VERBOSE=1 /opt/homebrew/bin/gmake -f Makefile cmTC_76cad/fast
/opt/homebrew/bin/gmake  -f CMakeFiles/cmTC_76cad.dir/build.make CMakeFiles/cmTC_76cad.dir/build
gmake[1]: Entering directory '/Users/c4stelo/FST/plotjuggler/build/PlotJuggler/CMakeFiles/CMakeScratch/TryCompile-l1xJUB'
Building C object CMakeFiles/cmTC_76cad.dir/testCCompiler.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -MD -MT CMakeFiles/cmTC_76cad.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_76cad.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_76cad.dir/testCCompiler.c.o -c /Users/c4stelo/FST/plotjuggler/build/PlotJuggler/CMakeFiles/CMakeScratch/TryCompile-l1xJUB/testCCompiler.c
Linking C executable cmTC_76cad
/opt/homebrew/bin/cmake -E cmake_link_script CMakeFiles/cmTC_76cad.dir/link.txt --verbose=1
ld: file cannot be mmap()ed, errno=22 path=/opt/homebrew/opt/qt@5/lib in '/opt/homebrew/opt/qt@5/lib'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/opt/qt@5/lib  CMakeFiles/cmTC_76cad.dir/testCCompiler.c.o -o cmTC_76cad
gmake[1]: *** [CMakeFiles/cmTC_76cad.dir/build.make:103: cmTC_76cad] Error 1
gmake[1]: Leaving directory '/Users/c4stelo/FST/plotjuggler/build/PlotJuggler/CMakeFiles/CMakeScratch/TryCompile-l1xJUB'
gmake: *** [Makefile:133: cmTC_76cad/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:13 (PROJECT)

-- Configuring incomplete, errors occurred!
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.

Answer these questions (or I will ignore your issue)

  1. Describe your platform / Operative System and the version of PlotJuggler you are using.
    I am on MacOS running 15.2 Sequoia
  2. Compile and try the latest version in the main branch and check if the problem persists.
    Can't compile
  3. Check if the problem can be reproduced using the dummy data created by the command line argument "-t" or one of the files in the folder "datasamples".
    Can't compile
  4. If it can't be reproduced with the dummy data, please share the CSV file or the rosbag that can be used to reproduce the problem.
    Can't compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant