Difference between
modified post 8896543ef by Anonymous on Mon 18th Mar 2024 10:50
original post f1cba33 by Anonymous on Mon 18th Mar 2024 09:46
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | Compile with: | |
| 2 | 2 | $ git -c 'checkout.workers=16' clone -b releases/gcc-13.1.0 --single-branch ../gcc.bundle | |
| 3 | 3 | $ cd gcc | |
| 4 | 4 | $ configure | |
| 5 | 5 | $ yes | make -j8 all | |
| 6 | 6 | ||
| 7 | 7 | Log output: | |
| 8 | 8 | ---- snip ---- | |
| 9 | 9 | /cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc -B/cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc -nostdinc++ -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src/.libs -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem /usr/local/x86_64-pc-cygwin/include -isystem /usr/local/x86_64-pc-cygwin/sys-include -fno-checking -x c++-header -nostdinc++ -g -O2 -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include -I/cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/libsupc++ -O2 -g /cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/include/precompiled/stdtr1c++.h -o x86_64-pc-cygwin/bits/stdtr1c++.h.gch/O2g.gch | |
| 10 | 10 | mkdir -p ./x86_64-pc-cygwin/bits/extc++.h.gch | |
| 11 | 11 | /cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc -B/cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc -nostdinc++ -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src/.libs -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem /usr/local/x86_64-pc-cygwin/include -isystem /usr/local/x86_64-pc-cygwin/sys-include -fno-checking -x c++-header -nostdinc++ -g -O2 -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include -I/cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/libsupc++ -O2 -g /cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/include/precompiled/extc++.h -o x86_64-pc-cygwin/bits/extc++.h.gch/O2g.gch | |
| 12 | 12 | *** starting 'dumper "M:/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/cc1plus.exe" 8244' for pid 0, tid 1164 | |
| 13 | 13 | make[5]: *** [Makefile:1938: x86_64-pc-cygwin/bits/extc++.h.gch/O2g.gch] Error 1 | |
| 14 | 14 | make[5]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include' | |
| 15 | 15 | make[4]: *** [Makefile:576: all-recursive] Error 1 | |
| 16 | 16 | make[4]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3' | |
| 17 | 17 | make[3]: *** [Makefile:501: all] Error 2 | |
| 18 | 18 | make[3]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3' | |
| 19 | 19 | make[2]: *** [Makefile:18286: all-stage1-target-libstdc++-v3] Error 2 | |
| 20 | 20 | make[2]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc' | |
| 21 | 21 | make[1]: *** [Makefile:25094: stage1-bubble] Error 2 | |
| 22 | 22 | make[1]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc' | |
| 23 | 23 | make: *** [Makefile:1080: all] Error 2 | |
| 24 | 24 | ---- snip ---- | |
| 25 | 25 | ||
| 26 | 26 | Stack trace: | |
| 27 | 27 | ---- snip ---- | |
| 28 | 28 | roland_mainz@wingrendel02 /cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include | |
| 29 | 29 | $ gdb ../../../host-x86_64-pc-cygwin/gcc/cc1plus.exe cc1plus.exe.core | |
| 30 | 30 | GNU gdb (GDB) (Cygwin 13.2-1) 13.2 | |
| 31 | 31 | [snip] | |
| 32 | 32 | [New Thread 0x48c] | |
| 33 | 33 | [New Thread 0x18c4] | |
| 34 | 34 | [New Thread 0x1370] | |
| 35 | 35 | #0 0x00007ffaa106d664 in ntdll!ZwDelayExecution () from C:/Windows/SYSTEM32/ntdll.dll | |
| 36 | 36 | [Current thread is 1 (Thread 0x48c)] | |
| 37 | 37 | (gdb) bt | |
| 38 | 38 | #0 0x00007ffaa106d664 in ntdll!ZwDelayExecution () from C:/Windows/SYSTEM32/ntdll.dll | |
| 39 | 39 | #1 0x00007ffa9ec9b62e in SleepEx () from C:/Windows/System32/KERNELBASE.dll | |
| 40 | 40 | #2 0x00007ffa9429e567 in secure_getenv () from C:/cygwin64/bin/cygwin1.dll | |
| 41 | 41 | #3 0x00007ffa942a01cc in secure_getenv () from C:/cygwin64/bin/cygwin1.dll | |
| 42 | 42 | #4 0x00007ffaa10723af in ntdll!.chkstk () from C:/Windows/SYSTEM32/ntdll.dll | |
| 43 | 43 | #5 0x00007ffaa10214b4 in ntdll!RtlRaiseException () from C:/Windows/SYSTEM32/ntdll.dll | |
| 44 | 44 | #6 0x00007ffaa1070ebe in ntdll!KiUserExceptionDispatcher () from C:/Windows/SYSTEM32/ntdll.dll | |
| 45 | 45 | #7 0x0000000100cba6ce in gt_pch_p_13string_concat (this_obj=0x6ffffd85ccb8, x_p=0x6ffff7b4ebe0, op=0x100be765e <relocate_ptrs(void*, void*, void*)>, cookie=0x7ffffc7a0) at gtype-desc.cc:8199 | |
| 46 | 46 | #8 0x0000000100be801c in gt_pch_save (f=0xa000b5060) at ../.././gcc/ggc-common.cc:641 | |
| 47 | 47 | #9 0x000000010092e332 in c_common_write_pch () at ../.././gcc/c-family/c-pch.cc:175 | |
| 48 | 48 | #10 0x00000001005846da in c_parse_final_cleanups () at ../.././gcc/cp/decl2.cc:4935 | |
| 49 | 49 | #11 0x000000010092ca4d in c_common_parse_file () at ../.././gcc/c-family/c-opts.cc:1266 | |
| 50 | 50 | #12 0x000000010102e259 in compile_file () at ../.././gcc/toplev.cc:444 | |
| 51 | 51 | #13 0x0000000101031ba0 in do_compile (no_backend=false) at ../.././gcc/toplev.cc:2125 | |
| 52 | 52 | #14 0x0000000101031ffb in toplev::main (this=0x7ffffcc2a, argc=44, argv=0xa00020b70) at ../.././gcc/toplev.cc:2277 | |
| 53 | 53 | #15 0x00000001027d2164 in main (argc=44, argv=0xa00020b70) at ../.././gcc/main.cc:39 | |
| 54 | 54 | ---- snip ---- | |
| 55 | 55 | ||
| 56 | - | ||
| 56 | + | IRC debate, including workaround: | |
| 57 | - | ||
| 57 | + | ---- snip ---- | |
| 58 | - | ||
| 58 | + | 11:20:48 jakub | nrubsig: bugs should be reported to bugzilla, not here; I'm afraid I have hundreds of bugs to look at for targets I care about, so unless you can reproduce | |
| 59 | - | ||
| 59 | + | | it on other targets, it will have to be somebody who cares about Windows to analyze it | |
| 60 | - | ||
| 60 | + | 11:22:39 <-- | mcdarienzo (~mcdarienz@67-1-156-28.tcso.qwest.net) has quit (Ping timeout: 480 seconds) | |
| 61 | - | ||
| 61 | + | 11:24:43 d0ggie | pch is broken on windows as allocation using the fixed address might not succeed in general and there is fixed retry loop using delay that kills all | |
| 62 | - | ||
| 62 | + | | performance benefits | |
| 63 | - | ||
| 63 | + | 11:26:55 nrubsig | d0ggie: OUCH. Where is that documented ? | |
| 64 | - | ||
| 64 | + | 11:27:13 jwakely | it probably isn't | |
| 65 | - | ||
| 65 | + | 11:27:54 jwakely | but maybe --disable-libstdcxx-pch should be the default on Windows | |
| 66 | - | ||
| 66 | + | 11:28:42 jwakely | (and maybe everywhere else too ;-) | |
| 67 | - | ||
| 67 | + | 11:28:45 d0ggie | hmm.. actually, cygwin mght not use win32 code so then the next best thing is to update cygwin and disable aslr et. al. | |
| 68 | - | ||
| 68 | + | 11:28:49 sam_ | jwakely++ | |
| 69 | - | ||
| 69 | + | 11:31:06 --> | mcdarienzo (~mcdarienz@67-1-156-28.tcso.qwest.net) has joined #gcc | |
| 70 | - | ||
| 70 | + | 11:31:52 jakub | note, since a few years PCH does support relocation (meant e.g. for Linux PIE support), but it needs extra target support which likely isn't done for Windows | |
| 71 | - | ||
| 71 | + | 11:33:28 d0ggie | but if you want to look at it, the related cygwin emulation code might look a bit cryptic but it is not spread across the entire project but a few files | |
| 72 | - | ||
| 72 | + | ---- snip ---- | |
| 73 | 73 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
nrubsig.kpaste.net RSS