Skip to content

Instantly share code, notes, and snippets.

@xpqz
Created March 3, 2022 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xpqz/2d722bfe58ea0b1cd20a2d1ea39da6f3 to your computer and use it in GitHub Desktop.
Save xpqz/2d722bfe58ea0b1cd20a2d1ea39da6f3 to your computer and use it in GitHub Desktop.
Run make k-libc
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/make a N=k-libc R=k O='-O3 -march=native -Dlibc' L='-lm' STRIP=true
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/0.o -c 0.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/1.o -c 1.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/2.o -c 2.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/3.o -c 3.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/a.o -c a.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/b.o -c b.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/e.o -c e.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/f.o -c f.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/h.o -c h.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/i.o -c i.c
mkdir -p o/k-libc;cc @opts -O3 -march=native -Dlibc -o o/k-libc/j.o -c j.c
j.c:19:55: fatal error: adding 'int' to a string does not append to the string [-Wstring-plus-int]
S I jp(Qp)_(s++;W(*p&&*p++==*s++)!*p)S A0(jt,jp("true"+1)?au+1:0)S A0(jf,jp("false"+1)?au:0)S A0(jN,jp("null"+1)?_R(cn[td]):0)
~~~~~~^~
./a.h:67:39: note: expanded from macro 'A0'
#define A0(f,b...) A f( )_(b)
^
./a.h:5:28: note: expanded from macro '_'
#define _(a...) {return({a;});}
^
j.c:19:55: note: use array indexing to silence this warning
S I jp(Qp)_(s++;W(*p&&*p++==*s++)!*p)S A0(jt,jp("true"+1)?au+1:0)S A0(jf,jp("false"+1)?au:0)S A0(jN,jp("null"+1)?_R(cn[td]):0)
^
& [
./a.h:67:39: note: expanded from macro 'A0'
#define A0(f,b...) A f( )_(b)
^
./a.h:5:28: note: expanded from macro '_'
#define _(a...) {return({a;});}
^
1 error generated.
make[1]: *** [o/k-libc/j.o] Error 1
make: *** [k-libc] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment