Opened 3 months ago
Closed 3 months ago
#73626 closed defect (duplicate)
llvm-11 fails for invalid version number in '-mlinker-version=2.2.'
| Reported by: | rmottola (Riccardo) | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | highsierra | Cc: | |
| Port: | llvm11 |
Description
out of the box on High Sierra 10.15 build fails
-- Check for working C compiler: /opt/local/bin/clang-mp-9.0 - broken
CMake Error at /opt/local/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/opt/local/bin/clang-mp-9.0"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/opt/local/var/macports/build/llvm-11-2adc989d/work/build/CMakeFiles/CMakeScratch/TryCompile-qgvrp3'
Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_094a4/fast
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_094a4.dir/build.make CMakeFiles/cmTC_094a4.dir/build
Building C object CMakeFiles/cmTC_094a4.dir/testCCompiler.c.o
/opt/local/bin/clang-mp-9.0 -pipe -Os -arch x86_64 -mmacosx-version-min=10.13 -MD -MT CMakeFiles/cmTC_094a4.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_094a4.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_094a4.dir/testCCompiler.c.o -c /opt/local/var/macports/build/llvm-11-2adc989d/work/build/CMakeFiles/CMakeScratch/TryCompile-qgvrp3/testCCompiler.c
Linking C executable cmTC_094a4
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_094a4.dir/link.txt --verbose=1
clang: error: invalid version number in '-mlinker-version=2.2.'
/opt/local/bin/clang-mp-9.0 -pipe -Os -arch x86_64 -mmacosx-version-min=10.13 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names CMakeFiles/cmTC_094a4.dir/testCCompiler.c.o -o cmTC_094a4
Change History (1)
comment:1 Changed 3 months ago by jmroot (Joshua Root)
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

#73601