Bug 9411

Summary: MUSL build with RT Error relocating /lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found
Product: buildroot Reporter: Kai <buildroot>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2016.08   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Kai 2016-11-09 17:07:51 UTC
building minimal buildroot with musl + gcc 6.x compiles completely fine.
in the runtime though, all binaries linked against libgcc_s.so.1 fail with i.e.

gbm: Last dlopen error: Error relocating /lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found

This error is also referenced incl. a patch here 

https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00899.html
Comment 1 Thomas Petazzoni 2016-11-25 20:53:13 UTC
Can you give an example Buildroot package that exhibits the problem, so that it's easier for us to reproduce and investigate the issue? Thanks!
Comment 2 Thomas Petazzoni 2018-06-07 15:28:59 UTC
This problem has been fixed in upstream gcc as of commit 6e6c7fc1e15525a10f48d4f5ac2edd853e2f5cb7, which was part of 7.x.

It was backported to the gcc 6.x branch as of commit 0fbe404007e6ef32d4d95c74a6c84b9166946ca3, available since gcc 6.3.0.

And the problem didn't exist in gcc 6.x. Therefore, I'm happy to say that this problem seems to be fixed.