public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* More configure fun...
@ 2022-06-23  5:57 Gary Oblock
  2022-06-23 14:43 ` Tamar Christina
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Oblock @ 2022-06-23  5:57 UTC (permalink / raw)
  To: Gary Oblock via Gcc-help

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 1.24.0.378_e011758' --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
ISA.

The build error I'm seeing at the ends of the log is:
.
.
.
The directory that should contain system headers does not exist:
  /home/gary/zephyr/zephyr/lib/libc/usr/include
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?

./zephyr/lib/libc/arcmwdt/include
fcntl.h  sys

./zephyr/lib/libc/newlib/include
errno.h  fcntl.h  sys

./zephyr/lib/libc/minimal/include
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

./zephyr/lib/libc/armstdc/include
stdint.h

😯

Gary



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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-26 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23  5:57 More configure fun Gary Oblock
2022-06-23 14:43 ` Tamar Christina
2022-06-23 19:36   ` Gary Oblock
2022-06-26 16:14     ` Tamar Christina

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