Bug 13331 - openrc-0.42.1 compilation failure on gcc-10
Summary: openrc-0.42.1 compilation failure on gcc-10
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.08.2
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-23 16:27 UTC by mscdex
Modified: 2020-11-23 21:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Fix for GCC 10 (1.61 KB, patch)
2020-11-23 16:27 UTC, mscdex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mscdex 2020-11-23 16:27:20 UTC
Created attachment 8676 [details]
Fix for GCC 10

Host machine: Ubuntu 18.04
Buildroot version: 2020.08.2
Target: i586-buildroot-linux-musl-gcc (GCC 10.2.0)

Trying to build OpenRC 0.42.1 fails when compiling with GCC 10.x. It evidently will also fail with prior major versions when the '-fno-common' flag is explicitly used (this flag seems to be the default now on GCC 10.x, hence the failure).

I've attached a patch I found from Gentoo that fixes this issue.
Comment 1 Heiko Thiery 2020-11-23 19:20:21 UTC
I send a patch for including the fix.

https://patchwork.ozlabs.org/project/buildroot/patch/20201123191729.2557-1-heiko.thiery@gmail.com/

Thank you
Comment 2 Peter Korsgaard 2020-11-23 21:48:04 UTC
Fixed in master by Heiko's patch, thanks