Author Topic: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC  (Read 2658 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
So, I am playing with musl. Anyone has ever used it?

Quote
Introduction to musl

Say it like   “mussel” or “muscle”
Provides the   standard C/POSIX library and extensions
Licensed under   permissive MIT license
Use it on   Linux x86, x86_64, ARM, MIPS, Microblaze, PowerPC
Use it for   the next generation of Linux-based devices
musl provides consistent quality and implementation behavior from tiny embedded systems to full-fledged servers. Minimal machine-specific code means less chance of breakage on minority architectures and better success with “write once run everywhere” C development.

You can see here a comparison of C/POSIX standard library implementations for Linux.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: nz
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #1 on: May 24, 2017, 08:51:36 am »
It does what it says on the tin.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #2 on: May 24, 2017, 09:58:25 am »
It does what it says on the tin.

well, I'd like to hear experiences IF you have used it.
Here I am trying to replace uclibc.

I am currently working on a stage4-musl, and ... it requires a special overlay
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: nz
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #3 on: May 24, 2017, 10:13:25 am »
Used it in places where it was the standard C lib. I haven't integrated it into something new myself.

Have you seen this?
 
The following users thanked this post: chickenHeadKnob

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #4 on: May 24, 2017, 10:36:07 am »
Not yet (thanks for the link), I am more focused on catalyst.
I have to reduce the ( sizeof(rootfs)  < 64MB ) used in a product I am working at  :popcorn:
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #5 on: May 25, 2017, 01:03:36 pm »
Maybe I will give it a try, although my own embedded projects have always used newlib instead, be it Linux, bare metal embedded on Cortex-M, or my own operating system project (as libk, supporting libkcxx based on LLVM libc++ and libkobjc based on GNUstep libobjc2. My kernel is written in Objective-C).
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #6 on: May 25, 2017, 02:28:27 pm »
Critical mass, that's the issue.  Are there sufficient numbers of developers using the library to discovery the ugly bits and is there a place where they are discussed? 

ucLibc has been around a long time and the fact that there hasn't been any upgrades in 3+ years (mentioned in video, I don't really know) might mean that it is finally stable.

It wouldn't be a good thing if there were weekly versions of any libc.  I remember Linux back about 12 or 13 years ago where it seemed like I was getting a kernel update just about every week.  Ordinarily, that wouldn't be a problem except that I had to rebuild the nvidia graphics drivers for every kernel update.

Stability and maturity are important considerations.  Look at the revision history.

 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC
« Reply #7 on: May 25, 2017, 09:51:40 pm »
ucLibc has been around a long time and the fact that there hasn't been any upgrades in 3+ years (mentioned in video, I don't really know) might mean that it is finally stable.

bah, I wouldn't judge by when the last commit was issued, from my point of view there is still no stable uclibc-stage3 for PPC and MIPS (I don't know about ARM and X86). I mean with catalyst (gentoo) you still have to invest your effort to fix things related to uclibc.

edit:
but hey? at least crossdev is now able to crosscompile (host=ppc-glibc target=ppc-uclibc) at the first try, say "progress" :D
« Last Edit: May 25, 2017, 09:55:36 pm by legacy »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf