[Bug other/96217] undefined reference to `_Unwind_Resume'

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jul 18 15:01:22 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96217

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to LE GARREC Vincent from comment #6)
> My log says :
> 
> >>> Configuring source in /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0 ...
>  * CFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
>  * CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"

I don't think it works.  You can compile GCC compiler with -O0. But
you need to compile GCC run-time at least with -O.  Please add

CFLAGS_FOR_TARGET="-O2 -g"
CXXFLAGS_FOR_TARGET="-O2 -g"


More information about the Gcc-bugs mailing list