Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851555 - sys-devel/gcc-12.1.1_p20220611 - /.../sched.h: error: attempt to use poisoned calloc
Summary: sys-devel/gcc-12.1.1_p20220611 - /.../sched.h: error: attempt to use poisoned...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-12 13:54 UTC by Toralf Förster
Modified: 2022-12-10 00:39 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.54 KB, text/plain)
2022-06-12 13:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,1.19 KB, text/plain)
2022-06-12 13:54 UTC, Toralf Förster
Details
environment (environment,130.32 KB, text/plain)
2022-06-12 13:54 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.47 KB, application/x-bzip)
2022-06-12 13:54 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,156.20 KB, application/x-bzip)
2022-06-12 13:54 UTC, Toralf Förster
Details
sys-devel:gcc-12.1.1_p20220611:20220612-131256.log.bz2 (sys-devel:gcc-12.1.1_p20220611:20220612-131256.log.bz2,101.09 KB, application/x-bzip)
2022-06-12 13:54 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,134.38 KB, application/x-bzip)
2022-06-12 13:54 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-12 13:54:31 UTC
                 from /var/tmp/portage/sys-devel/gcc-12.1.1_p20220611/work/gcc-12-20220611/libstdc++-v3/include/std/memory:77,
                 from /var/tmp/portage/sys-devel/gcc-12.1.1_p20220611/work/gcc-12-20220611/gcc/../libcody/cody.hh:24,
                 from /var/tmp/portage/sys-devel/gcc-12.1.1_p20220611/work/gcc-12-20220611/gcc/cp/mapper-client.h:26,
                 from /var/tmp/portage/sys-devel/gcc-12.1.1_p20220611/work/gcc-12-20220611/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);
      |       ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220612-150009

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.3.0 *
clang/llvm (if any):
Python 3.9.12
php cli:

  HEAD of ::gentoo
commit 305960a755d68fcd5535f022e8fdd74366bc2fbe
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jun 12 12:48:00 2022 +0000

    2022-06-12 12:47:59 UTC

emerge -qpvO sys-devel/gcc
[ebuild  NS   ] sys-devel/gcc-12.1.1_p20220611 [11.3.0] USE="(cxx) fortran nptl openmp (pie) ssp zstd* (-ada) (-cet) (-custom-cflags) -d -debug -doc (-fixed-point) -go -graphite (-hardened) -jit (-libssp) -lto (-multilib) (-nls) -objc -objc++ -objc-gc (-pch) -pgo (-sanitize) -systemtap -test (-valgrind) -vanilla (-vtv)"
Comment 1 Toralf Förster gentoo-dev 2022-06-12 13:54:32 UTC
Created attachment 784352 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-12 13:54:33 UTC
Created attachment 784355 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-12 13:54:34 UTC
Created attachment 784358 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-12 13:54:36 UTC
Created attachment 784361 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-12 13:54:37 UTC
Created attachment 784364 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-12 13:54:39 UTC
Created attachment 784367 [details]
sys-devel:gcc-12.1.1_p20220611:20220612-131256.log.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-12 13:54:40 UTC
Created attachment 784370 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-26 03:43:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=829d4ff8a5b3cac68554dc3873189704f69f2ae7

commit 829d4ff8a5b3cac68554dc3873189704f69f2ae7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-26 03:42:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-26 03:43:12 +0000

    sys-devel/gcc: update musl patchset for 12.1.1_p20220625
    
    Closes: https://bugs.gentoo.org/851555
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    | 1 +
 sys-devel/gcc/gcc-12.1.1_p20220625.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 9 Larry the Git Cow gentoo-dev 2022-07-03 00:57:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=caa4485a49e1064181e7ac2df2c5476fbb6e9cf5

commit caa4485a49e1064181e7ac2df2c5476fbb6e9cf5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-26 02:26:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-26 02:26:24 +0000

    12.1.0: update musl 50_all_calloc_libgccjit.patch
    
    Closes: https://bugs.gentoo.org/851555
    Signed-off-by: Sam James <sam@gentoo.org>

 12.1.0/musl/50_all_calloc_libgccjit.patch | 30 ++++++++++++++++++++++++++++++
 12.1.0/musl/README.history                |  3 +++
 2 files changed, 33 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2022-08-11 09:00:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=db34375a2a99b865f51349eba2c8c0293f12b953

commit db34375a2a99b865f51349eba2c8c0293f12b953
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-11 08:59:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-11 09:00:41 +0000

    11.4.0: add 50_all_calloc_libgccjit
    
    I could've sworn we added this for 11.x too,
    but apparently I never did for 12.x.
    
    Bug: https://bugs.gentoo.org/828580
    Bug: https://bugs.gentoo.org/851555
    Signed-off-by: Sam James <sam@gentoo.org>

 11.4.0/musl/50_all_calloc_libgccjit.patch | 72 +++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)