public inbox for
 help / color / mirror / Atom feed
From: Gary Oblock <>
To: Tamar Christina <>,
	Gary Oblock via Gcc-help <>
Subject: Re: More configure fun...
Date: Thu, 23 Jun 2022 19:36:19 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>


OK thanks I'll look into that. But I'm now curious about the caveat about
not being able to debug the compiler. Could explain the reason?
You well know that I'm an optimization guy and that I might get sucked into
trying figure out why what I built is behaving in some manner or the other
and possibly doing something about it.

Thanks again.


From: Tamar Christina <>
Sent: Thursday, June 23, 2022 7:43 AM
To: Gary Oblock via Gcc-help <>; Gary Oblock <>
Subject: Re: More configure fun...

[EXTERNAL EMAIL NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.]

Hi Gary,

It looks like your original zephyr toolchain was built with crosstool-NG, have you considered using that to build your updated one?

crosstool-ng does make it very easy to build a full cross toolchain. If you don't need to debug it it's probably by far the easiest way. You just fill in the target and options and it does the rest.


From: Gcc-help <> on behalf of Gary Oblock via Gcc-help <>
Sent: Thursday, June 23, 2022 6:57 AM
To: Gary Oblock via Gcc-help <>
Subject: More configure fun...

I'm trying to configure a GCC 12 cross build like this:

../sources/configure --prefix=$BASE/install --disable-bootstrap --enable-language=c --disable-multilib --target=arm-zephyr-eabi --with-sysroot=/home/garyzepher/zephyr/lib/libc --disable-shared --enable-__cxa_atexit --disable-tm-clone-registry --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --enable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-target-optspace --disable-nls --enable-multiarch --with-multilib-list=rmprofile --enable-languages=c,c++ --with-gnu-ld --with-gnu-as --enable-initfini-array

The original cross compiler (GCC 10 based was configured like this:

../sources/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=arm-zephyr-eabi --prefix=/workdir/build/output/arm-zephyr-eabi --exec_prefix=/workdir/build/output/arm-zephyr-eabi --with-local-prefix=/workdir/build/output/arm-zephyr-eabi/arm-zephyr-eabi --with-headers=/workdir/build/output/arm-zephyr-eabi/arm-zephyr-eabi/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG' --enable-__cxa_atexit --disable-tm-clone-registry --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/workdir/build/build_arm/.build/arm-zephyr-eabi/buildtools --with-mpfr=/workdir/build/build_arm/.build/arm-zephyr-eabi/buildtools --with-mpc=/workdir/build/build_arm/.build/arm-zephyr-eabi/buildtools --with-isl=/workdir/build/build_arm/.build/arm-zephyr-eabi/buildtools --enable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-target-optspace --disable-nls --enable-multiarch --with-multilib-list=rmprofile --enable-languages=c,c++ --with-gnu-ld --with-gnu-as --enable-initfini-array

All those --with-* parameters don't seem to correlate with anything in the SDK and I
haven't got a clue as of yet how to build a cross binutils for a Zephyer OS for the Arm Thumb-2

The build error I'm seeing at the ends of the log is:
The directory that should contain system headers does not exist:
make[2]: *** [Makefile:3255: stmp-fixinc] Error 1
make[2]: Leaving directory '/home/gary/gcc_build_cross/objdir/gcc'
make[1]: *** [Makefile:4527: install-gcc] Error 2
make[1]: Leaving directory '/home/gary/gcc_build_cross/objdir'
make: *** [Makefile:2439: install] Error 2

These are the closest looking include directories that I have. If any of them will
do what parameter lets me use it?

fcntl.h  sys

errno.h  fcntl.h  sys

assert.h  bits  ctype.h  errno.h  fcntl.h  inttypes.h  limits.h  math.h  stdbool.h  stdint.h  stdio.h  stdlib.h  string.h  strings.h  sys  time.h




CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to Ampere Computing or its subsidiaries. It is to be used solely for the purpose of furthering the parties' business relationship. Any unauthorized review, copying, or distribution of this email (or any attachments thereto) is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.

  reply	other threads:[~2022-06-23 19:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23  5:57 Gary Oblock
2022-06-23 14:43 ` Tamar Christina
2022-06-23 19:36   ` Gary Oblock [this message]
2022-06-26 16:14     ` Tamar Christina

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:

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

  git send-email \ \ \ \ \

* 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).