Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383849 (PR42813) - sys-devel/gcc-4.5.3-r1 broken build w/ parallel libstdc++
Summary: sys-devel/gcc-4.5.3-r1 broken build w/ parallel libstdc++
Status: RESOLVED FIXED
Alias: PR42813
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR36101
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 17:25 UTC by Donnie Berkholz (RETIRED)
Modified: 2017-08-06 10:10 UTC (History)
0 users

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


Attachments
build log (bzip2'ed) (sys-devel:gcc-4.5.3-r1:20110920-155607.log.bz2,141.11 KB, application/octet-stream)
2011-09-20 17:28 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Donnie Berkholz (RETIRED) gentoo-dev 2011-09-20 17:25:44 UTC
The build is broken for sys-devel/gcc-4.5.3-r1 when using parallel libstdc++. GCC PR42813 has some patches. To reproduce, try adding "-fopenmp -D_GLIBCXX_PARALLEL" to CXXFLAGS.

Here's the error:


/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include    -x c++-header -march=core2 -O2 -pipe -w -D_GLIBCXX_PARALLEL -D_GNU_SOURCE -nostdinc++ -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libstdc++-v3/libsupc++ -O2 -g /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libstdc++-v3/include/precompiled/stdc++.h -o x86_64-pc-linux-gnu/bits/stdc++.h.gch/O2g.gch
yes
checking for y1l in -lm... In file included from /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/parallel/algobase.h:40:0,
                 from /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:1227,
                 from /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/algorithm:62,
                 from /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libstdc++-v3/include/precompiled/stdc++.h:64:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/parallel/base.h:37:17: fatal error: omp.h: No such file or directory
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2011-09-20 17:28:04 UTC
Created attachment 287187 [details]
build log (bzip2'ed)
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2011-09-21 01:22:30 UTC
Seems still broken w/ 4.6.1-r1 too.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2011-10-30 02:21:17 UTC
Two of those patches seem to be applied for 4.6.2 already.  I tried the third and still got the failure.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2011-10-30 18:49:46 UTC
The third patch includes a reversion of the second, so that's why it applied.  In reality all these patches were committed to the trunk in Jan 2010, before 4.5 branched, meaning 4.5 and 4.6 contain them already.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2017-08-06 10:10:19 UTC
(In reply to Ryan Hill from comment #4)
> The third patch includes a reversion of the second, so that's why it
> applied.  In reality all these patches were committed to the trunk in Jan
> 2010, before 4.5 branched, meaning 4.5 and 4.6 contain them already.

And all affected versions are now package-masked.