Re: [dev][9base] Compile with musl

From: Peter A. Shevtsov <>
Date: Tue, 27 Nov 2012 15:52:37 +0700

On 26/11/12 at 09:23pm, Galos, David wrote:
> I've attached a patch which allows 9base to be compiled with the
> musl-libc, when CC=musl-gcc and -D__MUSL__ is added to the CFLAGS.
> It's trivial stuff, a few missing headers, a couple changed function
> calls, and it turns out musl defines setjmp as a macro.
> David Galos

I tried to build but got this error on make:
9base build options:
CFLAGS = -c -I. -DPLAN9PORT -DPREFIX="/opt/plan9" -D__MUSL__
LDFLAGS = -static
CC = musl-gcc
make[1]: Entering directory `/home/pshevtsov/Build/9base/lib9'


CC readcons.c
readcons.c:5:9: error: macro names must be identifiers
make[1]: *** [readcons.o] Error 1
make[1]: Leaving directory `/home/pshevtsov/Build/9base/lib9'
make: *** [all] Error 2
Received on Tue Nov 27 2012 - 09:52:37 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 27 2012 - 10:00:07 CET