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

Refine Makefile.am and Makefile.in #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Refine Makefile.am and Makefile.in #265

wants to merge 1 commit into from

Conversation

zongbox
Copy link
Contributor

@zongbox zongbox commented May 29, 2020

There are two trap.S in the list, if we use '-Wl,--whole-archive' to link libmetal.a, it causes the error of multiple definition.

The error messages as follows:
/scratch/zongl/toolchain/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: /scratch/zongl/tmp/freedom-e-sdk/bsp/freedom-e31
0-arty/install/lib/debug//libmetal.a(trap.o): in function .L0 ': /scratch/zongl/tmp/freedom-e-sdk/freedom-metal/src/trap.S:20: multiple definition of _metal_trap'; /scratch/zongl/tmp/freedom-e-sdk/bsp/freedom-e310-arty/install/lib/debug//libmetal.a(trap.o):/scratch/zongl/tmp/free
dom-e-sdk/freedom-metal/src/trap.S:20: first defined here
/scratch/zongl/toolchain/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: /scratch/zongl/tmp/freedom-e-sdk/bsp/freedom-e31
0-arty/install/lib/debug//libmetal.a(trap.o): in function .L0 ': /scratch/zongl/tmp/freedom-e-sdk/freedom-metal/src/trap.S:64: multiple definition of early_trap_vector'; /scratch/zongl/tmp/freedom-e-sdk/bsp/freedom-e310-arty/install/lib/debug//libmetal.a(trap.o):/scratch/zongl/tm
p/freedom-e-sdk/freedom-metal/src/trap.S:64: first defined here

There are two trap.S in the list, if we use '-Wl,--whole-archive' to
link libmetal.a, it causes the error of multiple definition.

Signed-off-by: Zong Li <zong.li@sifive.com>
Reported-by: Jerry Shih <jerry.shih@sifive.com>
zongbox pushed a commit that referenced this pull request Jun 14, 2021
Add make target to open local documentation
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

Successfully merging this pull request may close these issues.

1 participant