Skip to content

error: ld returned 1 exit status #25

@KarelWintersky

Description

@KarelWintersky
$ make
g++ -O3 -std=c++11 -Wall -Werror   -c -o ethq.o ethq.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o interface.o interface.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o parser.o parser.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_generic.o drv_generic.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_bcm.o drv_bcm.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_emulex.o drv_emulex.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_intel.o drv_intel.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_mellanox.o drv_mellanox.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_amazon.o drv_amazon.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_virtio.o drv_virtio.cc
g++ -O3 -std=c++11 -Wall -Werror   -c -o drv_vmware.o drv_vmware.cc
g++ -o ethq ethq.o ethtool++.o interface.o parser.o util.o drv_generic.o drv_bcm.o drv_emulex.o drv_intel.o drv_mellanox.o drv_amazon.o drv_virtio.o drv_vmware.o -O3 -std=c++11 -Wall -Werror -s -lncurses -ltinfo
/usr/bin/ld: ethtool++.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: util.o: relocation R_X86_64_32 against symbol `_ZNSt12system_errorD1Ev@@GLIBCXX_3.4.11' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: util.o: warning: relocation against `__errno_location@@GLIBC_2.2.5' in read-only section `.text'
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ethq] Error 1

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