|
From: | Bob Plymale |
Subject: | Re: GNUstep Windows MSVC Toolchain Error |
Date: | Sat, 24 Jul 2021 07:03:13 -0400 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 |
Thanks for the reply Fred,
I am not trying to build codebase by itself, I am following the steps in the following link:
I did the prerequisites steps, and them executed the build.bat file and the script did everything.
Bob
It looks like you are trying to build corebase. This has not been ported over to the new MSVC toolchain. Has base now no longer requires the pthread library, this seems to be missing in the link statement. Do you really need corebase? If so, you will have to add pthread as a dependency there.
Hope this helps,Fred
On the roadI can get this far with the build, but errors out.
I guess, has anyone been able to get this to work on Windows?
I sure could use some assistance on getting this to work if possible.
1 warning generated.
Linking library libgnustep-corebase ...
lld-link: error: undefined symbol: __declspec(dllimport) pthread_once
>>> referenced by C:\Users\bplym\Desktop\tools-windows-msvc\src\gnustep-corebase\Source\CFRunLoop.c:436
>>> obj/libgnustep-corebase.obj/CFRunLoop.c.o:(CFRunLoopGetCurrent)
>>> referenced by C:\Users\bplym\Desktop\tools-windows-msvc\src\gnustep-corebase\Source\CFRunLoop.c:462
>>> obj/libgnustep-corebase.obj/CFRunLoop.c.o:(CFRunLoopGetMain)
lld-link: error: undefined symbol: __declspec(dllimport) pthread_getspecific
>>> referenced by C:\Users\bplym\Desktop\tools-windows-msvc\src\gnustep-corebase\Source\CFRunLoop.c:438
>>> obj/libgnustep-corebase.obj/CFRunLoop.c.o:(CFRunLoopGetCurrent)
lld-link: error: undefined symbol: __declspec(dllimport) pthread_setspecific
>>> referenced by C:\Users\bplym\Desktop\tools-windows-msvc\src\gnustep-corebase\Source\CFRunLoop.c:442
>>> obj/libgnustep-corebase.obj/CFRunLoop.c.o:(CFRunLoopGetCurrent)
lld-link: error: undefined symbol: __declspec(dllimport) pthread_key_create
>>> referenced by C:\Users\bplym\Desktop\tools-windows-msvc\src\gnustep-corebase\Source\CFRunLoop.c:424
>>> obj/libgnustep-corebase.obj/CFRunLoop.c.o:(_CFRunLoopCreateThreadKey)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/c/GNUstep/x64/Debug/share/GNUstep/Makefiles/Instance/library.make:307: obj/gnustep-corebase.lib] Error 1
make[3]: *** [/c/GNUstep/x64/Debug/share/GNUstep/Makefiles/Instance/library.make:292: internal-library-all_] Error 2
make[2]: *** [/c/GNUstep/x64/Debug/share/GNUstep/Makefiles/Master/rules.make:297: libgnustep-corebase.all.library.variables] Error 2
make[1]: *** [/c/GNUstep/x64/Debug/share/GNUstep/Makefiles/Master/library.make:37: internal-all] Error 2
make: *** [/c/GNUstep/x64/Debug/share/GNUstep/Makefiles/Master/serial-subdirectories.make:53: internal-all] Error 2
Failed
c:\Users\bplym\Desktop\tools-windows-msvc>
[Prev in Thread] | Current Thread | [Next in Thread] |