public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/58446] New: Support for musl libc
@ 2013-09-17 17:10 gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:11 ` [Bug target/58446] " gcc-bug-espfv4bhi9 at gregor dot im
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
Bug ID: 58446
Summary: Support for musl libc
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bug-espfv4bhi9 at gregor dot im
Created attachment 30829
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30829&action=edit
gcc/ arch-generic configuration and fixes for musl
The attached patches add support for targeting the musl C library for Linux,
http://musl-libc.org/
The patches are:
gcc-config-musl.diff: Addition of -mmusl (akin to -mglibc, -muclibc, -mbionic)
for musl libc support, as well as support for using the musl ld.so, patch to
stddef.h for musl size_t support, etc. Most controversially, redefines the
include dir ordering iff musl is the default target.
gomp-posix.diff: Not directly related to musl, a fix to libgomp to make it
properly specify required POSIX version.
gcc-config-dliterate.diff: gcc_cv_target_dl_iterate_phdr=yes for musl
libssp.diff: Support for libcs which provide libssp functions in libc (of which
musl is the only example at present)
x86.diff, arm.diff, mips.diff, powerpc.diff, aarch64.diff: ld.so specification
for each target and related fixes.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:11 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:12 ` gcc-bug-espfv4bhi9 at gregor dot im
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #1 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30830
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30830&action=edit
Fix for gomp to specify _POSIX_SOURCE requirements
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:11 ` [Bug target/58446] " gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:12 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #2 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30831
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30831&action=edit
gcc_cv_target_dl_iterate_phdr=yes on musl (note that due to a bug in making
these .diffs, the configure.ac change is in libssp.diff ...)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:11 ` [Bug target/58446] " gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:12 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #3 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30832
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30832&action=edit
libssp support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (3 preceding siblings ...)
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #4 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30833
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30833&action=edit
x86/x86_64 support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (2 preceding siblings ...)
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #5 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30834
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30834&action=edit
arm support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (5 preceding siblings ...)
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:15 ` gcc-bug-espfv4bhi9 at gregor dot im
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #7 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30836
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30836&action=edit
powerpc support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (4 preceding siblings ...)
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #6 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30835
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30835&action=edit
mips support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (6 preceding siblings ...)
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 17:15 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 20:10 ` joseph at codesourcery dot com
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 17:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #8 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30837
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30837&action=edit
aarch64 support for musl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (7 preceding siblings ...)
2013-09-17 17:15 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-17 20:10 ` joseph at codesourcery dot com
2013-09-17 20:13 ` gcc-bug-espfv4bhi9 at gregor dot im
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: joseph at codesourcery dot com @ 2013-09-17 20:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Tue, 17 Sep 2013, gcc-bug-espfv4bhi9 at gregor dot im wrote:
> libssp.diff: Support for libcs which provide libssp functions in libc (of which
> musl is the only example at present)
glibc provides libssp functions since version 2.4. Apparently some people
have a use for building libssp anyway (see bug 58312), but I'd think the
build / installation of libssp should be disabled by default for glibc
targets. (Though given this is a per-multilib matter, disabling may mean
just avoiding building / installing anything rather than completely
disabling the directory at toplevel.)
Likewise, according to gcc/configure.ac, Bionic, and uClibc configured
with __UCLIBC_HAS_SSP__.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (8 preceding siblings ...)
2013-09-17 20:10 ` joseph at codesourcery dot com
@ 2013-09-17 20:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 13:59 ` gcc-bug-espfv4bhi9 at gregor dot im
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-17 20:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
--- Comment #11 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Aha. I didn't realize such a setting already existed; I'll test and update my
patch later today to use the existing mechanism. Thanks for the info.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (9 preceding siblings ...)
2013-09-17 20:13 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-19 13:59 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 14:00 ` gcc-bug-espfv4bhi9 at gregor dot im
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-19 13:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #30831|0 |1
is obsolete| |
Attachment #30832|0 |1
is obsolete| |
--- Comment #12 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30864
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30864&action=edit
Changes to gcc/configure.ac for musl
Making libssp use the same system as everything else. (I'll leave the
whether-to-build-libssp debate to future generations :) )
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (10 preceding siblings ...)
2013-09-19 13:59 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-19 14:00 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 14:01 ` gcc-bug-espfv4bhi9 at gregor dot im
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-19 14:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #30834|0 |1
is obsolete| |
--- Comment #13 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30865
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30865&action=edit
arm support for musl
This change to arm.diff adds support for musl's -eb and -hf linkers
(/lib/ld-musl-arm[eb][hf].so.1)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (11 preceding siblings ...)
2013-09-19 14:00 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2013-09-19 14:01 ` gcc-bug-espfv4bhi9 at gregor dot im
2014-03-09 0:41 ` david.heidelberger at ixit dot cz
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: gcc-bug-espfv4bhi9 at gregor dot im @ 2013-09-19 14:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #30835|0 |1
is obsolete| |
--- Comment #14 from Gregor Richards <gcc-bug-espfv4bhi9 at gregor dot im> ---
Created attachment 30866
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30866&action=edit
mips support for musl
And the equivalent change for MIPS (/lib/ld-musl-mips[el].so.1)
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (12 preceding siblings ...)
2013-09-19 14:01 ` gcc-bug-espfv4bhi9 at gregor dot im
@ 2014-03-09 0:41 ` david.heidelberger at ixit dot cz
2015-07-14 9:08 ` nsz at gcc dot gnu.org
2015-07-14 9:36 ` nsz at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: david.heidelberger at ixit dot cz @ 2014-03-09 0:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
David Heidelberger (okias) <david.heidelberger at ixit dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.heidelberger at ixit dot cz
--- Comment #15 from David Heidelberger (okias) <david.heidelberger at ixit dot cz> ---
in which state is musl patches integration?
btw. here is also old bug #55807
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (13 preceding siblings ...)
2014-03-09 0:41 ` david.heidelberger at ixit dot cz
@ 2015-07-14 9:08 ` nsz at gcc dot gnu.org
2015-07-14 9:36 ` nsz at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: nsz at gcc dot gnu.org @ 2015-07-14 9:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
nsz at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lu_zero at gentoo dot org
--- Comment #16 from nsz at gcc dot gnu.org ---
*** Bug 55807 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/58446] Support for musl libc
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
` (14 preceding siblings ...)
2015-07-14 9:08 ` nsz at gcc dot gnu.org
@ 2015-07-14 9:36 ` nsz at gcc dot gnu.org
15 siblings, 0 replies; 17+ messages in thread
From: nsz at gcc dot gnu.org @ 2015-07-14 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58446
nsz at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nsz at gcc dot gnu.org
--- Comment #17 from nsz at gcc dot gnu.org ---
gcc-trunk has most of the musl support patches (not backported yet to any
release branch), the current state:
libitm fix:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222325
fixincludes support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222327
unwind support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222328
gthread support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222329
config changes:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222904
stdint changes:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222905
aarch64 support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=223766
arm support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=223749
mips support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222915
x86 support:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=223218
microblaze support: not yet committed
https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00437.html
powerpc support: not yet committed
https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01640.html
sh support: not yet committed
https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01636.html
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2015-07-14 9:36 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-17 17:10 [Bug target/58446] New: Support for musl libc gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:11 ` [Bug target/58446] " gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:12 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:14 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 17:15 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-17 20:10 ` joseph at codesourcery dot com
2013-09-17 20:13 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 13:59 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 14:00 ` gcc-bug-espfv4bhi9 at gregor dot im
2013-09-19 14:01 ` gcc-bug-espfv4bhi9 at gregor dot im
2014-03-09 0:41 ` david.heidelberger at ixit dot cz
2015-07-14 9:08 ` nsz at gcc dot gnu.org
2015-07-14 9:36 ` nsz at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).