[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#644662: Fails to build if GCC does not have libssp support



tag 644662 + moreinfo
thanks

On Fri, Oct 07, 2011 at 06:12:48PM -0400, Kyle Moffett wrote:
> Source: eglibc
> Version: 2.13-21
> Severity: normal
> Tags: upstream patch
> 
> The attached patch fixes detection of GCC -fstack-protector and libssp.
> 
> In order to properly detect whether or not GCC has -fstack-protect
> support built in, you actually need to link something.  Otherwise
> GCC will accept the option and fail during the link due to missing
> libssp.

This looks like a broken GCC. Either -fstack-protector support so that
the option is disabled (or rather returns a warning, but catched by the
configure script), or libssp should be installed properly.


> This occurs in particular when trying to bootstrap a cross-compiler for
> a new Debian port; the stage2 cross-compiler does not have libssp
> support causing "undefined reference to `__stack_chk_guard'" errors
> when building EGLIBC.
> 

If it doesn't have libssp, wouldn't it be possible to disable the stack
protector option?

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: