Skip to content

Commit 71329d5

Browse files
authored
Specify GCC 12 for Cygwin build instructions (#59542)
This works around #56840 by installing GCC 12 instead of GCC 13, which fails with the error: ``` LINK usr/lib/julia/basecompiler.dll /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/dllcrt2.o: in function `_CRT_INIT': /usr/src/debug/mingw64-x86_64-runtime-13.0.0-1/crt/crtdll.c:82:(.text+0x13b): undefined reference to `_initterm_e' collect2: error: ld returned 1 exit status ```
1 parent 8349aed commit 71329d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/src/devdocs/build/windows.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ MinGW-w64 compilers available through Cygwin's package manager.
5050
*Advanced*: you may skip steps 2-4 by running:
5151

5252
```sh
53-
setup-x86_64.exe -s <url> -q -P cmake,gcc-g++,git,make,patch,curl,m4,python3,p7zip,mingw64-i686-gcc-g++,mingw64-i686-gcc-fortran,mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-fortran
53+
setup-x86_64.exe -s <url> -q -P cmake,gcc-g++=12.5.0-1,git,make,patch,curl,m4,python3,p7zip,mingw64-i686-gcc-g++=12.5.0-1,mingw64-i686-gcc-fortran=12.5.0-1,mingw64-i686-gcc-core=12.5.0-1,mingw64-i686-headers=12.0.0-1,mingw64-i686-runtime=12.0.0-1,mingw64-i686-winpthreads=12.0.0-1,mingw64-x86_64-gcc-g++=12.5.0-1,mingw64-x86_64-gcc-fortran=12.5.0-1,mingw64-x86_64-gcc-core=12.5.0-1,mingw64-x86_64-headers=12.0.0-1,mingw64-x86_64-runtime=12.0.0-1,mingw64-x86_64-winpthreads=12.0.0-1
5454
```
5555

5656
replacing `<url>` with a site from [https://cygwin.com/mirrors.html](https://cygwin.com/mirrors.html)
@@ -65,9 +65,11 @@ MinGW-w64 compilers available through Cygwin's package manager.
6565
3. From *Interpreters* (or *Python*) category: `m4`, `python3`
6666
4. From the *Archive* category: `p7zip`
6767
5. For 32 bit Julia, and also from the *Devel* category:
68-
`mingw64-i686-gcc-g++` and `mingw64-i686-gcc-fortran`
68+
`mingw64-i686-gcc-g++` and `mingw64-i686-gcc-fortran` and `mingw64-i686-gcc-core` (version "12.5.0-1")
69+
`mingw64-i686-headers` and `mingw64-i686-runtime` and `mingw64-i686-winpthreads` (version "12.0.0-1")
6970
6. For 64 bit Julia, and also from the *Devel* category:
70-
`mingw64-x86_64-gcc-g++` and `mingw64-x86_64-gcc-fortran`
71+
`mingw64-x86_64-gcc-g++` and `mingw64-x86_64-gcc-fortran` and `mingw64-x86_64-gcc-core` (version "12.5.0-1")
72+
`mingw64-x86_64-headers` and `mingw64-x86_64-runtime` and `mingw64-x86_64-winpthreads` (version "12.0.0-1")
7173

7274
4. Allow Cygwin installation to finish, then start from the installed shortcut
7375
*'Cygwin Terminal'*, or *'Cygwin64 Terminal'*, respectively.

0 commit comments

Comments
 (0)