Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64-w64-mingw32 toolchain support #126

Open
mahaase opened this issue Apr 4, 2022 · 2 comments
Open

x86_64-w64-mingw32 toolchain support #126

mahaase opened this issue Apr 4, 2022 · 2 comments

Comments

@mahaase
Copy link
Contributor

mahaase commented Apr 4, 2022

have u ever tried to get up a mingw toolchain in bob?

i tried this in cross-toolchain.yaml:

x86_64-w64-mingw32:
    environment:
    AUTOCONF_TARGET:·"x86_64-w64-mingw32"
    AUTOCONF_TARGET_32:·"i686-w64-mingw32"
    ARCH:·"x86_64"¬
    GCC_LIBC:·"glibc"¬
    GCC_MULTILIB:·"m32,m64"

error:

stddef.h:1:15: fatal error: stddef.h: No such file or directory
 #include_next <stddef.h>

and this (cross instead of w64), the cross should fix the issue above:

x86_64-w64-mingw32:
    environment:
    AUTOCONF_TARGET:·"x86_64-cross-mingw32"
    AUTOCONF_TARGET_32:·"i686-cross-mingw32"
    ARCH:·"x86_64"¬
    GCC_LIBC:·"glibc"¬
    GCC_MULTILIB:·"m32,m64"

error:

libgcc/libgcc2.c:2186:10: fatal error: windows.h: No such file or directory
 #include <windows.h>

no idea, what's that.

x86_64-cross-w64-mingw32 will fail already in binutils:
checking target system type... Invalid configuration x86_64-cross-w64-mingw32': system w64-mingw32' not recognized

@jkloetzke
Copy link
Member

I guess we would need to support a different libc. I cannot imagine that glibc works for Windows. But I have never tried to build such a toolchain myself. I'm afraid you're in uncharted territory...

@daxcore
Copy link
Contributor

daxcore commented Apr 9, 2022

yea. i guess i could try to convert the pkgbuild files of aur to bob recipes: https://archlinux.org/groups/x86_64/mingw-w64-toolchain/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants