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

Build error #54

Open
Sologix opened this issue Nov 11, 2021 · 6 comments
Open

Build error #54

Sologix opened this issue Nov 11, 2021 · 6 comments

Comments

@Sologix
Copy link

Sologix commented Nov 11, 2021

When I build the latest version (on Windows WSL) I get:

    CC  kernel/boot.c

clang: error: unknown argument: '-fstack-size-section'
Makefile:250: recipe for target 'build/kernel/kernel/boot.o' failed
make: *** [build/kernel/kernel/boot.o] Error 1

@nuta
Copy link
Owner

nuta commented Nov 11, 2021

I guess your clang is too old. Could you try building with a 10.x or newer version?

@Sologix
Copy link
Author

Sologix commented Nov 11, 2021

I used:

sudo apt-get install clang-10

and then:

sudo ln /usr/bin/clang-10 /usr/bin/clang

This works. It compiles. But if fails at the very end:

  SYMBOLS  build/dm.debug.elf
     STRIP  build/dm.elf
make: llvm-objcopy: Command not found
Makefile:407: recipe for target 'build/dm.elf' failed
make: *** [build/dm.elf] Error 127

@nuta
Copy link
Owner

nuta commented Nov 12, 2021

I think you haven't installed LLVM utilities. Please try installing dependencies as described in the following doc:
https://resea.org/docs/getting-started.html

@krishpranav
Copy link

curl: (28) Failed to connect to download.sourceforge.net port 443: Operation timed out
Traceback (most recent call last):
File "/Users/apple/resea/./tools/download-file.py", line 34, in
main()
File "/Users/apple/resea/./tools/download-file.py", line 20, in main
subprocess.check_call(
File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'curl -fsSL https://download.sourceforge.net/sourceforge/libpng/libpng-1.6.37.tar.xz -o /var/folders/q4/3cf0k68s3lq7mkh4dplm7gw40000gn/T/tmpz9mizigz/libpng-1.6.37.tar.xz' returned non-zero exit status 28.
make: *** [libs/third_party/cairo/libpng-1.6.37] Error 1

@krishpranav
Copy link

I am facing this error I am on macOS

@nuta
Copy link
Owner

nuta commented Dec 20, 2021

It's a totally different error. Make sure if curl -fsSL download.sourceforge.net/sourceforge/libpng/libpng-1.6.37.tar.xz | file - succeeds.

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

No branches or pull requests

3 participants