Skip to content

ld first defined here #1

Open
Open
@gangstervano

Description

@gangstervano

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

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