Menu

#400 mingw 6638 header installation fails

v1.0 (example)
closed-out-of-date
nobody
None
5
2014-09-01
2014-06-13
No

Repo steps

Ubuntu 12.04

download this script:

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/+/master/build-mingw64-toolchain.sh

apply this patch:

--- a/build-mingw64-toolchain.sh
+++ b/build-mingw64-toolchain.sh
@@ -134,12 +134,13 @@ GMP_URL=http://ftp.gnu.org/gnu/gmp/
MPFR_VERSION=3.1.1
MPC_VERSION=1.0.1
BINUTILS_VERSION=2.22
-GCC_VERSION=4.8.1
+GCC_VERSION=4.8.3

# Need at least revision 5166
# For reference, I've built a working NDK with 5445
# (latest as of Sun Feb 3 2013 is 5578)
-MINGW_W64_VERSION=svn@5861
+# 6638 is very close to 3.1.0
+MINGW_W64_VERSION=svn@6638

JOBS=$(( $NUM_CORES * 2 ))

@@ -583,13 +584,13 @@ build_mingw_headers ()
mkdir -p $BUILD_DIR/$PKGNAME &&
cd $BUILD_DIR/$PKGNAME &&
log "$PKGNAME: Configuring" &&

  • run $MINGW_W64_SRC/mingw-w64-headers/configure --prefix=$PREFIX_FOR_TARGET --host=$TARGET_TAG \
  • $MINGW_W64_SRC/mingw-w64-headers/configure --prefix=$PREFIX_FOR_TARGET --host=$TARGET_TAG \
    --build=$HOST_TAG --with-widl=$WITH_WIDL --enable-sdk=all
    fail_panic "Can't configure mingw-64-headers"

         run make
         log "$PKGNAME: Installing" &&
    
  • run make install -j$JOBS &&

  • make install &&
    run cd $INSTALL_DIR &&
    run ln -s $TARGET_TAG mingw &&
    run cd $INSTALL_DIR/mingw &&

Error:

mingw-w64-headers: Installing
/tmp/build-mingw64-toolchain-vharron/install-x86_64-linux-gnu/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-widl -DBOOL=WINBOOL -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/include -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/direct-x/include -Icrt -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/crt -h -o include/windows.security.cryptography.h /tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/include/windows.security.cryptography.idl
error: Could not generate a temp name from include/windows.security.cryptography.h.1a4f9d
make: *** [include/windows.security.cryptography.h] Error 2
Error: Can't configure mingw-64-headers

Discussion

  • Jonathan Yong

    Jonathan Yong - 2014-07-03
    • status: open --> closed-out-of-date
     
  • Jonathan Yong

    Jonathan Yong - 2014-07-03

    Please use the copy from git, mingw-w64 SVN is no longer active.
    Moreover please report it to whoever wrote the build script instead.

     

Log in to post a comment.

Auth0 Logo