Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885049 - sys-devel/gcc-11.3.1_p20221202 - In file included from /usr/include/pthread.h:30, from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/x86_64-gentoo-linux-musl/bits/gthr-default.h:35, [...] /usr/include/sched.h:84:7: error: attempt to use poisone
Summary: sys-devel/gcc-11.3.1_p20221202 - In file included from /usr/include/pthread.h...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-09 13:34 UTC by ernsteiswuerfel
Modified: 2023-01-24 20:12 UTC (History)
1 user (show)

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


Attachments
build.log.xz (gcc-11.3.1_p20221202:20221206-141338.log.xz,36.30 KB, application/x-xz)
2022-12-09 13:34 UTC, ernsteiswuerfel
Details
emerge --info (file_885049.txt,7.34 KB, text/plain)
2022-12-09 13:34 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-12-09 13:34:18 UTC
Created attachment 841101 [details]
build.log.xz

This is on a amd64 musl system. sys-devel/gcc-11.3.1_p... builds ok with GCC 10, GCC 11 but not with GCC 12.

[...]
/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libcody  -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libbacktrace   -o cp/mangle.o -MT cp/mangle.o -MMD -MP -MF cp/.deps/mangle.TPo /var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/cp/mangle.c
x86_64-gentoo-linux-musl-g++ -std=c++11  -fno-PIE -c -fno-PIE   -DIN_GCC_FRONTEND  -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Icp -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/cp -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../include -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libcody  -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libbacktrace   -o cp/mapper-client.o -MT cp/mapper-client.o -MMD -MP -MF cp/.deps/mapper-client.TPo /var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/cp/mapper-client.cc
In file included from /usr/include/pthread.h:30,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/x86_64-gentoo-linux-musl/bits/gthr-default.h:35,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/x86_64-gentoo-linux-musl/bits/gthr.h:148,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/ext/atomicity.h:35,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/bits/shared_ptr_base.h:61,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/bits/shared_ptr.h:53,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/12/include/g++-v12/memory:76,
                 from /var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/../libcody/cody.hh:24,
                 from /var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/cp/mapper-client.h:26,
                 from /var/tmp/portage/sys-devel/gcc-11.3.1_p20221202/work/gcc-11-20221202/gcc/cp/mapper-client.cc:34:
/usr/include/sched.h:84:7: error: attempt to use poisoned "calloc"
   84 | void *calloc(size_t, size_t);
      |       ^
/usr/include/sched.h:124:36: error: attempt to use poisoned "calloc"
  124 | #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
      |                                    ^
make[3]: *** [Makefile:1137: cp/mapper-client.o] Error 1
Comment 1 ernsteiswuerfel archtester 2022-12-09 13:34:48 UTC
Created attachment 841103 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-09 13:38:35 UTC
I guess https://gitweb.gentoo.org/proj/gcc-patches.git/tree/11.4.0/musl/50_all_calloc_libgccjit.patch is incomplete and we need to pull in more bits from https://gitweb.gentoo.org/proj/gcc-patches.git/tree/12.1.0/musl/50_all_calloc_libgccjit.patch?id=1acb0022d8e6578a26985b0016757581e43af072 (it's fixed upstream now).

Could you try figure out which bits we're missing?
Comment 3 ernsteiswuerfel archtester 2022-12-09 13:53:58 UTC
(In reply to Sam James from comment #2)
> Could you try figure out which bits we're missing?
Ok, I'll check it out and report back my findings the next few days.
Comment 4 ernsteiswuerfel archtester 2023-01-24 20:12:54 UTC
Current stable gcc-11.3.1 build of now with current stable gcc-12.2.1.

Thanks Sam!