From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from void-ptr.info (unknown [185.44.68.223]) by sourceware.org (Postfix) with ESMTPS id EF519384B80F for ; Wed, 26 May 2021 13:58:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EF519384B80F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=void-ptr.info Authentication-Results: sourceware.org; spf=none smtp.mailfrom=ptr@void-ptr.info Received: from ptr by void-ptr.info with local (Exim 4.94-23-08f2e6366) (envelope-from ) id 1llu3e-0006n2-Bc; Wed, 26 May 2021 16:58:50 +0300 Date: Wed, 26 May 2021 16:58:50 +0300 From: Petr Ovtchenkov To: =?UTF-8?Q?=C3=89rico?= Nogueira Cc: Subject: Re: [PATCH 1/1] support cross compilation Message-ID: <20210526135850.1b967be8@void-ptr.info> In-Reply-To: References: <20210526073239.21270-2-ptr@void-ptr.info> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, KHOP_HELO_FCRDNS, MAY_BE_FORGED, RDNS_DYNAMIC, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2021 13:58:54 -0000 On Wed, 26 May 2021 10:09:31 -0300 =C3=89rico Nogueira wrote: > Hi! Are you sure this is necessary? In Void Linux, we cross compile > elfutils for arm and aarch64 without any issue, and I have built it a > few times for powerpc as well. >=20 Hello! Yes, I am sure. I do not know about you process (check, that you really cross, not run via qemu or like). Build process _run_ i386_gendis to generate headers: if MAINTAINER_MODE noinst_HEADERS +=3D memory-access.h i386_parse.h i386_data.h noinst_PROGRAMS =3D i386_gendis$(EXEEXT) $(srcdir)/%_dis.h: %_defs i386_gendis$(EXEEXT) $(AM_V_GEN)./i386_gendis$(EXEEXT) $< > $@T <=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $(AM_V_at)mv -f $@T $@ else $(srcdir)/%_dis.h: @echo '*** missing $@; configure with --enable-maintainer-mode' @false endif > > +if CROSS > > +i386_gendis_LINK =3D ${CC_FOR_BUILD} ${LDFLAGS} -o $@ > > + > > +$(i386_gendis_OBJECTS): CC=3D${CC_FOR_BUILD} > > +endif =20 > > Isn't this hardcoding an assumption that the build machine is x86? I think no. But this question is for original author: commit 3cbdd387c752999255aea91600b5cfdefbeac7d0 Author: Ulrich Drepper Date: Wed Jan 2 17:44:39 2008 +0000 propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c) to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06) ;)