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 fails on arch linux #78

Closed
rain-1 opened this issue Feb 1, 2018 · 3 comments
Closed

build fails on arch linux #78

rain-1 opened this issue Feb 1, 2018 · 3 comments

Comments

@rain-1
Copy link

rain-1 commented Feb 1, 2018

Hello, I am on x86_64 GNU/Linux arch linux.

I did../configure --host=riscv64-unknown-elf but

$ make
gcc -MMD -MP -Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks  -DBBL_PAYLOAD=\"bbl_payload\" -DBBL_LOGO_FILE=\"bbl_logo_file\" -I. -I../pk -I../bbl -I../softfloat -I../dummy_payload -I../machine -I../util -c ../pk/file.c
gcc: error: unrecognized argument in option ‘-mcmodel=medany’
gcc: note: valid arguments to ‘-mcmodel=’ are: 32 kernel large medium small; did you mean ‘medium’?
make: *** [Makefile:302: file.o] Error 1

If I try the gcc command with -mcmodel=medany deleted it give this error:

../pk/file.c: Assembler messages:
../pk/file.c:28: Error: no such instruction: `fence'
@sorear
Copy link

sorear commented Feb 1, 2018

You seem to be trying to build pk/bbl with an x86_64 compiler. Was riscv64-unknown-elf-gcc in PATH at the time of the configure?

@rain-1
Copy link
Author

rain-1 commented Feb 1, 2018

ah I understand, I didn't realize I needed a riscv toolchain to build this. Thank you.

@Crosshairs
Copy link

You seem to be trying to build pk/bbl with an x86_64 compiler. Was riscv64-unknown-elf-gcc in PATH at the time of the configure?

But riscv64-unknown-elf-gcc in PATH at the time of the configure.Why still have the error:unrecognized argument in option ‘-mcmodel=medany’

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