Subject: [Boost-bugs] [Boost C++ Libraries] #9774: [libs/coroutine] Undefined symbols for architecture i386: _make_fcontext / _jump_fcontext
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-12 23:46:06
#9774: [libs/coroutine] Undefined symbols for architecture i386: _make_fcontext /
_jump_fcontext
-------------------------------------+-----------------------
Reporter: class101 <ad@â¦> | Owner: olli
Type: Bugs | Status: new
Milestone: To Be Determined | Component: coroutine
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+-----------------------
This bug also affects 1.55, libs/couroutine is the only module I can't
build for a target-os=darwin with clang-darwin-4.2.1
Command used:
{{{
b2 -j1 -d2 -q toolset=clang-darwin variant=release abi=sysv address-
model=32_64 binary-format=mach-o link=static,shared pch=off strip=on
target-os=darwin threading=multi threadapi=pthread cxxflags="-w -arch i386
-arch x86_64" linkflags="-w -arch i386 -arch x86_64 -lstdc++"
--stagedir=stage32_64 --with-coroutine
}}}
Returns:
{{{
"X:/libs/gcc-clang-3.4-x86_64-apple-darwin10/bin/clang.exe" -w -arch
i386 -arch x86_64 -lstdc++ -w -arch i386 -arch x86_64 -lstdc++ -o
"bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-sysv\add
ress-model-32_64\binary-format-mach-o\pch-off\strip-on\target-os-darwin
\threadapi-pthread\threading-multi\libboost_coroutine-clang-darwin42-mt-
1_56.dylib" -single_module -dynamiclib -install_name "libboost_co
routine-clang-darwin42-mt-1_56.dylib" "bin.v2\libs\coroutine\build\clang-
darwin-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o
\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-mu
lti\detail\coroutine_context.o" "bin.v2\libs\coroutine\build\clang-
darwin-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o
\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\ex
ceptions.o" "bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-
sysv\address-model-32_64\binary-format-mach-o\pch-off\strip-on\target-os-
darwin\threadapi-pthread\threading-multi\protected_stack_alloca
tor_posix.o" "bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-
sysv\address-model-32_64\binary-format-mach-o\pch-off\strip-on\target-os-
darwin\threadapi-pthread\threading-multi\standard_stack_alloca
tor.o" "bin.v2\libs\chrono\build\clang-darwin-4.2.1\release\abi-sysv
\address-model-32_64\binary-format-mach-o\pch-off\strip-on\target-os-
darwin\threadapi-pthread\threading-multi\libboost_chrono-clang-darwin42
-mt-1_56.dylib" "bin.v2\libs\thread\build\clang-darwin-4.2.1\release\abi-
sysv\address-model-32_64\binary-format-mach-o\pch-off\strip-on\target-os-
darwin\threadapi-pthread\threading-multi\libboost_thread_pthre
ad-clang-darwin42-mt-1_56.dylib" "bin.v2\libs\system\build\clang-
darwin-4.2.1\release\abi-sysv\address-model-32_64\binary-format-mach-o
\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-multi\libb
oost_system-clang-darwin42-mt-1_56.dylib" "bin.v2\libs\context\build
\clang-darwin-4.2.1\release\abi-sysv\address-model-32_64\binary-format-
mach-o\pch-off\strip-on\target-os-darwin\threadapi-pthread\threading-
multi\libboost_context-clang-darwin42-mt-1_56.dylib"
Undefined symbols for architecture i386:
"_make_fcontext", referenced from:
boost::coroutines::detail::coroutine_context::coroutine_context(void
(*)(long), boost::coroutines::stack_context const&) in
bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-sysv\address-
model-
32_64\binary-format-mach-o\pch-off\strip-on\target-os-darwin\threadapi-
pthread\threading-multi\detail\coroutine_context.o
boost::coroutines::detail::coroutine_context::coroutine_context(void
(*)(long), boost::coroutines::stack_context const&) in
bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-sysv\address-
model-
32_64\binary-format-mach-o\pch-off\strip-on\target-os-darwin\threadapi-
pthread\threading-multi\detail\coroutine_context.o
"_jump_fcontext", referenced from:
boost::coroutines::detail::coroutine_context::jump(boost::coroutines::detail::coroutine_context&,
long, bool) in bin.v2\libs\coroutine\build\clang-darwin-4.2.1\release\abi-
sysv\address-model-32_64\binar
y-format-mach-o\pch-off\strip-on\target-os-darwin\threadapi-pthread
\threading-multi\detail\coroutine_context.o
ld: symbol(s) not found for architecture i386
clang.exe: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
Off-Topic: You mention to report to boost-track successfull builds but I
don't know where is this so please note that I have tested to remove the
untested.cpp from the libs\context\build\Jamfile.v2 for address-
model=32_64 binary-format=mach-o and it worked fine!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9774> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC