chipsalliance / chipsalliance/rocket-tools

duplicate symbol '_bitbang_swd'

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
62
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Building on macOS yields the following error:
```
duplicate symbol '_bitbang_swd' in:
src/.libs/libopenocd.a(libocdjtagdrivers_la-remote_bitbang.o)
src/.libs/libopenocd.a(libocdjtagdrivers_la-bitbang.o)
ld: 1 duplicate symbol for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [src/openocd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
```
Updating `riscv-openocd` solves this issue, but introduces new ones.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the macOS build output and inspect the two archive objects, libocdjtagdrivers_la-remote_bitbang.o and libocdjtagdrivers_la-bitbang.o, named in the linker error. Review the riscv-openocd update mentioned in the issue, then verify that make all completes without the duplicate symbol or the newer reported failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.