[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mig not cross-building correctly

From: Flávio Cruz
Subject: Re: mig not cross-building correctly
Date: Tue, 5 Dec 2023 01:55:46 -0500

On Tue, Dec 5, 2023 at 1:31 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:

Flávio Cruz, le mar. 05 déc. 2023 01:09:24 -0500, a ecrit:
> I think you need to do: ./configure --target=i686-unknown-linux-gnu.

That is implied by --host=i686-unknown-linux-gnu.

(and using target only also gets sizeof_pointer 8)

From a clean checkout:

~/test  git clone git://git.savannah.gnu.org/hurd/mig.git                                                                                                                                  ✔ │ at 01:51:53 AM
Cloning into 'mig'...
remote: Counting objects: 926, done.
remote: Compressing objects: 100% (293/293), done.
remote: Total 926 (delta 640), reused 909 (delta 630)
Receiving objects: 100% (926/926), 642.35 KiB | 842.00 KiB/s, done.
Resolving deltas: 100% (640/640), done.
 ~/test  cd mig                                                                                                                                                                             ✔ │ at 01:52:02 AM
 ~/test/mig │ on master  autoreconf -i                                                                                                                                                      ✔ │ at 01:52:03 AM
configure.ac:34: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:668: AM_PROG_LEX is expanded from...
configure.ac:34: the top level
configure.ac:39: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:39: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:39: the top level
configure.ac:58: warning: AC_OUTPUT should be used without arguments.
configure.ac:58: You should run autoupdate.
configure.ac:25: installing 'build-aux/compile'
configure.ac:9: installing 'build-aux/config.guess'
configure.ac:9: installing 'build-aux/config.sub'
configure.ac:14: installing 'build-aux/install-sh'
configure.ac:14: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'build-aux/depcomp'
configure.ac: installing 'build-aux/ylwrap'
parallel-tests: installing 'build-aux/test-driver'
 ~/test/mig │ on master  ./configure --host=i686-linux-gnu                                                                                                                                  ✔ │ at 01:52:11 AM
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-linux-gnu-strip... i686-linux-gnu-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for i686-linux-gnu-gcc... i686-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether i686-linux-gnu-gcc accepts -g... yes
checking for i686-linux-gnu-gcc option to enable C11 features... none needed
checking whether i686-linux-gnu-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of i686-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... i686-linux-gnu-gcc -E
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... no
checking whether yytext is a pointer... yes
checking for gawk... (cached) gawk
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mig
config.status: creating tests/Makefile
config.status: creating tests/good/Makefile
config.status: creating tests/generate-only/Makefile
config.status: creating tests/bad/Makefile
config.status: executing depfiles commands
 ~/test/mig │ on master  make cpu.h TARGET_CFLAGS=-I/tools-i686/include                                                                                                                     ✔ │ at 01:52:23 AM
gawk -f ./gensym.awk cpu.sym > cpu.symc
i686-linux-gnu-gcc -S  -I/tools-i686/include -ffreestanding -x c -o cpu.symo cpu.symc
sed -e '/^[^*].*$/d' -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' \
    cpu.symo > cpu.h
rm cpu.symo
 ~/test/mig │ on master  grep sizeof_pointer cpu.h                                                                                                                                          ✔ │ at 01:52:29 AM
#define sizeof_pointer 4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]