EternalTerminal icon indicating copy to clipboard operation
EternalTerminal copied to clipboard

Cannot compile under raspberry pi raspian bullseye

Open ricebucket opened this issue 3 years ago • 1 comments

Seems to be a compile problem with vckpg. The last few lines of build/vcpkg-bootstrap.log:

/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/json.cpp.o: in function `vcpkg::Json::Reader::get_reader_stats()':
json.cpp:(.text+0x1754): undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/json.cpp.o: in function `vcpkg::Json::get_json_parsing_stats()':
json.cpp:(.text+0x1bb8): undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/json.cpp.o: in function `vcpkg::Json::parse(vcpkg::StringView, vcpkg::StringView)':
json.cpp:(.text+0x8004): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/json.cpp.o: in function `vcpkg::Json::parse_file(vcpkg::Filesystem const&, vcpkg::Path const&, std::error_code&)':
json.cpp:(.text+0x828c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/json.cpp.o: in function `vcpkg::Json::parse_file(vcpkg::LineInfo, vcpkg::Filesystem const&, vcpkg::Path const&)':
json.cpp:(.text+0xa7d8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/sourceparagraph.cpp.o: in function `vcpkg::parse_manifest_configuration[abi:cxx11](vcpkg::StringView, vcpkg::Json::Object const&)':
sourceparagraph.cpp:(.text+0x51ac): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/sourceparagraph.cpp.o: in function `vcpkg::SourceControlFile::parse_manifest_object(vcpkg::StringView, vcpkg::Json::Object const&)':
sourceparagraph.cpp:(.text+0xbf74): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/vcpkgpaths.cpp.o:vcpkgpaths.cpp:(.text+0x9068): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/system.process.cpp.o: in function `vcpkg::get_subproccess_stats()':
system.process.cpp:(.text+0x18fc): undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/system.process.cpp.o: in function `vcpkg::cmd_execute_and_stream_data(vcpkg::Command const&, vcpkg::InWorkingDirectory, std::function<void (vcpkg::StringView)>, vcpkg::Environment const&)':
system.process.cpp:(.text+0x1e4c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/base/system.process.cpp.o: in function `vcpkg::cmd_execute(vcpkg::Command const&, vcpkg::InWorkingDirectory, vcpkg::Environment const&)':
system.process.cpp:(.text+0x38fc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/paragraphs.cpp.o: in function `vcpkg::Paragraphs::get_load_ports_stats()':
paragraphs.cpp:(.text+0x2070): undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/paragraphs.cpp.o: in function `vcpkg::Paragraphs::try_load_port(vcpkg::Filesystem const&, vcpkg::Path const&)':
paragraphs.cpp:(.text+0x407c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/paragraphs.cpp.o: in function `vcpkg::Paragraphs::try_load_cached_package[abi:cxx11](vcpkg::Filesystem const&, vcpkg::Path const&, vcpkg::PackageSpec const&)':
paragraphs.cpp:(.text+0x6494): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/vcpkglib.dir/src/vcpkg/paragraphs.cpp.o: in function `vcpkg::Paragraphs::try_load_port_text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, vcpkg::StringView, bool)':
paragraphs.cpp:(.text+0x6730): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I think I need to add -latomic somewhere? But where?

ricebucket avatar Jan 14 '22 07:01 ricebucket

Does updating vcpkg fix it?

On Sun, Mar 6, 2022, 7:46 AM Yonle @.***> wrote:

Reproduceable as in Debian Bullseye amd64

— Reply to this email directly, view it on GitHub https://github.com/MisterTea/EternalTerminal/issues/486#issuecomment-1059965673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACK5P42OSP3Y77NCLDKVO3U6SZKXANCNFSM5L6A6H2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

MisterTea avatar Mar 06 '22 14:03 MisterTea