mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Building for m68k
@ 2020-04-23  2:05 Tom Storey
  2020-04-23  2:32 ` Rich Felker
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Storey @ 2020-04-23  2:05 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

Hi all.

Is anyone out there particularly familiar with building musl for the m68k?

I was able to successfully build it, but then later discovered that it
would appear to be targeting 68020+ processors more specifically. I would
like to build for the earlier 680[01]0's.

Specific examples are to do with (at least) aio where some atomic
instructions are used (e.g. cas - compare and swap) which only exist for
the 68020 and later, but not for earlier processors.

https://git.musl-libc.org/cgit/musl/tree/src/aio/aio.c#n375
https://git.musl-libc.org/cgit/musl/tree/arch/m68k/atomic_arch.h

Thus, adding -m68000 to the CFLAGS env variable when trying to do a rebuild
results in a failure complaining that the 68020+ is required. I dont know
what else is hiding away in the rest of it that will also be
incompatible... :-)

Any suggestions, pointers, tips would be greatly appreciated.

Thanks
Tom

[-- Attachment #2: Type: text/html, Size: 1273 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-24  2:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  2:05 [musl] Building for m68k Tom Storey
2020-04-23  2:32 ` Rich Felker
2020-04-23  5:04   ` Tom Storey
2020-04-23 16:30     ` Rich Felker
2020-04-24  0:36       ` Tom Storey
2020-04-24  0:51         ` Rich Felker
2020-04-24  1:14           ` Tom Storey
2020-04-24  1:20             ` Rich Felker
2020-04-24  2:29               ` Tom Storey
2020-04-24  2:37                 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).