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

Unable to build the project #12

Open
maroueneboubakri opened this issue Jan 18, 2021 · 2 comments
Open

Unable to build the project #12

maroueneboubakri opened this issue Jan 18, 2021 · 2 comments

Comments

@maroueneboubakri
Copy link

I was trying the project, but was unable to build using the latest toolchain version.

/opt/riscv/lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: build/lib/rv32imac/libfemto.a(trap.o):(.data.riscv_intr_names+0x0): multiple definition of `riscv_intr_names'; build/lib/rv32imac/libfemto.a(memory.o):(.bss.riscv_intr_names+0x0): first defined here
/opt/riscv/lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: build/lib/rv32imac/libfemto.a(trap.o):(.data.riscv_excp_names+0x0): multiple definition of `riscv_excp_names'; build/lib/rv32imac/libfemto.a(memory.o):(.bss.riscv_excp_names+0x0): first defined here
collect2: error: ld returned 1 exit status
Makefile:126: recipe for target 'build/bin/rv32imac/default/memory' failed
make: *** [build/bin/rv32imac/default/memory] Error 1

My GCC version is:

$ riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/opt/riscv/libexec/gcc/riscv64-unknown-linux-gnu/10.2.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /home/nxf45729/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/opt/riscv --with-sysroot=/opt/riscv/sysroot --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=.././riscv-gcc --enable-multilib --with-abi=lp64d --with-arch=rv64imafdc --with-tune=rocket 'CFLAGS_FOR_TARGET=-O2   -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2   -mcmodel=medlow'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (GCC)

Thanks

@maroueneboubakri
Copy link
Author

This commit fixes it:
1e009d5

Thanks @axel-h

@axel-h
Copy link

axel-h commented Jan 18, 2021

You may want to pick all commit from of PR #9

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

2 participants