Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566758 - dev-cpp/tbb-4.3.20150611-r1: arch not set according to MULTILIB_ABI_FLAG on PowerPC
Summary: dev-cpp/tbb-4.3.20150611-r1: arch not set according to MULTILIB_ABI_FLAG on P...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-11-24 22:46 UTC by Marcus Comstedt
Modified: 2015-11-26 10:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch fixing multilib build of tbb on PowerPC (tbb-ppc-multilib-fix.patch,338 bytes, patch)
2015-11-24 22:48 UTC, Marcus Comstedt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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