* [devel] I: ipxe: cross-binutils/cross-gcc from fedora is harmful
@ 2018-12-01 1:15 ` Dmitry V. Levin
2018-12-01 1:21 ` [devel] I: edk2: " Dmitry V. Levin
1 sibling, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2018-12-01 1:15 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]
Hi,
On Fri, Nov 30, 2018 at 11:36:15AM +0000, ALT beekeeper wrote:
> ipxe-1:20180825-alt1.git133f4c47
> x86_64-linux-gnu-ld: bin-i386-efi/version.ipxe.efi.o: unable to initialize decompress
> status for section .debug_info
> bin-i386-efi/version.ipxe.efi.o: file not recognized: File format not recognized
> make[1]: *** [Makefile.housekeeping:1188: bin-i386-efi/ipxe.efi.tmp] Error 1
> make[1]: *** Waiting for unfinished jobs....
> gcc -Wall -W -Wformat-nonliteral -fno-stack-protector -fno-dwarf2-cfi-asm -fno-exceptions
> -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address -fno-PIE -no-pie -O2
> -g -idirafter include -DEFI_TARGET32 util/elf2efi.c -o util/elf2efi32
> rm bin-i386-efi/version.ipxe.efi.o
> make: *** [Makefile.housekeeping:267: bin-i386-efi/ipxe.efi] Error 2
> error: Bad exit status from /usr/src/tmp/rpm-tmp.25794 (%build)
Для исправления этого пакета следует внести следующие изменения в спек:
--- ipxe.spec.orig 2018-11-27 20:07:41.000000000 +0000
+++ ipxe.spec 2018-12-01 01:05:10.930989197 +0000
@@ -24,7 +24,7 @@
Group: Networking/Other
Url: http://ipxe.org/
#Vcs-Git: git://git.ipxe.org/ipxe.git
-ExclusiveArch: %{ix86} x86_64
+ExclusiveArch: x86_64
Provides: gpxe
Obsoletes: gpxe
@@ -33,7 +33,6 @@
Requires: ipxe-bootimgs
BuildRequires: mkisofs mtools syslinux binutils-devel edk2-tools
-BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu
BuildRequires: liblzma-devel
%description
@@ -113,7 +112,6 @@
NO_WERROR=1 \
V=1 \
GITVERSION=%hash \
- CROSS_COMPILE=x86_64-linux-gnu- \
"$@"
}
Удаление binutils-x86_64-linux-gnu, gcc-x86_64-linux-gnu и
CROSS_COMPILE=x86_64-linux-gnu- нужно собственно для устранения причины
ошибки, а ограничение ExclusiveArch до x86_64 нужно для того, чтобы не
собирать noarch-пакеты на других архитектурах.
Я давно и неоднократно предупреждал, что использование цельнотянутого
cross-binutils и cross-gcc из федоры до добра не доведёт.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread