Code Monkey home page Code Monkey logo

mingw-w64-build's People

Contributors

ankit-agarwal1999 avatar thp avatar tmm1 avatar utoni avatar zeranoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mingw-w64-build's Issues

how to build v2.x MINGW_W64

Failed to build with MINGW-W64_BRANCH="V2.X" 。

error (configure in mingw-w64-crt):
configure: error: Please check if the mingw-w64 header set and the build/host option are set properly.

Question

When I am using this build-script, It failed because of binutils.
Here is the build.log.
Initialized empty Git repository in /workspace/build/mingw-w64-build-master/src/mingw-w64-git/.git/ 2018-01-30 08:41:34 URL:http://ftp.gnu.org/gnu/binutils/binutils-2.29.1.tar.bz2 [29123355/29123355] -> "binutils-2.29.1.tar.bz2" [1] 2018-01-30 08:42:23 URL:http://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz [62312628/62312628] -> "gcc-7.2.0.tar.xz" [1] 2018-01-30 08:42:41 URL:http://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz [1946336/1946336] -> "gmp-6.1.2.tar.xz" [1] 2018-01-30 08:42:45 URL:http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.6.tar.xz [1133672/1133672] -> "mpfr-3.1.6.tar.xz" [1] 2018-01-30 08:42:48 URL:http://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz [669925/669925] -> "mpc-1.0.3.tar.gz" [1] patching file libstdc++-v3/config/os/mingw32-w64/os_defines.h checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-w64-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for gawk... gawk checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... unsupported checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs checking for isl 0.16, 0.15, or deprecated 0.14... no recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated checking for isl 0.16 or 0.15... no checking for default BUILD_CONFIG... checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... no /workspace/build/mingw-w64-build-master/src/binutils-2.29.1/missing: line 81: makeinfo: command not found checking for expect... expect checking for runtest... no checking for ar... ar checking for as... as checking for dlltool... no checking for ld... ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... objcopy checking for objdump... objdump checking for readelf... readelf checking for x86_64-w64-mingw32-cc... no checking for x86_64-w64-mingw32-gcc... no checking for x86_64-w64-mingw32-c++... no checking for x86_64-w64-mingw32-g++... no checking for x86_64-w64-mingw32-cxx... no checking for x86_64-w64-mingw32-gxx... no checking for x86_64-w64-mingw32-gcc... no checking for x86_64-w64-mingw32-gfortran... no checking for x86_64-w64-mingw32-gccgo... no checking for x86_64-w64-mingw32-ar... no checking for x86_64-w64-mingw32-as... no checking for x86_64-w64-mingw32-dlltool... no checking for x86_64-w64-mingw32-ld... no checking for x86_64-w64-mingw32-lipo... no checking for x86_64-w64-mingw32-nm... no checking for x86_64-w64-mingw32-objcopy... no checking for x86_64-w64-mingw32-objdump... no checking for x86_64-w64-mingw32-ranlib... no checking for x86_64-w64-mingw32-readelf... no checking for x86_64-w64-mingw32-strip... no checking for x86_64-w64-mingw32-windres... no checking for x86_64-w64-mingw32-windmc... no checking where to find the target ar... just compiled checking where to find the target as... just compiled checking where to find the target cc... pre-installed checking where to find the target c++... pre-installed checking where to find the target c++ for libstdc++... pre-installed checking where to find the target dlltool... just compiled checking where to find the target gcc... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target gccgo... pre-installed checking where to find the target ld... just compiled checking where to find the target lipo... pre-installed checking where to find the target nm... just compiled checking where to find the target objcopy... just compiled checking where to find the target objdump... just compiled checking where to find the target ranlib... just compiled checking where to find the target readelf... just compiled checking where to find the target strip... just compiled checking where to find the target windres... just compiled checking where to find the target windmc... just compiled checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile make[1]: Entering directory /workspace/build/mingw-w64-build-master/bld/binutils'
make[1]: Nothing to be done for `all-target'.
mkdir -p -- ./intl
mkdir -p -- ./zlib
mkdir -p -- ./libiberty
mkdir -p -- ./etc
Configuring in ./intl
Configuring in ./zlib
Configuring in ./libiberty
Configuring in ./etc
configure: creating cache ./config.cache
configure: creating cache ./config.cache
configure: creating cache ./config.cache
checking for a BSD-compatible install... configure: creating cache ./config.cache
/usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /workspace/build/mingw-w64-build-master/src/binutils-2.29.1/missing makeinfo --split-size=5000000
checking whether make sets $(MAKE)... configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... no
checking build system type... checking build system type... checking for msgfmt... configure: updating cache ./config.cache
x86_64-pc-linux-gnu
checking host system type... configure: creating ./config.status
x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-ar... ar
checking for x86_64-pc-linux-gnu-ranlib... ranlib
checking whether to install libiberty headers and static library... no
configure: target_header_dir =
checking for x86_64-pc-linux-gnu-gcc... gcc
/usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for x86_64-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... checking for C compiler default output file name... config.status: creating Makefile
a.out
checking whether the C compiler works... a.out
checking whether the C compiler works... yes
yes
checking whether we are cross compiling... no
checking for suffix of executables... checking whether we are cross compiling... no
checking for suffix of executables...

checking for suffix of object files... checking for suffix of object files... make[2]: Entering directory /workspace/build/mingw-w64-build-master/bld/binutils/etc' make[2]: Nothing to be done for all'.
make[2]: Leaving directory /workspace/build/mingw-w64-build-master/bld/binutils/etc' o o checking whether we are using the GNU C compiler... checking whether we are using the GNU C compiler... yes yes checking whether gcc accepts -g... checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... yes checking for gcc option to accept ISO C89... unsupported unsupported checking how to run the C preprocessor... checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-ranlib... ranlib checking for library containing strerror... none required checking how to run the C preprocessor... /lib/cpp configure: error: in /workspace/build/mingw-w64-build-master/bld/binutils/libiberty':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See config.log' for more details. make[1]: *** [configure-libiberty] Error 1 make[1]: *** Waiting for unfinished jobs.... /lib/cpp configure: error: in /workspace/build/mingw-w64-build-master/bld/binutils/intl':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See config.log' for more details. make[1]: *** [configure-intl] Error 1 yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-pc-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... unsupported checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... ld checking if the linker (ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... nm checking the name lister (nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for ld option to reload object files... -r checking for x86_64-pc-linux-gnu-objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pc-linux-gnu-ar... ar checking for x86_64-pc-linux-gnu-strip... no checking for strip... strip checking for x86_64-pc-linux-gnu-ranlib... ranlib checking command to parse nm output from gcc object... ok checking how to run the C preprocessor... /lib/cpp configure: error: in /workspace/build/mingw-w64-build-master/bld/binutils/zlib':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See config.log' for more details. make[1]: *** [configure-zlib] Error 1 make[1]: Leaving directory /workspace/build/mingw-w64-build-master/bld/binutils'
make: *** [all] Error 2`
Cloud you help me?

Fix SRC_PATH setting when using CACHED_SOURCES

I found a bug in the mingw-w64-build script that prevents it from setting the SRC_PATH variable correctly when using the CACHED_SOURCES option.

I have submitted a pull request with this fix. Please review and merge it if you agree with my solution. Thank you.

#33

`--root` uses `realpath` from coreutils, not available on macOS

#23 introduced the ability to set --root (quite useful!), but it relies on GNU coreutils realpath, which isn't installed on macOS by default.

One fallback would be to use something like this at the beginning of the script to define a drop-in replacement for the realpath function:

command -v realpath >/dev/null 2>&1 || realpath() {
    [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

(via https://stackoverflow.com/a/3572105/1047040)

Alternatively, foregoing realpath completely and doing something like (cd "$1" && pwd) might do the trick too.

libncursesw compilation fails

It seems like there's something wrong with libncursesw's code that prevents its compilation.

  CXX    init.o
  CXXLD  gdb.exe
C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x8): multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x0): multiple definition of `BC'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0xa0): first defined here
C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_tputs.o):(.bss+0x6): multiple definition of `PC'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0xa8): first defined here
collect2.exe: error: ld returned 1 exit status

I'm on Windows 10/MSys2/MinGW.

GCC build fails on archlinux?

On archlinux I can't get this script to completely build the toolchain.

I looked through the errors and found these:

checking for ld that supports -Wl,--gc-sections... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
With another error before this @ libatomic:
https://0x0.st/soMX.log

I tried looking forever for a solution but ultimately couldn't find it. (see edit)
Full build.log: https://0x0.st/soMo.log

Any help would be very appreciated.

EDIT:

Took about 2hours of my life to finally realize that mingw ppl pushed this commit: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/fa33563b8f3f128d62257f1bc24bae9f04a5e14a/
which causes this issue...., if someone else comes across this issue he wont have to waste that much time at least.

Didn't think mingw would be the cause so I didn't even bother to check guess it's my own fault.. :p (They used to never push anything breaking before though)

Sorry for wasting a few seconds of your life too with this post :)

Compiling gdbserver - Need help

Hi, I am trying to modify the script to compile gdbserver. (And gdb, which I was successful at doing).

I added this after gcc is compiled;
` create_dir "$bld_path/binutils/gdbserver"
change_dir "$bld_path/binutils/gdbserver"

execute "($arch): configuring gdbserver" "" \
    "$SRC_PATH/binutils/gdbserver/configure" --prefix="$prefix" --disable-nls --host="$host" 

execute "($arch): building gdbserver" "" \
    make -j $JOB_COUNT

execute "($arch): installing gdbserver" "" \
    make install`

But I get this fatal error: langinfo.h: No such file or directory when building.
(The disable-nls did not make a change even after I added it)

In the log I see this:
checking for x86_64-w64-mingw32-gcc... so I see that the correct compiler is being picked up.

I Googled a bit to see how gdbserver should be configured and beside the host apparently nothing should be needed. So I am not sure what I am doing wrong.

Building GCC 9.3 meet some error

Hi,
Do you have some time to help me to solve the problem with building gcc 9.3 on windows?
Thanks.

Here was my information during Build gcc, how it makes, I'm my best to solve the error, but it's no work

My configure is

../gcc-9.3.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/P/Efreets/gcc930/ --with-sysroot=/P/Efreets/gcc930/ --enable-languages=c,lto,c++,fortran --enable-lto --enable-static --disable-symvers --disable-shared --enable-threads=posix --enable-sjlj-exceptions --with-system-zlib --with-gmp=/P/Efreets/gmp620 --with-mpfr=/P/Efreets/mpfr402 --with-mpc=/P/Efreets/mpc110 --with-isl=/P/Efreets/isl221 --with-zstd=/P/Efreets/zstd144

It's meet this error

[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory 'P:/gcc930/gcc-9.3.0/Build'
make[2]: Entering directory 'P:/gcc930/gcc-9.3.0/Build'
make[3]: Entering directory 'P:/gcc930/gcc-9.3.0/Build'
rm -f stage_current
make[3]: Leaving directory 'P:/gcc930/gcc-9.3.0/Build'
make[2]: Leaving directory 'P:/gcc930/gcc-9.3.0/Build'
make[2]: Entering directory 'P:/gcc930/gcc-9.3.0/Build'
/usr/bin/sh: -c:行6: unexpected EOF while looking for matching `''
/usr/bin/sh: -c:行7: syntax error: unexpected end of file
make[2]: *** [Makefile:11206: all-stage1-libiberty] Error 1
make[2]: Leaving directory 'P:/gcc930/gcc-9.3.0/Build'
make[1]: *** [Makefile:21113: stage1-bubble] Error 2
make[1]: Leaving directory 'P:/gcc930/gcc-9.3.0/Build'
make: *** [Makefile:1003: all] Error 2

And this is the error line in MakeFile

eff889e3d134e9e2d88fbbae7fb15c79

76f4fa84a85768a6c2482d160c8b1d07

I think error line in right, but I can't solve the problem, could you help me ?

I can't thank you so much, I need you help, Waiting message.

yours sincerely

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.