Building Windows – ‘-fno-keep-inline-dllexport’ is not supported by this configuration #12771

issue lukepighetti opened this issue on March 23, 2018
  1. lukepighetti commented at 6:09 PM on March 23, 2018: none

    On Ubuntu 14. Installed dependencies.

    git clone https://github.com/bitcoin/bitcoin.git
    cd bitcoin/
    cd depends
    make HOST=x86_64-w64-mingw32
    

    Fails as such

    compiling moc.cpp
    compiling preprocessor.cpp
    compiling generator.cpp
    compiling parser.cpp
    compiling token.cpp
    compiling main.cpp
    linking ../../../bin/moc
    make[2]: Leaving directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/tools/moc'
    cd tools/rcc/ && ( test -e Makefile || /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/bin/qmake /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/tools/rcc/rcc.pro -qtconf /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile
    make[2]: Entering directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/tools/rcc'
    compiling rcc.cpp
    compiling main.cpp
    linking ../../../bin/rcc
    make[2]: Leaving directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/tools/rcc'
    cd 3rdparty/pcre/ && ( test -e Makefile || /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/bin/qmake /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/3rdparty/pcre/pcre.pro -qtconf /root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile
    make[2]: Entering directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/3rdparty/pcre'
    make -f Makefile.Release
    make[3]: Entering directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/3rdparty/pcre'
    compiling pcre16_byte_order.c
    gcc: error: command line option ‘-fno-keep-inline-dllexport’ is not supported by this configuration
    make[3]: *** [.obj/release/pcre16_byte_order.o] Error 1
    make[3]: Leaving directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/3rdparty/pcre'
    make[2]: *** [release] Error 2
    make[2]: Leaving directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src/3rdparty/pcre'
    make[1]: *** [sub-3rdparty-pcre] Error 2
    make[1]: Leaving directory `/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/src'
    make: *** [/root/bitcoin/depends/work/build/x86_64-w64-mingw32/qt/5.7.1-00b04bfdf2a/qtbase/.stamp_built] Error 2
    
  2. lukepighetti commented at 6:10 PM on March 23, 2018: none

    I've tried release-process.md (gitian-builder) and the windows-build.md (qt?) methods and have not yet succeeded.

    Any comments on which are easier?

  3. lukepighetti commented at 7:32 PM on March 23, 2018: none

    Success with a fresh Ubuntu 14 install. Feel free to close.

    
    sudo apt update
    sudo apt upgrade
    sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git
    sudo apt install g++-mingw-w64-x86-64
    git clone https://github.com/bitcoin/bitcoin.git
    cd bitcoin/
    PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
    cd depends
    make HOST=x86_64-w64-mingw32
    cd ..
    ./autogen.sh
    CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
    make
    
  4. fanquake added the label Windows on Mar 23, 2018
  5. lukepighetti closed this on Mar 25, 2018

  6. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me