Opened 4 years ago

Closed 4 years ago

#59556 closed defect (duplicate)

boost @1.71.0_1: Undefined symbols ___cxa_thread_atexit

Reported by: SlaunchaMan (Jeff Kelley) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: snowleopard Cc:
Port: boost

Description

I tried installing Boost 1.71.0_1 on Mac OS X 10.6.8 and, with or without the +clang90 variant, I get this error building:

:info:build Undefined symbols for architecture x86_64:
:info:build   "___cxa_thread_atexit", referenced from:
:info:build       boost::context::detail::ecv1_activation_record::current() in execution_context.o
:info:build       boost::context::detail::ecv1_activation_record_initializer::ecv1_activation_record_initializer() in execution_context.o
:info:build       boost::context::detail::ecv1_activation_record_initializer::ecv1_activation_record_initializer() in execution_context.o
:info:build       boost::context::detail::ecv1_activation_record_initializer::~ecv1_activation_record_initializer() in execution_context.o
:info:build       boost::context::detail::ecv1_activation_record_initializer::~ecv1_activation_record_initializer() in execution_context.o
:info:build       boost::context::v1::execution_context::current() in execution_context.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

Full log attached.

Attachments (1)

main.log (503.3 KB) - added by SlaunchaMan (Jeff Kelley) 4 years ago.
Build log

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by SlaunchaMan (Jeff Kelley)

Attachment: main.log added

Build log

comment:1 Changed 4 years ago by kencu (Ken)

Hi Jeff,

Yes, that is 58898, which I have not yet found a way to automate. Please make sure you have at least clang-5.0 installed, and then do this:

sudo port -v -n upgrade --force --enforce-variants libcxx +emulated_tls +universal

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Port: boost added

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Keywords: snowleopard added

comment:4 Changed 4 years ago by SlaunchaMan (Jeff Kelley)

Looks like that worked, thanks!

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign michaelld removed
Owner: set to michaelld
Status: newassigned
Summary: Undefined symbols for Boost 1.71.0_1 on 10.6.8boost @1.71.0_1: Undefined symbols ___cxa_thread_atexit

comment:6 Changed 4 years ago by michaelld (Michael Dickens)

Resolution: duplicate
Status: assignedclosed

Closing this since this ticket is not the issue & we have an open ticket for the issue.

Note: See TracTickets for help on using tickets.