Skip to content

Failed to build openocd #11

@hexaglow

Description

@hexaglow

When running ./build.sh, I get the following error while openocd is being build:

/usr/bin/ld: src/.libs/libopenocd.a(libocdjtagdrivers_la-bitbang.o):/home/matt/clones/rocket-tools/riscv-openocd/build/../src/jtag/drivers/bitbang.h:60: multiple definition of `bitbang_swd'; src/.libs/libopenocd.a(libocdjtagdrivers_la-remote_bitbang.o):/home/matt/clones/rocket-tools/riscv-openocd/build/../src/jtag/drivers/bitbang.h:60: first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:2968: src/openocd] Error 1
gmake[1]: *** [Makefile:4285: all-recursive] Error 1
gmake: *** [Makefile:1999: all] Error 2

I'm using GCC 10.1.1 on Fedora 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions