[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2025-02-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #18 from Brecht Sanders --- Thanks for you work on this. My goal is to eventually have native binutils+GCC on Windows ARM64. I tried using sources from: https://github.com/Windows-on-ARM-Experiments/binutils-woarm64 https://github.

[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2025-02-16 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #16 from Brecht Sanders --- What is the current status of GCC for aarch64-w64-mingw32 ? When can I expect a snapshot version of GCC 15 to build for this platform?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-02-12 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #17 from Brecht Sanders --- These undefined references seem to exist in libphobos/src/.libs/libgphobos.a Is d21.exe somehow not linking against that library by mistake?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-02-12 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #16 from Brecht Sanders --- Whatever I try, I always get stuck on building d21.exe. make: Entering directory '/home/brecht/build-gcc/build_stage2-gcc-x86_64-w64-mingw32/gcc' x86_64-w64-mingw32-gdc -lstdc++ -g -DIN_GCC-fno-ex

[Bug d/104654] Errors in gthread.d when building against MinGW-w64 with --enable-threads=posix

2025-02-12 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104654 --- Comment #1 from Brecht Sanders --- This problem is still present in GCC snapshot 15-20250209. Any news on how to fix libphobos/libdruntime/gcc/gthread.d for building with --enable-threads=posix ?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-29 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #15 from Brecht Sanders --- So what is needed to be able to use gdc to build a simple "Hello world" program for Windows (x86_64-w64-mingw32)?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #13 from Brecht Sanders --- I understand that would give me a gdc with runtime and no libphobos. What is needed to make that usable as a compiler? Do I need to build libphobos spearately or from a different source?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #11 from Brecht Sanders --- Apparently MinGW-w64 dosn't like extern char** environ; To avoid this issue for now I commented out the following in gcc/cp/module.cc: extern char **environ; while (const char *var = environ[vars.leng

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #10 from Brecht Sanders --- Looks like _pgmptr was superseded by _get_pgmptr(). So I tried this quick and dirty fix to get past the issue: patch -ulbf libbacktrace/fileline.c << EOF @@ -262,3 +262,7 @@ to the wine binar

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #9 from Brecht Sanders --- Same thing happens with --enable-languages=c,c++,fortran,d What is causing the error: "undefined reference to `__imp___p__pgmptr'" ?

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #8 from Brecht Sanders --- Yes, that was with --languages=d only.

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #6 from Brecht Sanders --- Sorry it took me a while to get the hang of building a canadian cross from Linux. When building gdc for Windows 64-bit I get the following: make[2]: Entering directory '/home/brecht/build-gcc/build_stage

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #5 from Brecht Sanders --- Yes, it builds find with --with-libphobos-druntime-only

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-15 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #3 from Brecht Sanders --- I was just trying to build GCC 12,13,14 with D+libphobos using GCC11. No success. GCC12: libtool: compile: /R/winlibs_gcc1564/gcc-12.4.0/build_mingw/./gcc/gdc -B/R/winlibs_gcc1564/gcc-12.4.0/build_min

[Bug d/118495] New: Unable to build gdc (D compiler) for MinGW-w64

2025-01-15 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
: d Assignee: ibuclaw at gdcproject dot org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- I have been attempting to nateveliy build the gdc D compiler on Windows MinGW-w64. The last build with where D language and libphobos didn't fail was GCC1

[Bug libstdc++/118244] Errors building libstdc++-v3 for MinGW-w64

2025-01-03 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118244 Brecht Sanders changed: What|Removed |Added Resolution|--- |WORKSFORME Status|UNCONFIR

[Bug c/118283] Issues when building with GCC15+MinGW-w64

2025-01-03 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118283 --- Comment #4 from Brecht Sanders --- Thanks for clarifying. So it seems this is by design and there is nothing to fix in GCC. Unfortunately that means a lot of packages will need to fix their source if they still want them to build using th

[Bug c/118283] New: Issues when building with GCC15+MinGW-w64

2025-01-03 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- I was able to compile GCC 15 (20241229 snapshot) against MinGW-w64. So I tried building a lot of open source projects with it. Several projects fail to build and a

[Bug libstdc++/118244] Errors building libstdc++-v3 for MinGW-w64

2024-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118244 --- Comment #7 from Brecht Sanders --- This somehow did allow the build to proceed: make -Cbuild_mingw/$RUNPLATFORM/libstdc++-v3 LDFLAGS="-L$PWD/build_mingw/gcc -lcommon"

[Bug libstdc++/118244] Errors building libstdc++-v3 for MinGW-w64

2024-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118244 --- Comment #6 from Brecht Sanders --- I tried building without '-D__USE_MINGW_ANSI_STDIO=0' and I still get the same undefined references.

[Bug libstdc++/118244] Errors building libstdc++-v3 for MinGW-w64

2024-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118244 --- Comment #5 from Brecht Sanders --- The purpose of CFLAGS=-D__USE_MINGW_ANSI_STDIO=0 was to speed up console output, because MinGW's own printf is quite slow. I only want to speed up console output of GCC tools. Is there a better place to s

[Bug libstdc++/118244] Errors building libstdc++-v3 for MinGW-w64

2024-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118244 --- Comment #2 from Brecht Sanders --- ../configure --prefix=/R/winlibs14.2.0msvcrt64/inst_gcc-14.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion=MinGW-W64 x86_64-msvcrt-p

[Bug libstdc++/118244] New: Errors building libstdc++-v3 for MinGW-w64

2024-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- I'm trying a native Windows MinGW-w64 build of GCC15 (snapshot 15-20241229) and I get errors when building libstdc++-v3: make[5]: Entering director

[Bug lto/118238] New: gcc/lto-wrapper.cc broken on Windows (MinGW-w64) due to missing mkstemps() and link()

2024-12-29 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When trying to build snapshot 15-20241222 on Windows / MinGW-w64 the build fails on gcc/lto

[Bug c/116091] New: MinGW-w64 build not building plugin libraries

2024-07-25 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When building MinGW-w64 builds of GCC 13 or higher natively on Windows (in MSYS2 shell) I noticed the plugin libraries cc1.exe.a and cc1plus.exe.a are no

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include

2024-06-15 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 --- Comment #6 from Brecht Sanders --- You're right. Sorry I missed that.

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include

2024-06-15 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 --- Comment #4 from Brecht Sanders --- No, that patch wasn't added for my build, see my build recipe here: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/gcc.winlib

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include

2024-06-10 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 Brecht Sanders changed: What|Removed |Added CC||brechtsanders at users dot sourcef

[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2024-04-17 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #10 from Brecht Sanders --- What is the status of GCC support for aarch64-w64-mingw32 ? I just tried GCC 14 snapshot 20240414 and it looks like it's still not supported. Build fails with: *** Configuration aarch64-w64-mingw32 not s

[Bug target/99913] GCC11 fails to build for MinGW-w64 for Windows 32-bit

2024-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99913 Brecht Sanders changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2023-06-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #5 from Brecht Sanders --- Thanks Zac, how can I see what you actually changed? Is there a particular GCC version I can diff https://github.com/ZacWalk/gcc-woarm64 against?

[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2023-06-24 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #3 from Brecht Sanders --- Any pointers on which files to edit in order to support aarch64-mingw ? I think it won't require reinventing the wheel as it will probably be a mix of existing *-mingw and aarch64-* stuff...

[Bug target/108678] Windows on ARM64 platform target aarch64-w64-mingw32

2023-02-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108678 --- Comment #2 from Brecht Sanders --- I would love to give it a go if only I knew where to add the support. I actually got a Windows on ARM device hoping I could figure it out, bit it looks I will need tome help. The "Unknown tune used in --

[Bug c/108678] New: Windows on ARM64 platform target aarch64-w64-mingw32

2023-02-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Are there plans to support Windows (using MinGW-w64) on ARM64? The triplet for this platform should be: aarch64-w64-mingw32 I'm trying to build nat

[Bug target/105506] [12/13 Regression] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2023-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #12 from Brecht Sanders --- I couldn't apply that patch. Is that for 12.2.0 ?

[Bug target/105506] [12/13 Regression] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2023-01-16 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #10 from Brecht Sanders --- I can confirm GCC 12.2.0 builds fine with that patch and without CFLAG -D__USE_MINGW_ACCESS

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-12-30 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #8 from Brecht Sanders --- I seem to be having some success after applying patches based on: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gcc/0010-Fix-using-large-PCH.patch https://github.com/msys2/MINGW-packages/bl

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-12-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #7 from Brecht Sanders --- Any update on this? This issue makes GCC12 really slow on Windows because PCH support doesn't work. If mman-win32 support could be made to work it might solve this issue. The problem is that this requires

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-09-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #5 from Brecht Sanders --- I believe this is issue is cause by the fact that mmap is missing on Windows. In gcc/ggc-common.cc this causes use of default_gt_pch_get_address() as HOST_HOOKS_GT_PCH_GET_ADDRESS which just returns NULL

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-09-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #4 from Brecht Sanders --- Any update on this issue? I see performance complaints from several people in GCC12+MinGW-w64 being much slower in the build without precompiled headers (see: https://github.com/brechtsanders/winlibs_ming

[Bug target/106728] Cannot Compile EXE on Shared Network Drive (Windows, MinGW)

2022-08-25 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106728 Brecht Sanders changed: What|Removed |Added CC||brechtsanders at users dot sourcef

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-08-06 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #3 from Brecht Sanders --- Some information I received related to this issue: On 01/08/2022 14:52, Luis Dallos wrote: > > PCH has had issues for as long as I can remember, see for example: > > * > https://github.com/msys2/

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-07-25 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #2 from Brecht Sanders --- Just checked, issue is still present in snapshot 12-20220723. Anybody able to confirm the issue or know what the status is?

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-07-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #1 from Brecht Sanders --- Any news on this? I am not the only one experiencing this. See also: https://github.com/brechtsanders/winlibs_mingw/issues/108

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-06-06 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #7 from Brecht Sanders --- Thank you for sharing your insights. I can confirm building with CFLAGS="-D__USE_MINGW_ACCESS" works. So I guess the question that remains is: Where is -D__USE_MINGW_ACCES missing in the configuration of

[Bug c/105858] New: MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-06-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When building the Windows 64-bit version of GCC

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-06-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #5 from Brecht Sanders --- Created attachment 53088 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53088&action=edit Process Monitor when running `gcc -print-prog-name=cc1` Process Monitor when running `gcc -print-prog-name=c

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-06-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #4 from Brecht Sanders --- I just ran `gcc -print-prog-name=cc1` and saw the output was only `cc1` while on working versions it reports a full path to `cc1.exe` (e.g. `d:/prog/winlibs64_stage/custombuilt/share/gcc/bin/../libexec/gcc

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-05-27 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #3 from Brecht Sanders --- Created attachment 53046 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53046&action=edit ProcessMonitor filtered on occurrence of "cc1"

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-05-27 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #2 from Brecht Sanders --- I did an additional test to see where gcc.exe is looking for cc1.exe using Process Monitor. This was using a i686 UCRT build of GCC against MinGW-w64 installed under: D:\Prog\winlibs32ucrt_stage\mingw32

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-05-14 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #1 from Brecht Sanders --- Apparently this issue is not related to the .exe extension, but rather to where it is looking for cc1.exe. If somepath/bin is where gcc.exe lives than it helpst to add somepath/libexec/gcc/x86_64-w64-ming

[Bug c/105506] New: Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-05-06 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
oduct: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Building GCC 12.1.0 against MinGW

[Bug go/105302] gccgo for Windows using MinGW-w64

2022-04-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105302 --- Comment #7 from Brecht Sanders --- I'm still trying to understand how it all works, but to avoid \n versus \r\n issues on Windows I would already recommend these changes: ``` patch -ulbf gcc/go/gofrontend/gogo.cc << EOF @@ -5252,3 +5252,3 @

[Bug go/105302] gccgo for Windows using MinGW-w64

2022-04-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105302 --- Comment #5 from Brecht Sanders --- The generated internal/cpu.gox looks like the below dump. Can you see what the issue is with the magic string? ``` : 6486 0100 5809 0200 d...X... 0010: 0500 2f

[Bug go/105302] gccgo for Windows using MinGW-w64

2022-04-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105302 --- Comment #3 from Brecht Sanders --- What exactly would be the file(s) being opened in this case? When can we expect the libgo cleanup needed for MinGW(-w64) support?

[Bug go/105302] gccgo for Windows using MinGW-w64

2022-04-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105302 --- Comment #1 from Brecht Sanders --- P.S.: This attempt was with snapshot version 12-20220417

[Bug go/105302] New: gccgo for Windows using MinGW-w64

2022-04-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Assignee: ian at airs dot com Reporter: brechtsanders at users dot sourceforge.net CC: cmang at google dot com Target Milestone: --- I thought I's give building gccgo for Windows using MinGW-w64 another try. First of all I had to change `configure` to allow me

[Bug d/104659] New: msvcUsedUCRT in libphobos/libdruntime/config/mingw/msvc.c

2022-02-23 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When compiling for D language I got an error on libphobos/libdruntime/config/mingw/msvc.c that msvcUsedUCRT is not defined

[Bug d/104654] New: Errors in gthread.d when building against MinGW-w64 with --enable-threads=posix

2022-02-22 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When building GCC (recently tried 11.2 snapshot 20220219) against MinGW-w64 with --enable-threads=posix

[Bug target/100293] MinGW-w64 of nvptx offload engine fails

2021-08-15 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #9 from Brecht Sanders --- Any update on this? Issue still exists today (in GCC 11.2.0 and in latest snapshot 11.2.1-20210814). Both when building gcc on Windows for nvptx as well as the offload engine for nvptx there is an error l

[Bug target/99401] Rebuilding the compiler with itself fails at -O2

2021-04-29 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401 Brecht Sanders changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/100293] MinGW-w64 of nvptx offload engine fails

2021-04-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #8 from Brecht Sanders --- Additional test: Running this manually (in MSYS2 shell) also fails: R:/winlibs32_stage/gcc-offload-nvptx-11.1.0/gcc-11.1.0/build_win_offload-nvptx/gcc/as -v -m sm_35 -o 'R:\winlibs32_stage\_TMP_\ccYJWYIt.o

[Bug target/100293] MinGW-w64 of nvptx offload engine fails

2021-04-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #7 from Brecht Sanders --- I ran the following commands based on what was in config.log cat > conftest.c << EOF /* confdefs.h */ #define PACKAGE_NAME "GNU Atomic Library" #define PACKAGE_TARNAME "libatomic" #define PACKAGE_VERSION

[Bug target/100293] MinGW-w64 of nvptx offload engine fails

2021-04-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #6 from Brecht Sanders --- Yes, that folder exists and that's where my TMP and TEMP environment variables point to. I also tried to point them to a folder on the C: drive, as R: is a RAM drive and I wanted to exclude that that was

[Bug c/100293] MinGW-w64 of nvptx offload engine fails

2021-04-27 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #3 from Brecht Sanders --- My bad, yes I was using nvptx-tools (master from https://github.com/MentorEmbedded/nvptx-tools). my configure command for nvptx offload engine looks like this ./configure --prefix=/R/winlibs64_stage/inst_

[Bug c/100293] MinGW-w64 of nvptx offload engine fails

2021-04-27 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100293 --- Comment #1 from Brecht Sanders --- Also tried with unpatched binutils 2.36.1, same outcome. Building GCC targetting nvptx (--target=nvptx-none) also stops with the same error. libatomic/config.log reports: configure:3756: checking whether

[Bug c/100293] New: MinGW-w64 of nvptx offload engine fails

2021-04-27 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 50691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50691&action=edit libatomic/config.log When doing a Windows native build of

[Bug c++/100160] New: MinGW-w64 g++ with libgomp and nvptx looks for libgomp-plugin-nvptx.so.1 instead of libgomp-plugin-nvptx-1.dll

2021-04-20 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 50640 --> https://gcc.gnu.

[Bug target/100141] Unable to build amdgcn-amdhsa offload accelerator for MinGW-w64 for both Windows 32-bit and 64-bit

2021-04-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100141 --- Comment #2 from Brecht Sanders --- My plan was to build entirely without LLVM if possible, but if needed to just build the offload accelerator I do have it available (though I need to check if I have this target available). What options are

[Bug c/100141] New: Unable to build amdgcn-amdhsa offload accelerator for MinGW-w64 for both Windows 32-bit and 64-bit

2021-04-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 50625 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50

[Bug target/99913] GCC11 fails to build for MinGW-w64 for Windows 32-bit

2021-04-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99913 --- Comment #3 from Brecht Sanders --- Just to clarify: libwinpthread is built as part of the GCC build against MinGW-w64. MinGW-w64 also already has a libwinpthread (including libwinpthread-1.dll which can be found in the PATH).

[Bug target/99913] GCC11 fails to build for MinGW-w64 for Windows 32-bit

2021-04-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99913 --- Comment #2 from Brecht Sanders --- By the time I get to that error the build process already generated these files: - mingw-w64/mingw/lib/libwinpthread.a - mingw-w64/mingw/lib/libwinpthread.dll.a - mingw-w64/mingw/lib/libwinpthread.la Howeve

[Bug c/99913] New: GCC11 fails to build for MinGW-w64 for Windows 32-bit

2021-04-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 50509 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50509&action=edit i686-w64-mingw32/libgomp/config.log When building

[Bug d/91595] Version (Windows) is not defined in GCC D Compiler

2021-03-21 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595 --- Comment #10 from Brecht Sanders --- I thought MinGW-w64 is it's own C library. It is found by GCC build process because the folder mingw exists in the location specified with --with-build-sysroot CppRuntime_Gcc is mentioned in the predefs, w

[Bug d/91595] Version (Windows) is not defined in GCC D Compiler

2021-03-21 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595 --- Comment #8 from Brecht Sanders --- predefs GNU D_Version2 LittleEndian GNU_SEH_Exceptions GNU_EMUTLS GNU_StackGrowsDown GNU_InlineAsm D_LP64 D_PIC assert D_ModuleInfo D_Exceptions D_TypeInfo all X86_64 D_HardFloat Windows MinGW Win64 CppRu

[Bug d/91595] Version (Windows) is not defined in GCC D Compiler

2021-03-21 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595 --- Comment #6 from Brecht Sanders --- The patch for gcc/config/i386/t-cygming added a line: winnt-d.o: config/winnt-d.c I changed it to: winnt-d.o: config/i386/winnt-d.c Then I got one step further. Output is now: libtool: compile: /R/winlib

[Bug d/91595] Version (Windows) is not defined in GCC D Compiler

2021-03-21 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595 Brecht Sanders changed: What|Removed |Added CC||brechtsanders at users dot sourcef

[Bug target/99401] Rebuilding the compiler with itself fails at -O2

2021-03-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401 --- Comment #5 from Brecht Sanders --- *** Bug 97618 has been marked as a duplicate of this bug. ***

[Bug c/97618] undefined reference to LC11 building for target MinGW-w64 32-bit

2021-03-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97618 Brecht Sanders changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/99401] GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'

2021-03-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401 --- Comment #2 from Brecht Sanders --- Created attachment 50302 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50302&action=edit gcc -v

[Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'

2021-03-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
ormal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 50301 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50301&action=edit make

[Bug c/97618] undefined reference to LC11 building for target MinGW-w64 32-bit

2021-02-07 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97618 --- Comment #4 from Brecht Sanders --- Found a smaller project to reproduce the issue with: building BLAKE3 v0.3.7 from https://github.com/BLAKE3-team/BLAKE3 also has the issue when building with GCC11 for 32-bit MinGW-w64. Here I noticed that c

[Bug c/97618] undefined reference to LC11 building for target MinGW-w64 32-bit

2021-02-07 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97618 --- Comment #3 from Brecht Sanders --- Issue is till present in GCC 11 snapshot 20210131. When building GCC 11 with GCC 11 the error is still there when trying to build fortran. I also noticed the same error when using GCC 11 to build ccache 4.2

[Bug bootstrap/98860] [11 Regression] boostrap failure on MinGW-w64 windows 10

2021-02-07 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 --- Comment #27 from Brecht Sanders --- @Mikael Pettersson, should a similar patch be applied to gcc/config/i386/mingw-w64.h to fix this same issue in MinGW-w64?

[Bug target/98729] [11 Regression] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-02-02 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #11 from Brecht Sanders --- Created attachment 50113 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50113&action=edit objdump -h List of sections attached (created using `objdump -h`)

[Bug target/98729] [11 Regression] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-20 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #9 from Brecht Sanders --- The attached .exe will run on Windows after removing the section called `/20` from the PE file using: `strip conftest.exe --remove-section="/20"` I don't know what this section does, but I did notice it co

[Bug target/98729] [11 Regression] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-20 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #8 from Brecht Sanders --- Also, my win64 build uses SEH, not dwarf, so it doesn't look like dwarf is the issue. I also tried to build with `--enable-compressed-debug-sections=none`, but that fix the problem either.

[Bug target/98729] [11 Regression] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #7 from Brecht Sanders --- Adding flag `-gdwarf-4` to the above command still results in a file that won't execute, see attached file `conftest-gdwarf-4.exe`

[Bug target/98729] [11 Regression] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-19 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #6 from Brecht Sanders --- Created attachment 50004 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50004&action=edit test built with -gdwarf-4

[Bug target/98729] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #3 from Brecht Sanders --- Strange, I'm using the same binutils to build GCC 10.2.0 and have no issues there. Configuring the GCC build with `LDFLAGS_FOR_TARGET="-s"` works around this issue for now, but only for win64. For the win3

[Bug c/98729] GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98729 --- Comment #1 from Brecht Sanders --- I have discovered that adding `-s` to the above build command or stripping the .exe file with `strip` does allow it to run. So probably something is messed up in the debugging symbols section.

[Bug c/98729] New: GCC 11 MinGW Windows build doesn't generate working PE executables

2021-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
ormal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- Created attachment 49994 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49994&action=edit Invalid Win

[Bug lto/98145] gcc with nvptx offloading on Windows: lto-wrapper can't find accel/nvptx-none/mkoffload

2020-12-05 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98145 --- Comment #3 from Brecht Sanders --- Fixing gcc/config/nvptx/mkoffload.c got me one step further, but now the parameters seem to be the issue: lto1.exe: error: unrecognized command-line option '-mgomp' lto1.exe: error: '-foffload-abi' option

[Bug lto/98145] gcc with nvptx offloading on Windows: lto-wrapper can't find accel/nvptx-none/mkoffload

2020-12-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98145 --- Comment #2 from Brecht Sanders --- Did a bit more digging... Seems COMPILER_PATH uses ';' as separator on Windows, not ':'. So besides the .exe issue parse_env_var() also needs to separate the list by a different separator. Something like t

[Bug c/98145] On Windows .exe extension is missing when searching/calling mkoffload

2020-12-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98145 --- Comment #1 from Brecht Sanders --- Closer investigation shows the issue probably not (or not only) cause by the .exe extension: This is the error: lto-wrapper.exe: fatal error: could not find accel/nvptx-none/mkoffload.exe in d:/prog/winlib

[Bug c/98145] New: On Windows .exe extension is missing when searching/calling mkoffload

2020-12-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- I was trying to get nvptx offloading to work on Windows/MinGW-w64, and got the following output when testing the

[Bug c/97618] undefined reference to LC11 building for target MinGW-w64 32-bit

2020-10-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97618 --- Comment #2 from Brecht Sanders --- To build mpfr wich fails with: build_mingw\i686-w64-mingw32\libgcc/../../../libgcc/config/libbid/bid128_div.c:1523: undefined reference to `LC4' I figured out that the symbol LC4 is defined in libgcc.a, so

[Bug c/97618] undefined reference to LC11 building for target MinGW-w64 32-bit

2020-10-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97618 --- Comment #1 from Brecht Sanders --- I see a similar issue when building mpfr with the resulting compiler, but here the error is: build_mingw\i686-w64-mingw32\libgcc/../../../libgcc/config/libbid/bid128_div.c:616: undefined reference to `LC4'

[Bug c/97618] New: undefined reference to LC11 building for target MinGW-w64 32-bit

2020-10-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When building GCC11 with MinGW-w64 32-bit it fails in the Fortran language with undefined references to LC symbols

[Bug analyzer/97614] New: MinGW-w64 pointer to long conversion loses precision error

2020-10-28 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When compiling GCC 11-20201025 with MinGW-w64 I got the following error: ../../gcc/analyzer/store.h: In member function

  1   2   >