Thread overview
Looking to make a GDC-12 mingw64 package
May 21, 2022
Chris Piker
May 21, 2022
Adam D Ruppe
May 22, 2022
Chris Piker
Sep 02, 2022
Preetpal
Sep 02, 2022
Preetpal
Sep 05, 2022
Preetpal
Sep 06, 2022
Preetpal
Sep 13, 2022
Preetpal
May 21, 2022

Hi GDC

I've been able to build gdc-12.1 on ubuntu20 using

wget http://mirrors.concertpass.com/gcc/releases/gcc-12.1.0/gcc-12.1.0.tar.xz
tar -xvf gcc-12.1.0.tar.xz
cd gcc-12.1.0
mkdir build
cd build
../configure --prefix=/usr/local/gcc12 --enable-languages=d \
  --enable-libphobos-checking --disable-multilib --program-suffix=-12
make -j6
make install

Now I'm looking to repeat the process for mingw64. I see that I'll need an older version of gdc first, say 11.3. So that's okay, I'll build it twice, but in general I'm wondering if:

  1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

  2. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

The first one is just an information request since the old PKGBUILD files are on github, but the second one is a bit more daunting. Without a previous version of gdc to build gdc it might be hard to get a mingw64 package accepted.

Thanks

May 21, 2022
On Saturday, 21 May 2022 at 21:18:15 UTC, Chris Piker wrote:
>   1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

No patches are required, it is all upstreamed if you use the right settings.

See my comment here:

https://github.com/brechtsanders/winlibs_mingw/issues/48#issuecomment-1044782237


(the maintainer of that repo wants to do binary packages but with pthreads, which has some missing headers. should be an easy patch but i haven't gotten around to it and i guess iain hasn't yet either. but with the configure command i pasted there you can do it)

>   2. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

i don't know anything about this.

May 22, 2022

On Saturday, 21 May 2022 at 21:23:52 UTC, Adam D Ruppe wrote:

>

See my comment here:

https://github.com/brechtsanders/winlibs_mingw/issues/48#issuecomment-1044782237

...an example working configure command, now that's very handy.

Regarding question 2, I hope to see gdc appear in just about any package repository that has gcc. It seems many package repositories (like mingw64) don't include it by default. And since it now takes a D compiler to make a D compiler, getting into the build tree system to start with is going to be a hurdle.

Maybe someone who has dealt with other distributions such as Debian can chime in with advice on how to approach this problem with the mingw crowd.

September 02, 2022

On Saturday, 21 May 2022 at 21:23:52 UTC, Adam D Ruppe wrote:

>

On Saturday, 21 May 2022 at 21:18:15 UTC, Chris Piker wrote:

>
  1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

No patches are required, it is all upstreamed if you use the right settings.

See my comment here:

https://github.com/brechtsanders/winlibs_mingw/issues/48#issuecomment-1044782237

(the maintainer of that repo wants to do binary packages but with pthreads, which has some missing headers. should be an easy patch but i haven't gotten around to it and i guess iain hasn't yet either. but with the configure command i pasted there you can do it)

>
  1. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

i don't know anything about this.

I had issues trying to replicate the build process as per your comment.

The first issue was that the git tag you said you checked out (releases/gcc-11.2) did not exist. That was easily solved with the following command: git checkout releases/gcc-11.2.0 (did they change their release tags?)

The second issue was that the compilation of GCC did not work for version gcc-11.2.0 on my version of MinGW. Many of the configure flags resulted in warnings in the configure process since they were not recognized (should these flags be in the configure command?):

configure: WARNING: unrecognized options: --disable-bootstrap, --disable-werror, --disable-libgomp, --disable-libmudflap, --disable-libquadmath, --disable-libitm, --disable-libsanitizer, --disable-libstdcxx-pch, --with-arch, --with-gmp, --with-mpfr, --with-mpc, --with-isl, --enable-libphobos

Then I ran into an issue running the make command:

$ make -j12
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-mingw32.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="" \
HEADERS="options.h insn-constants.h config/vxworks-dummy.h config/i386/biarch64.h config/i386/i386.h config/i386/unix.h config/i386/bsd.h config/i386/gas.h config/dbxcoff.h config/i386/cygming.h config/i386/mingw32.h config/i386/mingw-w64.h config/i386/mingw-stdint.h config/initfini-array.h defaults.h" DEFINES="LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" \
/bin/sh ../gcc/mkconfig.sh tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="config/i386/i386-protos.h tm-preds.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh tm_p.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-mingw32.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh bconfig.h
make: *** No rule to make target '../build-x86_64-w64-mingw32/libiberty/libiberty.a', needed by 'build/genmodes.exe'.  Stop.
make: *** Waiting for unfinished jobs....

If we are going to try to get the package for GDC into mingw, we need to be able to reproduce the compilation process. Are the commands you gave in your comment not the actual commands you actually ran in your mingw installation? Are you using MSYS2? If you are using MSYS2, which of the three x86_64 compiler toolchains are you using (clang64, mingw64, or ucrt64)?

September 02, 2022
>

The second issue was that the compilation of GCC did not work for version gcc-11.2.0 on my version of MinGW. Many of the configure flags resulted in warnings in the configure process since they were not recognized (should these flags be in the configure command?):

configure: WARNING: unrecognized options: --disable-bootstrap, --disable-werror, --disable-libgomp, --disable-libmudflap, --disable-libquadmath, --disable-libitm, --disable-libsanitizer, --disable-libstdcxx-pch, --with-arch, --with-gmp, --with-mpfr, --with-mpc, --with-isl, --enable-libphobos

These are probably from the configure flags shown when running gcc --version. When I use the same configure flags as the build of gcc I am using, I also get the warning for unrecognized options.

September 05, 2022

On Saturday, 21 May 2022 at 21:18:15 UTC, Chris Piker wrote:

>

Hi GDC

I've been able to build gdc-12.1 on ubuntu20 using

wget http://mirrors.concertpass.com/gcc/releases/gcc-12.1.0/gcc-12.1.0.tar.xz
tar -xvf gcc-12.1.0.tar.xz
cd gcc-12.1.0
mkdir build
cd build
../configure --prefix=/usr/local/gcc12 --enable-languages=d \
  --enable-libphobos-checking --disable-multilib --program-suffix=-12
make -j6
make install

Now I'm looking to repeat the process for mingw64. I see that I'll need an older version of gdc first, say 11.3. So that's okay, I'll build it twice, but in general I'm wondering if:

  1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

  2. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

The first one is just an information request since the old PKGBUILD files are on github, but the second one is a bit more daunting. Without a previous version of gdc to build gdc it might be hard to get a mingw64 package accepted.

Thanks

My response to the the numbered questions:

  1. I have successfully built gdc version 11.3.0 using gcc 12.2.0 (this is possible due to the others who have done work on porting GDC to Windows) in the mingw64 environment by modifying the MINGW-packages gcc PKGBUILD build script that is used for building all the GCC packages (like the gfortran, gcc, objective-c/c++, libgccjit, and Ada packages). I used the command MAKEFLAGS="-j12" MINGW_ARCH=mingw64 makepkg-mingw -sLf and this PKGBUILD build script based on the last version (https://github.com/preetpalS/MINGW-packages/commit/fc660082fabe2181cae188cb10a99566d8301768) of the GCC build script that built version 11.3 of the compiler. Note that it is a WIP as I have not added any code to package the built gdc compiler and there are also some other issues (see below).

  2. To build a package for gdc-12, you will have to compile gdc (gcc version 11 (11.3 or later)) with the same configuration as the rest of the gcc packages and then use that compiled gdc to bootstrap gdc-12 as a part of the build process of gcc-12.2.0 (or a later version). For gdc, I think you could create a separate package that is based on version 11.3 of the gcc sources, then once that is in the package system, modify the PKGBUILD script for the main gcc package so that it includes the necessary packaging for gdc and in a single commit add that change as well as remove the separate gdc package to get it in the system.

Here is the diff of the PKGBUILD script I used for gdc versus what was used for GCC version 11.3:

$ diff PKGBUILD ../mingw-w64-gcc/PKGBUILD
8,10c8,10
< _enable_ada=no
< _enable_objc=no
< _enable_jit=no
---
> _enable_ada=yes
> _enable_objc=yes
> _enable_jit=yes
185c185
<   local _languages="d"
---
>   local _languages="c,lto,c++,fortran"
224a225
>     --enable-threads=${_threads} \
232d232
<     --enable-libphobos \

Here are some issues that I encountered:

  • The only relevant changes related to gdc in the PKGBUILD script is the enabling of libphobos (--enable-libphobos) in the configure flags and the removal of the flag that changes the default threading of GCC on Windows to posix (--enable-threads=${_threads} where _threads="posix"). The main issue related to posix threads has already been reported in the GDC issue tracker and based on my limited testing I believe that it is the only issue on the gdc side that is preventing gdc from being package for mingw64 (in msys2).
  • When compiling gcc 11.3.0 without any modifications for gdc, Ada could not be compiled so I disabled it in the PKGBUILD script.
  • When compiling gcc 11.3.0 with posix threading not being the default, libgccjit did not compile (I also disabled objc and fortran; c, lto, and c++ are also built even when d is the only language in the local_languages variable).

The gdc compiler appears to be working on Windows with no issues (with gcc's default threading on Windows) based on a couple of tests:

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ cat message_passing.d
import std.stdio : writeln;
import std.concurrency : receive, receiveOnly,
   send, spawn, thisTid, Tid;

/*
A custom struct that is used as a message
for a little thread army.
*/
struct NumberMessage {
   int number;
   this(int i) {
       this.number = i;
   }
}

/*
Message is used as a stop sign for other
threads
*/
struct CancelMessage {
}

/// Acknowledge a CancelMessage
struct CancelAckMessage {
}

/*
The thread worker main
function which gets its parent id
passed as argument.
*/
void worker(Tid parentId)
{
   bool canceled = false;
   writeln("Starting ", thisTid, "...");

   while (!canceled) {
     receive(
       (NumberMessage m) {
         writeln("Received int: ", m.number);
       },
       (string text) {
         writeln("Received string: ", text);
       },
       (CancelMessage m) {
         writeln("Stopping ", thisTid, "...");
         send(parentId, CancelAckMessage());
         canceled = true;
       }
     );
   }
}

void main()
{
   Tid[] threads;
   // Spawn 10 little worker threads.
   for (size_t i = 0; i < 10; ++i) {
       threads ~= spawn(&worker, thisTid);
   }

   // Odd threads get a number, even threads
   // a string!
   foreach(int idx, ref tid; threads) {
       import std.string : format;
       if (idx  % 2)
           send(tid, NumberMessage(idx));
       else
           send(tid, format("T=%d", idx));
   }

   // And all threads get the cancel message!
   foreach(ref tid; threads) {
       send(tid, CancelMessage());
   }

   // And we wait until all threads have
   // acknowledged their stop request
   foreach(ref tid; threads) {
       receiveOnly!CancelAckMessage;
       writeln("Received CancelAckMessage!");
   }
}

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ../src/mingw64/bin/gdc.exe message_passing.d -o message_passing
message_passing.d:64:5: warning: foreach: loop index implicitly converted from 'size_t' to 'int' [-Wdeprecated]
  64 |     foreach(int idx, ref tid; threads) {
     |     ^

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ./message_passing.exe
Starting Tid(1b97d031100)...
Starting Tid(1b97d031200)...
Starting Tid(1b97d031300)...
Starting Tid(1b97d031400)...
Starting Tid(1b97d031500)...
Starting Tid(1b97d031600)...
Starting Tid(1b97d031700)...
Starting Tid(1b97d031800)...
Starting Tid(1b97d031900)...
Starting Tid(1b97d031a00)...
Received string: T=2
Received string: T=0
Received string: T=4
Received int: 5
Received string: T=8
Received int: 7
Received int: 3
Received int: 1
Received string: T=6
Received int: 9
Stopping Tid(1b97d031200)...
Stopping Tid(1b97d031500)...
Stopping Tid(1b97d031600)...
Stopping Tid(1b97d031800)...
Stopping Tid(1b97d031700)...
Stopping Tid(1b97d031900)...
Stopping Tid(1b97d031100)...
Stopping Tid(1b97d031a00)...
Received CancelAckMessage!
Received CancelAckMessage!
Stopping Tid(1b97d031400)...
Received CancelAckMessage!
Received CancelAckMessage!
Received CancelAckMessage!
Received CancelAckMessage!
Received CancelAckMessage!
Received CancelAckMessage!
Stopping Tid(1b97d031300)...
Received CancelAckMessage!
Received CancelAckMessage!

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ cat parallelism.d
import std.parallelism : task,
   taskPool, TaskPool;
import std.array : array;
import std.stdio : writeln;
import std.range : iota;

string theTask()
{
   import core.thread : dur, Thread;
   Thread.sleep( dur!("seconds")(1) );
   return "Hello World";
}

void main()
{
   // taskpool with two threads
   auto myTaskPool = new TaskPool(2);
   // Stopping the task pool is important!
   scope(exit) myTaskPool.stop();

   // Start long running task
   // and do some other stuff in the mean
   // time..
   auto task = task!theTask;
   myTaskPool.put(task);

   auto arr = iota(1, 10).array;
   foreach(ref i; myTaskPool.parallel(arr)) {
       i = i*i;
   }

   writeln(arr);

   import std.algorithm.iteration : map;

   // Use reduce to calculate the sum
   // of all squares in parallel.
   auto result = taskPool.reduce!"a+b"(
       0.0, iota(100).map!"a*a");
   writeln("Sum of squares: ", result);

   // Get our result we sent to background
   // earlier.
   writeln(task.yieldForce);
}

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ../src/mingw64/bin/gdc.exe parallelism.d -o parallelism

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ./parallelism.exe
[1, 4, 9, 16, 25, 36, 49, 64, 81]
Sum of squares: 328350
Hello World

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ../src/mingw64/bin/gdc.exe --version
gdc.exe (Rev2, Built by MSYS2 project) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ git log -n 1
commit ce1d6c3ada291332c782516ad81626162d39f2d6 (HEAD -> gcc-11.3.0, origin/gcc-11.3.0)
Author: Preetpal Sohal <preetpal.sohal@gmail.com>
Date:   Sun Sep 4 20:23:11 2022 -0700

   WIP only build D (other packages need pthreads like jit)

September 06, 2022

I am assuming you would like to have GDC available in the MSYS2 MINGW32 , MINGW64, and UCRT64 environments (which is what I wanted). They have an open issue in the MINGW packages repository for adding support for GDC that demonstrates interest in making this happen.

I looked into fixing the issue that I ran into when the configure flags set the threading model to posix threading and determined that I will not be able to fix the issue (at least with my current knowledge). At the minimum you would have to modify two files to add different versions of posix code for MinGW in the druntime:

There are more than a dozen instances of conditional compilation related to posix threading for different posix-based environments. This problem could be worse if the three different MSYS2 environments need different conditional code compilation paths (hopefully they don't). This is also made more difficult since these files have been modified since the GCC version 11.3.0 release so the changes would have to be done against the recent version as well as the GCC 11.3.0 version (I am assuming that the GCC 11.3.0 GCC Version is needed to bootstrap the GDC in version 12+ of GCC).

Based on this comment I saw when looking at the changes to the files mentioned earlier, there is a possibility of the files being auto-generated during the build process in the future. Hopefully this issue will be resolved through auto-generation.

September 13, 2022

There are more issues with the GDC 11.3.0 that I compiled on Windows earlier (it was compiled with win32 threads). The following code has issues compiling (find_file.d):

import std.file;
import std.stdio;

/// Command line tool to find files in directories
int main(string[] args) {
    if (args.length < 2) {
        writefln("Usage: %s wildcard", args[0]);
        return 1;
    }
    string wildcard = args[1];

    auto results = dirEntries(".", wildcard, SpanMode.depth);
    foreach(string result; results) {
        writeln(result);
    }
    return 0;
}

The following is a log of the compilation:

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ../src/mingw64/bin/gdc.exe -v
Using built-in specs.
COLLECT_GCC=B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\mingw64\bin\gdc.exe
COLLECT_LTO_WRAPPER=B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-11.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/include --libexecdir=/mingw64/lib --enable-bootstrap --enable-checking=release --with-arch=x86-64 --with-tune=generic --enable-languages=d --enable-shared --enable-static --enable-libatomic --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto --enable-libgomp --enable-libphobos --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-debug --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: win32
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (Rev2, Built by MSYS2 project)

preet@DESKTOP MINGW64 /b/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/tests_for_d_compiler
$ ../src/mingw64/bin/gdc.exe find_file.d
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8Protocol17getProtocolByTypeMFNbNeEQBuQBt12ProtocolTypeZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:443: undefined reference to `getprotobynumber'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress4portMxFNaNbNdNiNfZt':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1504: undefined reference to `ntohs'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress4addrMxFNaNbNdNiNfZk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1510: undefined reference to `ntohl'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket16Internet6Address4portMxFNaNbNdNiNfZt':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1775: undefined reference to `ntohs'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket7isAliveMxFNdNeZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2764: undefined reference to `getsockopt'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket8shutdownMFNbNiNeEQBkQBj14SocketShutdownZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2867: undefined reference to `shutdown'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6_closeFNbNiEQBfQBe8socket_tZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2875: undefined reference to `closesocket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket4sendMFNeAxvEQBfQBe11SocketFlagsZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2963: undefined reference to `send'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6sendToMFNeAxvEQBhQBg11SocketFlagsCQCbQCa7AddressZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2989: undefined reference to `sendto'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6sendToMFNeAxvEQBhQBg11SocketFlagsZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3013: undefined reference to `sendto'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket7receiveMFNeAvEQBhQBg11SocketFlagsZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3038: undefined reference to `recv'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket11receiveFromMFNeAvEQBmQBl11SocketFlagsKCQChQCg7AddressZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3071: undefined reference to `recvfrom'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket11receiveFromMFNeAvEQBmQBl11SocketFlagsZl':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3103: undefined reference to `recvfrom'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket18_sharedStaticDtor2FNbNiZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:325: undefined reference to `WSACleanup'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket12setKeepAliveMFNeiiZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3300: undefined reference to `WSAIoctl'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6__ctorMFNeEQBeQBd13AddressFamilyEQCaQBz10SocketTypeEQCtQCs12ProtocolTypeZCQDpQDoQDk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket8blockingMFNdNebZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2730: undefined reference to `ioctlsocket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket4bindMFNeCQBcQBb7AddressZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2770: undefined reference to `bind'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6listenMFNeiZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2814: undefined reference to `listen'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket13remoteAddressMFNdNeZCQBpQBo7Address':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2915: undefined reference to `getpeername'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket12localAddressMFNdNeZCQBoQBn7Address':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2927: undefined reference to `getsockname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket9getOptionMFNeEQBhQBg17SocketOptionLevelEQChQCg12SocketOptionAvZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3132: undefined reference to `getsockopt'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket9setOptionMFNeEQBhQBg17SocketOptionLevelEQChQCg12SocketOptionAvZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3179: undefined reference to `setsockopt'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket7connectMFNeCQBfQBe7AddressZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2781: undefined reference to `connect'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6acceptMFNeZCQBfQBeQBa':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2840: undefined reference to `accept'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6_closeFNbNiEQBfQBe8socket_tZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2875: undefined reference to `closesocket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket18_sharedStaticCtor1FZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:295: undefined reference to `WSAStartup'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket18_sharedStaticDtor2FNbNiZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:325: undefined reference to `WSACleanup'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket12InternetHost__T13getHostNoSyncVAyaa118_0a2020202020202020202020206175746f2078203d2068746f6e6c28706172616d293b0a2020202020202020202020206175746f206865203d20676574686f73746279616464722826782c20342c206361737428696e7429204164647265737346616d696c792e494e4554293b0a2020202020202020TkZQKdMFkZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d-mixin-688:689: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d-mixin-688:690: undefined reference to `gethostbyaddr'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress6__ctorMFNaNbNiNfktZCQBxQBwQBs':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1547: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1548: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress16toHostNameStringMxFNfZAya':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1605: undefined reference to `ntohl'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress6__ctorMFNaNbNiNftZCQBwQBvQBr':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1556: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket16Internet6Address6__ctorMFNaNbNiNfG16htZCQCbQCaQBw':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1824: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket16Internet6Address6__ctorMFNaNbNiNftZCQBxQBwQBs':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1832: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6__ctorMFNeEQBeQBd13AddressFamilyEQCaQBz10SocketTypeEQCtQCs12ProtocolTypeZCQDpQDoQDk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6_closeFNbNiEQBfQBe8socket_tZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2875: undefined reference to `closesocket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6selectFNeCQBdQBc9SocketSetQrQtPSQBzQBy7TimeValZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3427: undefined reference to `select'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:3431: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6__ctorMFNeEQBeQBd13AddressFamilyEQCaQBz10SocketTypeEQCtQCs12ProtocolTypeZCQDpQDoQDk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress6__ctorMFNaNbNiNfktZCQBxQBwQBs':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1547: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1548: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket7Service8populateMFNaNbPS4core3sys7windows8winsock27serventZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:503: undefined reference to `ntohs'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket12InternetHost8populateMFNaNbPS4core3sys7windows8winsock27hostentZv':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:677: undefined reference to `ntohl'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress12toAddrStringMxFNeZAya':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1573: undefined reference to `inet_ntoa'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress12addrToStringFNbNekZAya':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1651: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1652: undefined reference to `inet_ntoa'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket8hostNameFNdNeZAya':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2905: undefined reference to `gethostname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8Protocol17getProtocolByNameMFNbNexAaZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:430: undefined reference to `getprotobyname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket7Service16getServiceByNameMFNbNexAaxQdZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:535: undefined reference to `getservbyname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket7Service16getServiceByPortMFNbNetxAaZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:547: undefined reference to `getservbyport'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket12InternetHost__T13getHostNoSyncVAyaa75_0a202020202020202020202020202020206175746f206865203d20676574686f737462796e616d6528706172616d2e74656d7043537472696e672829293b0a202020202020202020202020TAxaZQGwMFQjZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d-mixin-688:689: undefined reference to `gethostbyname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket12InternetHost__T13getHostNoSyncVAyaa245_0a2020202020202020202020206175746f2078203d20696e65745f6164647228706172616d2e74656d7043537472696e672829293b0a202020202020202020202020656e666f726365287820213d20494e414444525f4e4f4e452c0a202020202020202020202020202020206e657720536f636b6574506172616d65746572457863657074696f6e2822496e76616c6964204950763420616464726573732229293b0a2020202020202020202020206175746f206865203d20676574686f73746279616464722826782c20342c206361737428696e7429204164647265737346616d696c792e494e4554293b0a2020202020202020TAxaZQTzMFQjZb':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d-mixin-688:689: undefined reference to `inet_addr'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d-mixin-688:692: undefined reference to `gethostbyaddr'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress5parseFNbNexAaZk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1641: undefined reference to `inet_addr'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1641: undefined reference to `ntohl'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6__ctorMFNeEQBeQBd13AddressFamilyEQCaQBz10SocketTypexAaZCQCxQCwQCs':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2668: undefined reference to `getprotobyname'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket6Socket6__ctorMFNeEQBeQBd13AddressFamilyEQCaQBz10SocketTypeEQCtQCs12ProtocolTypeZCQDpQDoQDk':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:2648: undefined reference to `socket'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress6__ctorMFNfxAatZCQBtQBsQBo':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1534: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1535: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket15InternetAddress6__ctorMFNaNbNiNfktZCQBxQBwQBs':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1547: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1548: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1547: undefined reference to `htonl'
C:\msys64\mingw64\bin/ld.exe: B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:1548: undefined reference to `htons'
C:\msys64\mingw64\bin/ld.exe: B:/D/gdc/MINGW-packages-gdc-11.3.0-build/mingw-w64-gdc/src/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../lib\libgphobos.a(socket.o): in function `_D3std6socket8_lasterrFNbNiNfZi':
B:\D\gdc\MINGW-packages-gdc-11.3.0-build\mingw-w64-gdc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libphobos\src/../../../../gcc-11.3.0/libphobos/src/std/socket.d:74: undefined reference to `WSAGetLastError'
collect2.exe: error: ld returned 1 exit status

preet@DESKTOP  MINGW64