minoca / os

Minoca operating system
Other
2.71k stars 231 forks source link

mac toolchain problems #140

Closed willmafh closed 6 years ago

willmafh commented 6 years ago

Is there anyone can help? I am trying to build minoca OS on my Mac and I've spent almost one day, but still failed... This is my OS version...

screen shot 2018-01-01 at 10 20 45 pm

The following is the error:

screen shot 2018-01-01 at 10 21 59 pm

Please help...

evangreen commented 6 years ago

I'm in the process of trying to upgrade my macOS and XCode, but I'm in a location with slow internet access, so I may be a little while. Until I'm able to get my system matching yours, you may be able to make progress by commenting out the offending lines, and setting Result to -1.

willmafh commented 6 years ago

Thank you for your response @evangreen ...I just want to make sure that the process I've made was right ... I downloaded the macOS toolchain from the website and then mv x86dbg in learnCCPP, the parent dir of os, then I cd into os to source setenv.sh to let the system find the tools in x86dbg, and then I use make to compile the system ... It compiled very well for a while, then encountered the problem I've showed above ... I used to think that the compiler can't find header files in the toolchain, so I added option -isystem to gcc in minoca.mk and it worked, so it continued to compile, but soon another strange error appeared ... I don't know how to fix it ... Hope this can give you more information ... Waiting for your solution, Thank you ....

evangreen commented 6 years ago

I pushed 1bdc1eda4bb2ed19a3f0a2fd53b6919f8ae3c54c, give it a try now.