openSUSE / hwinfo

Hardware information tool
GNU General Public License v2.0
259 stars 70 forks source link

[ERROR] error: unrecognized -mtune target: generic (when building on armv7h) #67

Closed Strit closed 6 years ago

Strit commented 6 years ago

I get the above mentioned error when I try building this on arm7h architecture. But not on aarch64.

Here's the output I get from my make command:

cc -c -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16  -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/home/manjaro/build/src/hwinfo-21.53/src/hd -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Lsrc -Lsrc -Lsrc bios.c
cc1: error: unrecognized -mtune target: generic
cc1: note: valid arguments are: arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm7d arm7di arm70 arm700 arm700i arm710 arm720 arm710c arm7100 arm7500 arm7500fe arm7m arm7dm arm7dmi arm8 arm810 strongarm strongarm110 strongarm1100 strongarm1110 fa526 fa626 arm7tdmi arm7tdmi-s arm710t arm720t arm740t arm9 arm9tdmi arm920 arm920t arm922t arm940t ep9312 arm10tdmi arm1020t arm9e arm946e-s arm966e-s arm968e-s arm10e arm1020e arm1022e xscale iwmmxt iwmmxt2 fa606te fa626te fmp626 fa726te arm926ej-s arm1026ej-s arm1136j-s arm1136jf-s arm1176jz-s arm1176jzf-s mpcorenovfp mpcore arm1156t2-s arm1156t2f-s cortex-m1 cortex-m0 cortex-m0plus cortex-m1.small-multiply cortex-m0.small-multiply cortex-m0plus.small-multiply generic-armv7-a cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-a12 cortex-a15 cortex-a17 cortex-r4 cortex-r4f cortex-r5 cortex-r7 cortex-r8 cortex-m7 cortex-m4 cortex-m3 marvell-pj4 cortex-a15.cortex-a7 cortex-a17.cortex-a7 cortex-a32 cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 exynos-m1 xgene1 cortex-a57.cortex-a53 cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53 cortex-a55 cortex-a75 cortex-a75.cortex-a55 cortex-m23 cortex-m33 cortex-r52 native
make[2]: *** [../../Makefile.common:44: bios.o] Error 1
make[2]: Leaving directory '/home/manjaro/build/src/hwinfo-21.53/src/hd'
make[1]: *** [../Makefile.common:52: subdirs] Error 2
make[1]: Leaving directory '/home/manjaro/build/src/hwinfo-21.53/src'
make: *** [Makefile.common:52: subdirs] Error 2
make: Leaving directory '/home/manjaro/build/src/hwinfo-21.53'
wfeldt commented 6 years ago

Not defined in the project's Makefile. From RPM_OPT_FLAGS?

Strit commented 6 years ago

Not sure what you are saying here.

It worked in a previous version. I could build 21.52 on armv7h.

Where would I find the RPM_OPT_FLAGS on Arch Linux?

wfeldt commented 6 years ago

If you search the project you won't find -mtune anywhere.

Usually such options sneak in when you build the package with rpm. There's a system-wide RPM_OPT_FLAGS defined in /usr/lib/rpm/macros.

Strit commented 6 years ago

I don't build with rpm, I build with makepkg on Arch. But it seems that it says generic because it can't find armv7h in the list og supported architectures, while it does find arm and aarch64.

Is it possible to add armv7h to that list?

wfeldt commented 6 years ago

Possibly; I don't use Arch Linux.

Strit commented 6 years ago

Nevermind. Found out it's happening on other packages too, so it's not hwinfo's fault. It's my system. I'll dig deeper.

Sorry for the noise. My fault. :frowning_face: