Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

collect2.exe: error: ld returned 1 exit status  #344

@nicolast0604

Description

@nicolast0604

C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.3.0/../../../../i686-w64-mingw32/bin/ld.exe: ../gnulib/import/libgnu.a(getrandom.o): in function getrandom': C:/msys64/home/nicol/riscv-gnu-toolchain/riscv-gdb/gnulib/import/getrandom.c:129: undefined reference to BCryptGenRandom@16'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1866: gdb.exe] Error 1
make[3]: Leaving directory '/home/nicol/riscv-gnu-toolchain/build-gdb-newlib/gdb'
make[2]: *** [Makefile:10078: all-gdb] Error 2
make[2]: Leaving directory '/home/nicol/riscv-gnu-toolchain/build-gdb-newlib'
make[1]: *** [Makefile:866: all] Error 2
make[1]: Leaving directory '/home/nicol/riscv-gnu-toolchain/build-gdb-newlib'
make: *** [Makefile:499: stamps/build-gdb-newlib] Error 2

nicol@LAPTOP-M1F3S9SG MINGW32 ~/riscv-gnu-toolchain

I already added the following according to the previous issues discussion, but it still happened.
readline/readline/terminal.c to add "#define NEED_EXTERN_PC"

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