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

ld first defined here #1

Open
gangstervano opened this issue Apr 9, 2021 · 2 comments
Open

ld first defined here #1

gangstervano opened this issue Apr 9, 2021 · 2 comments

Comments

@gangstervano
Copy link

Hi!

I can't compile with the following command:

mkdir -p clapack/BUILD && cd clapack/BUILD && cmake .. && make -j 5

At the time of linking, an error is returned:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/xlintsts.dir/sdrvgb.c.o:(.bss+0x20): повторное определение «srnamc_»; CMakeFiles/xlintsts.dir/xerbla.c.o:(.bss+0x20): здесь первое определение
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/xlintsts.dir/sdrvpo.c.o:(.bss+0x0): повторное определение «infoc_»; CMakeFiles/xlintsts.dir/xerbla.c.o:(.bss+0x0): здесь первое определение
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/xlintsts.dir/sdrvpo.c.o:(.bss+0x20): повторное определение «srnamc_»; CMakeFiles/xlintsts.dir/xerbla.c.o:(.bss+0x20): здесь первое определение

etc.

What could be the reason?

I use gcc , ld, cmake, and make of the following versions

$ gcc --version
gcc (Gentoo 10.2.0-r5 p6) 10.2.0

$ ld --version
GNU ld (Gentoo 2.35.1 p2) 2.35.1

$ cmake --version
cmake version 3.18.5

$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu

@nshmyrev
Copy link
Contributor

nshmyrev commented Apr 9, 2021

This is from the test binaries. In the scripts we do not build tests between.

@gangstervano
Copy link
Author

gangstervano commented Apr 9, 2021

Can I ignore this error?
Can I continue to execute commands from RUN
https://github.com/alphacep/vosk-api/blob/master/travis/Dockerfile.manylinux
?

find . -name "*.a"

Finds the following libraries:

./BLAS/SRC/libblas.a
./SRC/liblapack.a
./TESTING/MATGEN/libtmglib.a
./F2CLIBS/libf2c/libf2c.a

Are they enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants