I run on macos ventura, and my default environment comes with Apple clang version 14.0.3.
Just running make doesn't work:
$ gmake
gmake MAKEFLAGS=-j8 k && gmake MAKEFLAGS=-j8 t #default target
gmake[1]: Entering directory '/Users/mkm/Build/k'
gmake MAKEFLAGS=-j8 a N=k R=k O='-O3 -march=native -Wl,-E' L='-lm -ldl'
gmake[2]: Entering directory '/Users/mkm/Build/k'
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/0.o -c 0.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/1.o -c 1.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/2.o -c 2.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/3.o -c 3.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/4.o -c 4.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/a.o -c a.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/b.o -c b.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/e.o -c e.c
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
gmake[2]: *** [makefile:7: o/k/1.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [makefile:7: o/k/3.o] Error 1
gmake[2]: *** [makefile:7: o/k/4.o] Error 1
gmake[2]: *** [makefile:7: o/k/0.o] Error 1
gmake[2]: *** [makefile:7: o/k/2.o] Error 1
gmake[2]: *** [makefile:7: o/k/b.o] Error 1
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
gmake[2]: *** [makefile:7: o/k/e.o] Error 1
gmake[2]: *** [makefile:7: o/k/a.o] Error 1
gmake[2]: Leaving directory '/Users/mkm/Build/k'
gmake[1]: *** [makefile:4: k] Error 2
gmake[1]: Leaving directory '/Users/mkm/Build/k'
gmake: *** [makefile:3: 0] Error 2
I see in the readme that the recommended way to build on is to pass CC=clang-11 or CC=gcc-10
I'm trying to figure out how to build ngn/k without having to install clang-11 or gcc-10.
I'll report my findings here
I run on macos ventura, and my default environment comes with `Apple clang version 14.0.3`.
Just running `make` doesn't work:
```console
$ gmake
gmake MAKEFLAGS=-j8 k && gmake MAKEFLAGS=-j8 t #default target
gmake[1]: Entering directory '/Users/mkm/Build/k'
gmake MAKEFLAGS=-j8 a N=k R=k O='-O3 -march=native -Wl,-E' L='-lm -ldl'
gmake[2]: Entering directory '/Users/mkm/Build/k'
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/0.o -c 0.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/1.o -c 1.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/2.o -c 2.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/3.o -c 3.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/4.o -c 4.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/a.o -c a.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/b.o -c b.c
mkdir -p o/k;cc @opts -O3 -march=native -Wl,-E -o o/k/e.o -c e.c
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
gmake[2]: *** [makefile:7: o/k/1.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [makefile:7: o/k/3.o] Error 1
gmake[2]: *** [makefile:7: o/k/4.o] Error 1
gmake[2]: *** [makefile:7: o/k/0.o] Error 1
gmake[2]: *** [makefile:7: o/k/2.o] Error 1
gmake[2]: *** [makefile:7: o/k/b.o] Error 1
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
clang: fatal error: -Wl,-E: 'linker' input unused [-Wunused-command-line-argument]
gmake[2]: *** [makefile:7: o/k/e.o] Error 1
gmake[2]: *** [makefile:7: o/k/a.o] Error 1
gmake[2]: Leaving directory '/Users/mkm/Build/k'
gmake[1]: *** [makefile:4: k] Error 2
gmake[1]: Leaving directory '/Users/mkm/Build/k'
gmake: *** [makefile:3: 0] Error 2
```
I see in the readme that the recommended way to build on is to pass `CC=clang-11` or `CC=gcc-10`
I'm trying to figure out how to build ngn/k without having to install clang-11 or gcc-10.
I'll report my findings here