Bug 7951 - gcc 4.9.2 fails to build for sparc-buildroot-linux-gnu
Summary: gcc 4.9.2 fails to build for sparc-buildroot-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: Gustavo Zacarias
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 00:03 UTC by Uwe Hermann
Modified: 2015-04-16 11:37 UTC (History)
1 user (show)

See Also:
Host: x86_64
Target: sparc-buildroot-linux-gnu
Build:


Attachments
build log (33.68 KB, text/plain)
2015-03-18 00:03 UTC, Uwe Hermann
Details
.config (42.19 KB, text/plain)
2015-03-19 15:40 UTC, Uwe Hermann
Details

Note You need to log in before you can comment on or make changes to this bug.
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.