pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Windows 10/11 MSYS2 UCRT64 bootstrap



My "rookie" mistakes did not include failing to git the right pkgsrc
for Windows, shoulda mentioned that as proof that I really do rtfm.

But somehow, I got my signals crossed on MSYS2...

> 
> # pacman -S base-devel gcc
>

Oops. Before revealing the proper command, my other screwup was not
fixing the stupid power button... this is general Windows advice that
bootcamp users should pay particular heed to, as what all it's doing is
kinda opaque.

What I'm getting at, is click on the power icon, then shift-click on
shutdown, and change your settings as you will. I got really crossed up
by delaying reboots, then "powering off" or failing to hit the "option"
key quickly enough to avoid booting to Mac. Do what's best for you.
Apple and Microsoft think it would be faster to preserve registry state
on poweroff? Ugh. That's why your env is screwed up in MSYS2, dummy!

I have now disabled the "fast" boot "feature" which writes/reads a
hidden SYSTEM file to disk on shutdown/startup, equal to 1/2 your RAM,
or 1/4 if you have strong Windows voodoo. Erm... I think my system
reboots faster when it isn't writing a 32GB static file, let alone
64GB, and I'd rather it didn't try, when I'm expecting my registry and
env to just reset, lol the joke's on me, why else would I be rebooting?

Oh... This is also why Edge is such pernicious malware. You thought you
restarted the kernel, but no... it's back, has set itself as default
browser, and re-enabled a bunch of "let us spy on you" settings you'd
previously disabled. Because you don't know how to reboot Windows
"properly" ya loser!

# pacman -S mingw-w64-ucrt-x86_64-toolchain

There ya go. Also installs gcc, ncurses etc. and pretty much every
header file you need except...

# ./testbootstrap --prefer-pkgsrc --abi 64
===> running: (cd /usr/pkgsrc/bootstrap/work/bmake && /usr/bin/sh
make-bootstrap.sh) gcc -c -g -O2 -I. -I/usr/pkgsrc/bootstrap/work/bmake
-DHAVE_CONFIG_H -I/usr/pkgsrc/bootstrap/work/bmake/missing
-DNEED_HOST_CDEFS_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024
-DMAKE_VERSION="20200524" -DMACHINE="mingw64_nt-10.0-190453"
-DPKGSRC_MACHINE_ARCH="x86_64"
-D_PATH_DEFSYSPATH="/usr/pkgsrc/bootstrap/work/share/mk" -o main.o
/usr/pkgsrc/bootstrap/work/bmake/main.c
C:/usr/pkgsrc/bootstrap/work/bmake/main.c:119:10: fatal error:
sys/resource.h: No such file or directory 119 | #include
<sys/resource.h> |          ^~~~~~~~~~~~~~~~ compilation terminated.
===> exited with status 1 aborted.

Yeah. The "wrong" toolchain has a resource.h file, which is just copied
from Cygwin. OK, I'll try that, but only after I figure out where
-DMACHINE has gone wrong. Yes, I know resource.h is a generated file,
but how and from where, on this setup? Hmmm...

-Eric


Home | Main Index | Thread Index | Old Index