* [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
* [devel] I: edk2: cross-binutils/cross-gcc from fedora is harmful
2018-12-01 1:15 ` [devel] I: ipxe: cross-binutils/cross-gcc from fedora is harmful Dmitry V. Levin
@ 2018-12-01 1:21 ` Dmitry V. Levin
1 sibling, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2018-12-01 1:21 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
On Fri, Nov 30, 2018 at 11:36:15AM +0000, ALT beekeeper wrote:
> edk2-20170720-alt3.S1
> /usr/src/RPM/BUILD/edk2-20170720/Build/OvmfX64/RELEASE_GCC49/X64/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Facp.obj:
> file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
> make: *** [GNUmakefile:356:
> /usr/src/RPM/BUILD/edk2-20170720/Build/OvmfX64/RELEASE_GCC49/X64/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/Facp.acpi]
> Error 1
Я давно и неоднократно предупреждал, что использование цельнотянутых
cross-binutils и cross-gcc из федоры до добра не доведёт.
На примере пакета edk2 мы видим проявление несовместимости кривого
/usr/bin/x86_64-linux-gnu-ld из cross-binutils и исправленного /usr/bin/as
из системного binutils.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-01 1:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-01 1:15 ` [devel] I: ipxe: cross-binutils/cross-gcc from fedora is harmful Dmitry V. Levin
2018-12-01 1:21 ` [devel] I: edk2: " Dmitry V. Levin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git