public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: YunQiang Su <wzssyqa@gmail.com>
Cc: YunQiang Su <yunqiang.su@cipunited.com>,
	binutils@sourceware.org, macro@orcam.me.uk,
	paul.hua.gm@gmail.com, jbeulich@suse.com
Subject: Re: [PATCH v4 5/7] MIPS: Fix some ld testcases with compiler
Date: Tue, 20 Jun 2023 12:04:22 +0930	[thread overview]
Message-ID: <ZJEQLmIwlslMIXdW@squeak.grove.modra.org> (raw)
In-Reply-To: <CAKcpw6XDAVYnrnqq=rBecaq6ZDBQUxHdGPrj3aoDSpBuqsYGNQ@mail.gmail.com>

On Tue, Jun 20, 2023 at 09:40:19AM +0800, YunQiang Su wrote:
> How do you build your cross toolchain?

mips64-linux-gnuabi64-gcc (GCC) 13.0.0 20220910 (experimental) was
built using this configuration:
~/src/gcc/configure \
--with-sysroot=/home/gnu/mips64-linux-gnuabi64 \
--prefix=/usr/local \
--target=mips64-linux-gnuabi64 \
--enable-targets=mips-linux-gnu \
--with-mips-plt \
--disable-nls \
--enable-__cxa_atexit \
--enable-initfini-array \
--disable-libsanitizer \
--disable-bootstrap \
--enable-languages=c,c++

glibc64 with
dest=/home/gnu/mips64-linux-gnuabi64
echo slibdir="${dest}"/lib64 > configparms
echo sysconfdir="${dest}"/etc >> configparms
echo sbindir="${dest}"/usr/sbin >> configparms
echo rootsbindir="${dest}"/sbin >> configparms
echo localedir="${dest}"/usr/lib64 >> configparms

libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes \
CC="mips64-linux-gnuabi64-gcc" \
~/src/glibc-current/configure \
    --build=x86_64-linux-gnu \
    --host=mips64-linux-gnuabi64 \
    --prefix="${dest}"/usr \
    --libdir="${dest}"/usr/lib64 \
    --with-headers="${dest}"/usr/include \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=4.0

glibc32 with
dest=/home/gnu/mips64-linux-gnuabi64
echo slibdir="${dest}"/lib > configparms
echo sysconfdir="${dest}"/etc >> configparms
echo sbindir="${dest}"/usr/sbin >> configparms
echo rootsbindir="${dest}"/sbin >> configparms
echo localedir="${dest}"/usr/lib >> configparms

libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes \
CC="mips64-linux-gnuabi64-gcc -mabi=32" \
~/src/glibc-current/configure \
    --build=x86_64-linux-gnu \
    --host=mips-linux-gnu \
    --prefix="${dest}"/usr \
    --libdir="${dest}"/usr/lib \
    --with-headers="${dest}"/usr/include \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=4.0

glibcn32 with
dest=/home/gnu/mips64-linux-gnuabi64
echo slibdir="${dest}"/lib32 > configparms
echo sysconfdir="${dest}"/etc >> configparms
echo sbindir="${dest}"/usr/sbin >> configparms
echo rootsbindir="${dest}"/sbin >> configparms
echo localedir="${dest}"/usr/lib32 >> configparms

libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes \
CC="mips64-linux-gnuabi64-gcc -mabi=n32" \
~/src/glibc-current/configure \
    --build=x86_64-linux-gnu \
    --host=mips64-linux-gnuabi64 \
    --prefix="${dest}"/usr \
    --libdir="${dest}"/usr/lib32 \
    --with-headers="${dest}"/usr/include \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=4.0

mips-linux-gnu-gcc (GCC) 13.0.0 20220910 (experimental) was built with
~/src/gcc/configure \
--with-sysroot=/home/gnu/mips-linux-gnu \
--prefix=/usr/local \
--target=mips-linux-gnu \
--with-mips-plt \
--disable-nls \
--enable-__cxa_atexit \
--disable-libsanitizer \
--disable-bootstrap \
--enable-languages=c,c++

glibc with
dest=/home/gnu/mips-linux-gnu
libc_cv_forced_unwind=yes \
libc_cv_c_cleanup=yes \
libc_cv_ssp=no \
~/src/glibc-current/configure \
    --build=x86_64-linux-gnu \
    --host=mips-linux-gnu \
    --prefix="${dest}"/usr \
    --with-headers="${dest}"/usr/include \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=4.0 \
    --without-selinux \
    --enable-obsolete-rpc \
    --disable-werror

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2023-06-20  2:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-16  6:34 [PATCH v4 0/7] Some MIPS changes and testsuite fixes YunQiang Su
2023-06-16  6:34 ` [PATCH v4 1/7] MIPS: Gas: alter 64 or 32 for mipsisa triples if march is implicit YunQiang Su
2023-06-29 10:12   ` YunQiang Su
2023-06-16  6:34 ` [PATCH v4 2/7] MIPS: Set r6 as default arch if vendor is img YunQiang Su
2023-06-16  6:34 ` [PATCH v4 3/7] MIPS: Fix r6 testsuites YunQiang Su
2023-06-16  6:34 ` [PATCH v4 4/7] MIPS: Fix -gnuabi64 testsuite YunQiang Su
2023-06-16  6:34 ` [PATCH v4 5/7] MIPS: Fix some ld testcases with compiler YunQiang Su
2023-06-19  6:44   ` Alan Modra
2023-06-19 10:43     ` YunQiang Su
2023-06-20  0:00       ` Alan Modra
2023-06-20  1:40         ` YunQiang Su
2023-06-20  2:34           ` Alan Modra [this message]
2023-06-20  3:17             ` YunQiang Su
2023-06-20  3:57               ` Alan Modra
2023-06-21  5:05                 ` YunQiang Su
2023-06-21 10:53                   ` YunQiang Su
2023-06-21 10:59                     ` Xi Ruoyao
2023-06-21 11:03                       ` YunQiang Su
2023-06-29 14:17       ` YunQiang Su
2023-06-20  2:58     ` Alan Modra
2023-07-03  4:00     ` YunQiang Su
2023-06-16  6:34 ` [PATCH v4 6/7] MIPS: Disable fix-rm7000-2 and llpscp-64 if not has_newabi YunQiang Su
2023-06-16  6:34 ` [PATCH v4 7/7] MIPS: Fix Irix gas testcases YunQiang Su
2023-08-15  4:40   ` YunQiang Su
2023-08-15  6:13     ` Jan Beulich
2023-08-15 10:14       ` Maciej W. Rozycki

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=ZJEQLmIwlslMIXdW@squeak.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=jbeulich@suse.com \
    --cc=macro@orcam.me.uk \
    --cc=paul.hua.gm@gmail.com \
    --cc=wzssyqa@gmail.com \
    --cc=yunqiang.su@cipunited.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).