ghaerr / elks

Embeddable Linux Kernel Subset - Linux for 8086
Other
1.02k stars 108 forks source link

Building ELKS in macOS Sequoia 15.0 #2039

Closed Vutshi closed 1 month ago

Vutshi commented 1 month ago

Hi @ghaerr,

I updated macOS to the latest version, hoping to fix my (probably) buggy Intel GPU driver. Now, Command Line Tools seem to be rearranged, and I’m getting this error while building ELKS:

ia16-elf-gcc -mcmodel=small -melks-libc -mtune=i8086 -Wall -Os -mno-segment-relocation-stuff -fno-inline -fno-builtin-printf  -o basic basic.o host.o host-ibmpc.o asm-ibmpc.o 
flex -I -8 scan.l
mv lex.yy.c scan.c
expect 1 shift/reduce conflict
yacc -d bc.y
xcode-select: Failed to locate 'yacc', requesting installation of command line developer tools.
make[2]: *** [y.tab.h] Error 72
make[1]: *** [all] Error 1
make: *** [all] Error 2

It appears there is some kind of yacc:

which yacc
/usr/bin/yacc

But if I run it a CLT update request pops up:

yacc
xcode-select: Failed to locate 'yacc', requesting installation of command line developer tools.

CLT is already updated and clang works well.

Configuration

Additional information I found somewhat related information about missing yacc after update to CLT 15.3. However, I don't understand what do they propose to do about it.

ghaerr commented 1 month ago

Hi @Vutshi, I'm traveling but will look into this when I can. A quick for now would be to remove bc from line 23 of elkscmd/Makefile, and also comment out line 199 bc/bc in elkscmd/Applications, which will allow the build to continue.

I suppose another "fix" would be to commit a copy of the yacc .c output, so that running yacc isn't necessary - I'll look into that also.

Vutshi commented 1 month ago

Thx, the workaround worked. I can hear the train's steam hissing.