[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mxe fails to compile
From: |
|
Subject: |
Re: mxe fails to compile |
Date: |
Thu, 15 Aug 2024 08:00:45 +0200 |
--- original message ---
From: " " <Cedric.dewijs@eclipso.eu>
Date: 15.08.2024 07:59:57
To: <mingw-cross-env-list@nongnu.org>
Subject: mxe fails to compile
I'm trying to cross compile Sigrok/pulseview using this guide:
http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/mingw/README;h=43d05f282c2b721d7e0c0bf2f3d2bfde31e426fb;hb=HEAD
One of the first steps is to compile mxe, but I can't get it to work.
I'm running Arch linux, lxde on Xorg, with this kernel:
$ uname -a
Linux cedric 6.10.2-arch1-2 #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17
+0000 x86_64 GNU/Linux
On the command line I see this error:
$ git clone https://github.com/mxe/mxe.git mxe-git
$ cd mxe-git/
$ make MXE_TARGETS=x86_64-w64-mingw32.static.posix
MXE_PLUGIN_DIRS=plugins/examples/qt5-freeze
gcc glib libzip libusb1 libftdi1 hidapi glibmm qtbase qtimageformats qtsvg
qttranslations boost check gendef libieee1284
qtbase_CONFIGURE_OPTS='-no-sql-mysql'
[create settings.mk]
make: Warning: File 'Makefile' has modification time 7133 s in the future
[check reqs]
[download] binutils-2.38.tar.bz2
[nonet lib] /home/cedric/mxe-git/usr/x86_64-pc-linux-gnu/lib/nonetwork.so
[git-log] 9f349e0d openssl: github is the new download source
[build] mxe-conf x86_64-w64-mingw32.static.posix
[done] mxe-conf x86_64-w64-mingw32.static.posix
0 KiB 0m2.537s
[download] ccache-3.6.tar.xz
[build] mxe-conf x86_64-pc-linux-gnu
[done] mxe-conf x86_64-pc-linux-gnu
0 KiB 0m2.561s
[build] ccache x86_64-pc-linux-gnu
[done] ccache x86_64-pc-linux-gnu
4468 KiB 0m5.235s
[build] ccache x86_64-w64-mingw32.static.posix
[done] ccache x86_64-w64-mingw32.static.posix
2220 KiB 0m2.572s
[build] binutils x86_64-w64-mingw32.static.posix
[done] binutils x86_64-w64-mingw32.static.posix
563712 KiB 0m41.585s
[download] mingw-w64-v12.0.0.tar.bz2
[build] mingw-w64 x86_64-w64-mingw32.static.posix
[done] mingw-w64 x86_64-w64-mingw32.static.posix
0 KiB 0m2.552s
[download] gmp-6.3.0.tar.xz
[build] gmp x86_64-pc-linux-gnu
[done] gmp x86_64-pc-linux-gnu
32160 KiB 0m20.996s
[download] isl-0.24.tar.bz2
[build] isl x86_64-pc-linux-gnu
[done] isl x86_64-pc-linux-gnu
70552 KiB 0m16.150s
[download] mpfr-4.2.1.tar.xz
[build] mpfr x86_64-pc-linux-gnu
[done] mpfr x86_64-pc-linux-gnu
18772 KiB 0m14.051s
[download] mpc-1.3.1.tar.gz
[build] mpc x86_64-pc-linux-gnu
[done] mpc x86_64-pc-linux-gnu
7344 KiB 0m6.609s
[download] gcc-11.4.0.tar.xz
[build] gcc x86_64-w64-mingw32.static.posix
Failed to build package gcc for target x86_64-w64-mingw32.static.posix!
------------------------------------------------------------
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[2]: Leaving directory
'/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0.build_'
make[1]: *** [Makefile:903: build-only-gcc_x86_64-w64-mingw32.static.posix]
Error 2
make[1]: Leaving directory '/home/cedric/mxe-git'
real 0m26.509s
user 0m54.197s
sys 0m20.267s
------------------------------------------------------------
[log] /home/cedric/mxe-git/log/gcc_x86_64-w64-mingw32.static.posix
make: *** [Makefile:891:
/home/cedric/mxe-git/usr/x86_64-w64-mingw32.static.posix/installed/gcc]
Error 1
/usr/bin/ld: cannot find glib: No such file or directory
/usr/bin/ld: cannot find libzip: No such file or directory
/usr/bin/ld: cannot find libusb1: No such file or directory
/usr/bin/ld: cannot find libftdi1: No such file or directory
/usr/bin/ld: cannot find hidapi: No such file or directory
/usr/bin/ld: cannot find glibmm: No such file or directory
/usr/bin/ld: cannot find qtbase: No such file or directory
/usr/bin/ld: cannot find qtimageformats: No such file or directory
/usr/bin/ld: cannot find qtsvg: No such file or directory
collect2: error: ld returned 1 exit status
bash: qttranslations: command not found
[cedric@cedric mxe-git]$
In /home/cedric/mxe-git/log/gcc_x86_64-w64-mingw32.static.posix I see this
error:
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/../include
-W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
-pedantic -D_GNU_SOURCE -fcf-protection
/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/sort.c
-o sort.o
../../../gcc-11.4.0/libiberty/simple-object-mach-o.c: In function
‘simple_object_mach_o_write_segment’:
../../../gcc-11.4.0/libiberty/simple-object-mach-o.c:1231:17: error: passing
argument 1 of ‘set_32’ from incompatible pointer type
[-Wincompatible-pointer-types]
1231 | set_32 (&index[i], index[i]);
| ^~~~~~~~~
| |
| unsigned int *
../../../gcc-11.4.0/libiberty/simple-object-mach-o.c:1231:17: note: expected
‘unsigned char *’ but argument is of type ‘unsigned int *’
make[3]: *** [Makefile:1308: simple-object-mach-o.o] Error 1
make[3]: *** Waiting for unfinished jobs....
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/../include
-W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
-pedantic -D_GNU_SOURCE -fcf-protection -fpic
/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/physmem.c
-o pic/physmem.o; \
else true; fi
checking for fread_unlocked... if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/../include
-W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
-pedantic -D_GNU_SOURCE -fcf-protection -fpic
/home/cedric/mxe-git/tmp-gcc-x86_64-w64-mingw32.static.posix/gcc-11.4.0/libiberty/pex-common.c
-o pic/pex-common.o; \
else true; fi
________________________________________________________
Your E-Mail. Your Cloud. Your Office. eclipso Mail Europe.
https://www.eclipso.eu
________________________________________________________
Your E-Mail. Your Cloud. Your Office. eclipso Mail Europe.
https://www.eclipso.eu