Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946866 - sys-devel/gcc-14.2.1_p20241116 fails to build with USE=hardened
Summary: sys-devel/gcc-14.2.1_p20241116 fails to build with USE=hardened
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: http://0x0.st/8ret.txt
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-23 17:34 UTC by useless
Modified: 2024-12-30 16:31 UTC (History)
2 users (show)

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


Attachments
build log (build.log.gz,689.04 KB, application/gzip)
2024-12-23 17:44 UTC, useless
Details

Note You need to log in before you can comment on or make changes to this bug.
Description useless 2024-12-23 17:34:54 UTC
gcc-14 fails building gcc-14 with USE=hardened

Reproducible: Always

Steps to Reproduce:
1. set my use flags as below
2. emerge -av gcc
3. after long build time, fails to complete
Actual Results:  
fails to build

Expected Results:  
build should compelete successfully

 sys-devel/gcc-14.2.1_p20241116:14::gentoo  USE="(cxx) (default-stack-clash-protection) (default-znow) fortran go graphite hardened* (multilib) nls openmp (pie) sanitize ssp zstd -ada -cet (-custom-cflags) -d -debug -doc (-fixed-point) (-ieee-long-double) -jit (-libssp) -lto -modula2 -objc -objc++ -objc-gc (-pch) -pgo -rust -systemtap -test (-time64) -valgrind -vanilla -vtv"
Comment 1 useless 2024-12-23 17:44:54 UTC
Created attachment 914800 [details]
build log
Comment 2 Jory A. Pratt gentoo-dev 2024-12-24 01:11:42 UTC
/var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/work/gcc-14-20241116/libgo/runtime/proc.c: In function ‘runtime_gogo’:
/var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/work/gcc-14-20241116/libgo/runtime/proc.c:293:9: error: implicit declaration of function ‘fixcontext’; did you mean ‘setcontext’? [-Wimplicit-function-declaration]
  293 |         fixcontext(ucontext_arg(&newg->context[0]));
      |         ^~~~~~~~~~
      |         setcontext
/var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/work/gcc-14-20241116/libgo/runtime/proc.c: In function ‘runtime_mstart’:
/var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/work/gcc-14-20241116/libgo/runtime/proc.c:558:9: error: implicit declaration of function ‘initcontext’; did you mean ‘setcontext’? [-Wimplicit-function-declaration]
  558 |         initcontext();
      |         ^~~~~~~~~~~
      |         setcontext
make[8]: *** [Makefile:1531: runtime/proc.lo] Error 1

so people do not have to dig threw entire log to see error
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-24 09:25:25 UTC
```
 [31;01m*[0m Please include /var/tmp/portage/sys-devel/gcc-14.2.1_p20241116/
work/gcc-build-logs.tar.xz in your bug report.
```

Please upload that tarball.