From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20618 invoked by alias); 18 May 2016 21:11:57 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 20576 invoked by uid 89); 18 May 2016 21:11:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:10.98.85.194, patrickdepinguingmailcom, patrickdepinguin@gmail.com, bryanhundven@gmail.com X-HELO: mail-pf0-f169.google.com Received: from mail-pf0-f169.google.com (HELO mail-pf0-f169.google.com) (209.85.192.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 18 May 2016 21:11:46 +0000 Received: by mail-pf0-f169.google.com with SMTP id b66so1507652pfb.2 for ; Wed, 18 May 2016 14:11:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=UskD9J8jWHDVudjFGDn5gHbpw32OWrsatzTdJTNu9vY=; b=W0kNFZZ02JC9HjX6hr1itosf6KFdwh7ZO90pWjlmJpq7KLPekj2nYK6LhBnCY65mzK G8UtPDG1ccT7kQB5Prs66c6hCHX2v6oQBppCcLVX2vwA8hRqoSn3+6TpMB6VupGhK8uZ xPjYgHv6c7vuGPLnNsG8+qhqRBlhjzVQXoMUppbOhXhzj0Q7whUn1et+tmggZTV+6FYA Fd0oaTXfDPVl8c/gpKeVwy/U2Oagh3Ww2L93/r1tgiTVeDFn7VAT4uV5tAMW9ZZhXuI0 jw7+z6ldE5dwTGlt1EKLuJEoAyDQivkjUewf0MplZp3DCqIF+9He95yKm6th3C7aM2SJ BkCg== X-Gm-Message-State: AOPr4FXLsZxEwZfE3RdARDwTjx2CLNUYIAIAvBuXk7HGhqgKCEoV/rwwQVi1hGYrtBcOCA== X-Received: by 10.98.85.194 with SMTP id j185mr14082750pfb.68.1463605904766; Wed, 18 May 2016 14:11:44 -0700 (PDT) Received: from [10.0.0.146] (c-98-225-41-26.hsd1.wa.comcast.net. [98.225.41.26]) by smtp.gmail.com with ESMTPSA id 19sm14372346pfu.83.2016.05.18.14.11.43 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 May 2016 14:11:43 -0700 (PDT) Subject: Re: Current state of multilib support (powerpc) Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B492503C-785B-4500-90B5-6FC4F79B7E2E"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Bryan Hundven In-Reply-To: Date: Wed, 18 May 2016 21:11:00 -0000 Cc: crossgcc maillist , Ray Donnelly , Cody P Schafer , "Yann E. MORIN" , Alexey Neyman Message-Id: <06BBAE1D-12F6-4756-8811-6E728E036599@gmail.com> References: <7AA25A17-BFDC-4C29-835B-254A908C8288@gmail.com> To: Thomas De Schampheleire X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00009.txt.bz2 --Apple-Mail=_B492503C-785B-4500-90B5-6FC4F79B7E2E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 3235 (Added Alexey Neyman, who did the multilib work) > On May 18, 2016, at 5:33 AM, Thomas De Schampheleire wrote: >=20 > Hi Bryan, >=20 > On Tue, May 17, 2016 at 3:50 PM, Bryan Hundven w= rote: >>=20 >>> On May 17, 2016, at 6:19 AM, Thomas De Schampheleire wrote: >>>=20 >>> Hi, >>>=20 >>> In 2014 there has been some work on multilib support in crosstool-ng, >>> by Bryan Hundven, Cody P. Schafer, and Ray Donnelly. See e.g. mail >>> threads [1] and [2]. >>>=20 >>> It looks as if this work has not been integrated in crosstool-ng. >>> Meanwhile also the bitbucket branch referenced in the threads no >>> longer exists and I can't find the corresponding branches on github. >>>=20 >>> What is the latest state of this work? >>> Where are the latest patches? >>> What are the remaining problems? >>>=20 >>> I'm currently interested in a multilib toolchain 32/64 bit for >>> Freescale e6500 processors. >>> I ported one of Cody's patches to crosstool-ng 1.22.0 and the build >>> advanced a bit further than with the 1.22.0 baseline, but now breaks >>> at the 'pass-2 core C gcc compiler' step. >>>=20 >>> Thanks, >>> Thomas >>>=20 >>> [1] https://sourceware.org/ml/crossgcc/2014-01/msg00054.html >>> [2] https://sourceware.org/ml/crossgcc/2014-07/msg00014.html >>=20 >> See here: https://github.com/crosstool-ng/crosstool-ng/pull/383 >>=20 >> Please test and review. Alexey, could you help out with this one? >=20 > Interesting, thanks! >=20 > I created a toolchain based on that PR with the following configuration: >=20 > CT_PREFIX_DIR=3D"${CT_TOP_DIR}/targets/${CT_TARGET}" > CT_ARCH_CPU=3D"e6500" > CT_ARCH_64=3Dy > CT_ARCH_powerpc=3Dy > CT_MULTILIB=3Dy > CT_KERNEL_linux=3Dy > CT_KERNEL_V_3_18=3Dy > CT_BINUTILS_EXTRA_CONFIG_ARRAY=3D"--enable-targets=3Dpowerpc-linux,powerp= c64-linux" > CT_CC_GCC_V_4_9_3=3Dy > CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY=3D"--enable-targets=3Dpowerpc-linux,pow= erpc64-linux" > CT_CC_GCC_EXTRA_CONFIG_ARRAY=3D"--enable-targets=3Dpowerpc-linux,powerpc6= 4-linux" > CT_CC_GCC_MULTILIB_LIST=3D"powerpc-linux,powerpc64-linux" > CT_CC_LANG_CXX=3Dy >=20 > The idea is that 32-bit should be the default, without requiring > additional options on the compiler command-line. >=20 > When passing this toolchain to buildroot, applications seems to build > fine in 32-bit (I did not try to run them yet). > The kernel is also correctly built in 64-bit. > However, there is something wrong for u-boot. I get errors like: >=20 > /foo/output/host/usr/bin/powerpc64-unknown-linux-gnu-ld.bfd: > Relocatable linking with relocations from format elf32-powerpc > (arch/powerpc/cpu/mpc8xxx/cpu.o) to format elf64-powerpc > (arch/powerpc/cpu/mpc8xxx/built-in.o) is not supported >=20 > which indicates that the default format used by ld.bfd is 64-bit > rather than 32-bit. If I manually replay this command-line with the > additional -m elf32ppc, it seems to work correctly and a 32-bit > builtin.o is created. >=20 > What am I missing? Why is ld not taking 32-bit as default, while gcc is? >=20 > (I did not post to the github PR because it may all be caused by a > misconfiguration or misunderstanding on my part). >=20 > Thanks, > Thomas --Apple-Mail=_B492503C-785B-4500-90B5-6FC4F79B7E2E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail Content-length: 496 -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJXPNqOAAoJEMrXyPw1uHHRhgsIAIC2/s+9gO81j9DEOtJwmYcO Ie4sUrYrbBALa+jpvL0xZvcB8hv0YeGucqVww+9sH77H84EkfV67COSFl0LS8LJX ZoVfY0CT9uof+NBn+hvOLTeRmFfpcPfqmL0jfLnBrQgFmLLrXvvPujLIgPlckkzX jGV1kekZTFBk1bJvOLKsSeF48BlaBAR4PzisA+/LXTFPwDmfmvJ5xZeqhK/UVZ+M iWPiMhyKH7YtW/UMxtDU1cCjAJlAJX2Zb4S7v9twkmEvsdjbeJMKjghE6z0Dqjiw gJXUAGD8c7z4CAhXI9Dl1I1mmag8qKsMqWWqTCW+gmvGs30be3O3AeJ9z+xdnyk= =kUBz -----END PGP SIGNATURE----- --Apple-Mail=_B492503C-785B-4500-90B5-6FC4F79B7E2E--