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

Error on compile #142

Open
ctrlaltdel1337 opened this issue Oct 29, 2022 · 4 comments
Open

Error on compile #142

ctrlaltdel1337 opened this issue Oct 29, 2022 · 4 comments

Comments

@ctrlaltdel1337
Copy link

Captura de tela_2022-10-29_16-19-20

@Siguza
Copy link
Member

Siguza commented Oct 29, 2022

EMBEDDED_CFLAGS='-Wno-error'

@iamjeremybe
Copy link

I'm getting the same error, Ubuntu 22.04.1. I saw proposed solutions in other open issues about using various flags, including the ones suggested above, but 'make all' ends either with the errors above, or with this one, which has also been noted in other issues. Haven't found a combo of flags that works for me yet.

src/kernel/mm.c:378:14: warning: variable 'vm_index_start' set but not used [-Wunused-but-set-variable]
    uint32_t vm_index_start = 0;
             ^
src/kernel/mm.c:938:10: warning: variable 'is_tt1' set but not used [-Wunused-but-set-variable]
    bool is_tt1 = false;
         ^
2 warnings generated.
ld: could not process llvm bitcode object file, because /usr/bin/../lib/llvm/libLTO.so could not be loaded file '/tmp/stage3-25a83d.o' for architecture arm64

Ran 'make distclean' followed by 'EMBEDDED_CFLAGS='-Wno-error' make clean all'. Output is attached.
compile_scroll.txt

@Siguza
Copy link
Member

Siguza commented Oct 30, 2022

@iamjeremybe this means there's an issue with your toolchain. Check what version of LLVM your ld64 is built against, and if that is older than the version of clang you're using, rebuild ld64.

@iamjeremybe
Copy link

I'm still learning, so thanks for your patience. How do I check these things?

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