Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building ELKS in macOS Sequoia 15.0 #2039

Closed
Vutshi opened this issue Sep 25, 2024 · 2 comments · Fixed by #2046
Closed

Building ELKS in macOS Sequoia 15.0 #2039

Vutshi opened this issue Sep 25, 2024 · 2 comments · Fixed by #2046
Labels
bug Defect in the product

Comments

@Vutshi
Copy link

Vutshi commented Sep 25, 2024

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

  • ELKS 0.8
  • macOS 15.0, Command Line Tools (CLT) 16.0

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.

@Vutshi Vutshi added the bug Defect in the product label Sep 25, 2024
@ghaerr
Copy link
Owner

ghaerr commented Sep 25, 2024

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
Copy link
Author

Vutshi commented Sep 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect in the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants