Skip to content

MacOS 12 fails the tests with gcc #16

Description

@aminya

https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:174

-- Build files have been written to: /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/build
task: [build_template] cmake --build ./build --config Debug 
[1/18] Building CXX object my_lib/CMakeFiles/my_lib.dir/Debug/src/my_lib/lib.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/src/my_lib/lib.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/src/my_lib/lib.cpp: FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[2/18] Linking CXX static library my_lib/Debug/libmy_lib.a
[3/18] Building CXX object my_exe/CMakeFiles/my_exe.dir/Debug/src/main.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/src/main.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/src/main.cpp: FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[4/18] Linking CXX executable my_exe/Debug/my_exe
FAILED: my_exe/Debug/my_exe 
: && /usr/local/bin/g++-11 -g -isysroot /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -fsanitize=address my_exe/CMakeFiles/my_exe.dir/Debug/src/main.cpp.o -o my_exe/Debug/my_exe  vcpkg_installed/x64-osx/debug/lib/libfmtd.a  --coverage && :
0  0x10ef01ffa  __assert_rtn + 139
1  0x10ed3528d  mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 4989
2  0x10ed25f8f  mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 207
3  0x10ed73404  archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1268
4  0x10ed72a8b  archive::File<x86_64>::File(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 1035
5  0x10ed71c72  archive::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 146
6  0x10ed9cc8e  ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 2734
7  0x10ed9ffa0  ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 48
8  0x7ff81a27434a  _dispatch_client_callout2 + 8
9  0x7ff81a2858f5  _dispatch_apply_invoke + 213
10  0x7ff81a274317  _dispatch_client_callout + 8
11  0x7ff81a283c0c  _dispatch_root_queue_drain + 673
12  0x7ff81a28425c  _dispatch_worker_thread2 + 160
13  0x7ff81a427f8a  _pthread_wqthread + 256
A linker snapshot was created at:
	/tmp/my_exe-[202](https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:203)2-10-23-212714.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line [206](https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:207)1.
collect2: error: ld returned 1 exit status
[5/18] Building CXX object my_lib/test/CMakeFiles/my_lib_tests.dir/Debug/tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
[6/18] Building CXX object my_exe/test/CMakeFiles/my_exe_helpers_tests.dir/Debug/tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/test/tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/test/tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[7/18] Building CXX object my_lib/test/constexpr/CMakeFiles/my_lib_constexpr_tests.dir/Debug/constexpr_tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
[8/18] Building CXX object my_lib/test/constexpr/CMakeFiles/my_lib_relaxed_constexpr_tests.dir/Debug/constexpr_tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp: CATCH_CONFIG_MAIN=1;CATCH_CONFIG_RUNTIME_STATIC_REQUIRE=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
ninja: build stopped: subcommand failed.
task: Failed to run task "coverage": task: Failed to run task "build_template": exit status 1
Error: Process completed with exit code 1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions