The ebuild for dev-cpp/tbb sets the "arch" parameter to the tbb build system according to MULTILIB_ABI_FLAG only on x86, not on PowerPC. This causes the wrong configuration to be autodetected when building 32-bit libraries on a PPC64 system (specifically, the symbol "_ZN3tbb19task_scheduler_init10initializeEim" is allowed to remain in the library instead of "_ZN3tbb19task_scheduler_init10initializeEij"). Reproducible: Always Steps to Reproduce: 1. Build tbb for abi_ppc_32 on a 64-bit system 2. Try to link a 32-bit program using the task_scheduler_init class Actual Results: You get an "undefined reference to tbb::task_scheduler_init::initialize(int, unsigned int)'" link error Expected Results: The program should link correctly
Created attachment 417788 [details, diff] Ebuild patch fixing multilib build of tbb on PowerPC
commit 57a9ac7abe3ebe88b28cd02c2ea6a2621d9f4b6d Author: Justin Lecher <jlec@gentoo.org> Date: Thu Nov 26 11:33:01 2015 +0100 dev-cpp/tbb: Fix MULTILIB_ABI_FLAG on PowerPC thanks Marcus Comstedt for the patch Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566758 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a9ac7abe3ebe88b28cd02c2ea6a2621d9f4b6d