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 failure with clang #4

Open
jserv opened this issue Jun 7, 2015 · 2 comments
Open

Build failure with clang #4

jserv opened this issue Jun 7, 2015 · 2 comments

Comments

@jserv
Copy link
Owner

jserv commented Jun 7, 2015

While building xv6 with clang, tools/sign.pl complains:

$ make CC=clang
...
boot block too large: 894 bytes (max 510)
Makefile:119: recipe for target 'out/bootblock' failed

The version of clang:
$ clang --version
Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)

@alsmoreira
Copy link

alsmoreira commented Apr 3, 2018

please use GCC 4.4 instead of GCC 4.6+ to produce smaller files within boot block limit. GCC 4.4 is available in Debian 7.0 (stable). Or in line 40, change O2 to Os

@lynnt
Copy link

lynnt commented Apr 1, 2019

I tried to use GCC 4.4 along Os but it still results into the same result. Do you have any other suggestions by any chance?

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