Closed sari777 closed 10 months ago
downgrade gcc to -v 7
ok. i will do this and let you know.
I also ran into this issue. I made this simple Dockerfile to build the project
FROM ubuntu:20.04
RUN set -ex && \
apt-get update && \
apt-get --yes install build-essential git libgmp-dev && \
git clone https://github.com/albertobsd/keysubtracter.git && \
cd keysubtracter && \
make
WORKDIR /keysubtracter
ENTRYPOINT ["./keysubtracter"]
an you please resolve this issue. it is during make. on ubuntu linux "gcc -O3 -c sha256/sha256.c -o sha256.o gcc -O3 -c base58/base58.c -o base58.o gcc -O3 -c rmd160/rmd160.c -o rmd160.o gcc -O3 -c gmpecc.c -o gmpecc.o gcc -O3 -c util.c -o util.o gcc -o keysubtracter keysubtracter.c gmpecc.o util.o sha256.o base58.o rmd160.o -lgmp /usr/bin/ld: gmpecc.o:(.bss+0x2020): multiple definition of EC'; /tmp/ccw0Inn5.o:(.bss+0x0): first defined here /usr/bin/ld: gmpecc.o:(.bss+0x0): multiple definition of DoublingG'; /tmp/ccw0Inn5.o:(.bss+0x40): first defined here /usr/bin/ld: gmpecc.o:(.bss+0x2000): multiple definition of `G'; /tmp/ccw0Inn5.o:(.bss+0x20): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:7: default] Error 1"