wezm / freebsd-cross-build

(Cross) Compile FreeBSD binaries on Linux
https://www.wezm.net/technical/2019/03/cross-compile-freebsd-rust-binary-with-docker/
Apache License 2.0
17 stars 5 forks source link

Docker build error #4

Open hustclf opened 3 years ago

hustclf commented 3 years ago

I Got a error after run docker build -t freebsd-cross ..

output:

#25 70.77    "v<sseintprefix>scatterq<ssemodesuffix>\t{%3, %5%{%1%}|%5%{%1%}, %3}"
#25 70.77      ~~~~~~~~~^~~~~~~~~~~~~
#25 71.92 /bin/bash ../../gcc/../move-if-change tmp-automata.c insn-automata.c
#25 71.94 echo timestamp > s-automata
#25 98.65 rm gcc.pod
#25 98.65 make[2]: Leaving directory '/src/gcc-6.4.0/build/gcc'
#25 98.68 make[1]: *** [Makefile:4129: all-gcc] Error 2
#25 98.74 make[1]: Leaving directory '/src/gcc-6.4.0/build'
#25 98.76 make: *** [Makefile:876: all] Error 2
------
executor failed running [/bin/sh -c mkdir -p /src/gcc-6.4.0/build &&     cd /src/gcc-6.4.0/build &&     ../configure --without-headers --with-gnu-as --with-gnu-ld --disable-nls         --enable-languages=c,c++ --enable-libssp --enable-ld         --disable-libitm --disable-libquadmath --target=x86_64-pc-freebsd12         --prefix=/freebsd --with-gmp=/freebsd         --with-mpc=/freebsd --with-mpfr=/freebsd --disable-libgomp &&     LD_LIBRARY_PATH=/freebsd/lib make -j7 &&     make install]: exit code: 2
wezm commented 3 years ago

I just ran docker build -t freebsd-cross . successfully on my machine, with a checkout of current master (6e7a8b6). Can you provide any more details about you env and what commit of this repo you were on?

hustclf commented 3 years ago
➜  freebsd-cross-build git:(master) git rev-parse --short HEAD
6e7a8b6

I also use the latest version of master.

When I replace LD_LIBRARY_PATH=/freebsd/lib make -j7 && \ to LD_LIBRARY_PATH=/freebsd/lib make && \ in Dockerfile, it succeed, but I do not know why.