Bug 7951

Summary: gcc 4.9.2 fails to build for sparc-buildroot-linux-gnu
Product: buildroot Reporter: Uwe Hermann <uwe>
Component: OtherAssignee: Gustavo Zacarias <gustavo>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: x86_64 Target: sparc-buildroot-linux-gnu
Build:
Attachments: build log
.config

Description Uwe Hermann 2015-03-18 00:03:39 UTC
Created attachment 5931 [details]
build log

gcc 4.9.2 fails to build for sparc-buildroot-linux-gnu (buildroot git HEAD as of today).

In file included from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:17:0:
../../../../libsanitizer/sanitizer_common/sanitizer_internal_defs.h:257:72: error: size of array ‘assertion_failed__865’ is negative
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
                                                                        ^

Full log attached.
Comment 1 Gustavo Zacarias 2015-03-18 10:05:41 UTC
Care to provide a config?
I was able to build qemu_sparc_ss10_defconfig switching to gcc 4.9.2 just fine and it even boots.
Comment 2 Uwe Hermann 2015-03-19 15:40:03 UTC
Yup, qemu_sparc_ss10_defconfig works for me as well. The attached config (based on a fresh checkout, "make menuconfig" and only minimal changes to the config settings) doesn't build for me though.
Comment 3 Uwe Hermann 2015-03-19 15:40:29 UTC
Created attachment 5936 [details]
.config
Comment 4 Gustavo Zacarias 2015-04-16 11:37:26 UTC
Fixed in master commit e0046e533fe22240f6eda7048d2733b01adb15ef
Thanks.