ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] I: ipxe: cross-binutils/cross-gcc from fedora is harmful
Date: Sat, 1 Dec 2018 04:15:49 +0300
Message-ID: <20181201011549.GA9595@altlinux.org> (raw)
In-Reply-To: <20181130113615.GA19307@gyle.altlinux.org>

[-- 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 --]

       reply	other threads:[~2018-12-01  1:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-01  1:15 ` Dmitry V. Levin [this message]
2018-12-01  1:21 ` [devel] I: edk2: " Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181201011549.GA9595@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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