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

investigate riscv build failure #28

Open
wucke13 opened this issue Oct 14, 2024 · 0 comments
Open

investigate riscv build failure #28

wucke13 opened this issue Oct 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@wucke13
Copy link
Contributor

wucke13 commented Oct 14, 2024

A case for old bintools?

seL4test-riscv64-unknown-linux-gnu> [65/256] Linking C executable kernel/kernel.elf
seL4test-riscv64-unknown-linux-gnu> FAILED: kernel/kernel.elf
seL4test-riscv64-unknown-linux-gnu> : && /nix/store/q04wb4z69ghlc73ld3i2gnmwmg33ir4g-riscv64-unknown-linux-gnu-gcc-wrapper-12.3.0/bin/riscv64-unknown-linux-gnu-gcc --sysroot=/build/source/build -D__KERNEL_64__ -march=rv64imac_zicsr_zifencei -mabi=lp64 -O2 -g -DNDEBUG -D__KERNEL_64__ -march=rv64imac_zicsr_zifencei -mabi=lp64   -static -Wl,--build-id=none -Wl,-n -O2  -nostdlib  -fno-pic  -fno-pie  -DDEBUG  -g  -ggdb  -mcmodel=medany  -msmall-data-limit=1024     -Wl,-T /build/source/build/kernel/linker.lds_pp kernel/CMakeFiles/kernel.elf.dir/src/arch/riscv/head.S.obj kernel/CMakeFiles/kernel.elf.dir/src/arch/riscv/traps.S.obj kernel/CMakeFiles/kernel.elf.dir/kernel_all.c.obj -o kernel/kernel.elf   && :
seL4test-riscv64-unknown-linux-gnu> /nix/store/ai5gda1xvks507ghya3cbysbbgas5sjj-riscv64-unknown-linux-gnu-binutils-2.40/bin/riscv64-unknown-linux-gnu-ld: warning: kernel/kernel.elf has a LOAD segment with RWX permissions
seL4test-riscv64-unknown-linux-gnu> kernel/CMakeFiles/kernel.elf.dir/src/arch/riscv/head.S.obj: in function `.L0 ':
seL4test-riscv64-unknown-linux-gnu> /build/source/kernel/src/arch/riscv/head.S:30:(.boot.text+0xc): dangerous relocation: The addend isn't allowed for R_RISCV_GOT_HI20
seL4test-riscv64-unknown-linux-gnu> kernel/CMakeFiles/kernel.elf.dir/src/arch/riscv/traps.S.obj: in function `trap_entry':
seL4test-riscv64-unknown-linux-gnu> /build/source/kernel/src/arch/riscv/traps.S:94:(.text.traps+0x9c): dangerous relocation: The addend isn't allowed for R_RISCV_GOT_HI20
seL4test-riscv64-unknown-linux-gnu> collect2: error: ld returned 1 exit status
@wucke13 wucke13 self-assigned this Oct 14, 2024
@wucke13 wucke13 added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant