openSUSE / hwinfo

Hardware information tool
GNU General Public License v2.0
256 stars 69 forks source link

../src/libhd.a: member ../src/libhd.a(bios.o) in archive is not an object #87

Open sebma opened 4 years ago

sebma commented 4 years ago

Hi,

Cannot build ../src/libhd.so.21.70 :

$ echo $CC
arm-linux-gnueabihf-gcc
$ pwd
/home/sebastien/src/openSUSE/hwinfo
$ make
make[1]: Entering directory '/home/sebastien/src/openSUSE/hwinfo/src'
make[2]: Entering directory '/home/sebastien/src/openSUSE/hwinfo/src/hd'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/sebastien/src/openSUSE/hwinfo/src/hd'
make[2]: Entering directory '/home/sebastien/src/openSUSE/hwinfo/src/isdn'
make[3]: Entering directory '/home/sebastien/src/openSUSE/hwinfo/src/isdn/cdb'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/sebastien/src/openSUSE/hwinfo/src/isdn/cdb'
make[2]: Leaving directory '/home/sebastien/src/openSUSE/hwinfo/src/isdn'
make[2]: Entering directory '/home/sebastien/src/openSUSE/hwinfo/src/ids'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/sebastien/src/openSUSE/hwinfo/src/ids'
arm-linux-gnueabihf-gcc -shared -O2 -Wall -Wno-pointer-sign -pipe -g   -I/home/sebastien/src/openSUSE/hwinfo/src/hd -O2 -Wall -Wno-pointer-sign -pipe -g -fPIC  -I../src/hd  -Lsrc -Wl,--whole-archive ../src/libhd.a -Wl,--no-whole-archive \
    -Wl,-soname=libhd.so.21 \
    -o ../src/libhd.so.21.70 -luuid -lx86emu 
../src/libhd.a: member ../src/libhd.a(bios.o) in archive is not an object
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target '../src/libhd.so.21.70' failed
make[1]: *** [../src/libhd.so.21.70] Error 1
make[1]: Leaving directory '/home/sebastien/src/openSUSE/hwinfo/src'
Makefile.common:52: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2
$ echo $?
2

Can you please help me ?

wfeldt commented 4 years ago

I think it possibly doesn't know about your build architecture. __aarch64__ is supported, I haven't tried on 32 bit arm.