Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 566758

Summary: dev-cpp/tbb-4.3.20150611-r1: arch not set according to MULTILIB_ABI_FLAG on PowerPC
Product: Gentoo Linux Reporter: Marcus Comstedt <marcus>
Component: [OLD] DevelopmentAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: jlec
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild patch fixing multilib build of tbb on PowerPC

Description Marcus Comstedt 2015-11-24 22:46:35 UTC
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
Comment 1 Marcus Comstedt 2015-11-24 22:48:07 UTC
Created attachment 417788 [details, diff]
Ebuild patch fixing multilib build of tbb on PowerPC
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-11-26 10:36:53 UTC
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