![]() |
[QUOTE=preda;498708]I don't know what causes the errors you see. Can you build some other version (3.x) in the same setup successfully? (i.e. are the errors caused by a difference in GpuOwl, or by the setup)[/QUOTE]
Yes. It looks to me like the change was 4.x. I've built and successfully run v2.0, v3.3, v3.5, v3.6, 3.8, and 3.9, all on the same machine, same config of mingw64/msys2. (I'm using v3.8 for production PRP runs; 3.9 was a bit slower. Latest example: {"exponent":83871797, "worktype":"PRP-3", "status":"C", "program":{"name":"gpuowl", "version":"3.8-91c52fa-OpenCL"}, "timestamp":"2018-10-24 19:08:20 UTC", "user":"kriesel", "computer":"condorella-rx480",...) When multiple flavors of v4.x would not build here, is when I did the mingw/msys2 update. No go on 4.6 or v4.7 So I did a full update on mingw64/msys2, and still no go on the most recent v4.7 commit. Just now tried 4.3, also no go. [CODE]ken@condorella MINGW64 ~/gpuowl-compile/v4.3 $ g++ -std=c++17 -O2 -DREV=\"537c681\" -Wall Worktodo.cpp Result.cpp common.cpp gpuowl.cpp Gpu.cpp clwrap.cpp Task.cpp checkpoint.cpp timeutil.cpp Kset.cpp Args.cpp GCD.cpp -o openowl -lOpenCL -lgmp -pthread -L/c/Windows/System32 -L. Gpu.cpp:16:28: error: static assertion failed: size long static_assert(sizeof(long) == 8, "size long"); ~~~~~~~~~~~~~^~~~ Gpu.cpp: In function 'PRPState loadPRP(Gpu*, u32, u32, u32)': Gpu.cpp:109:7: warning: unknown conversion type character 'l' in format [-Wformat=] log("%s loaded: %d/%d, B1 %u, blockSize %d, %016llx (expected %016llx)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gpu.cpp:109:7: warning: unknown conversion type character 'l' in format [-Wformat=] Gpu.cpp:109:7: warning: too many arguments for format [-Wformat-extra-args] Gpu.cpp: In member function 'bool Gpu::isPrimePRP(u32, const Args&, u32*, u64*, u64*, std::__cxx11::string*)': Gpu.cpp:217:11: warning: unknown conversion type character 'l' in format [-Wformat=] log("%s %8d / %d, %016llx (base %016llx)\n", isPrime ? "PP" : "CC", kEnd, E, res64, baseRes64); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gpu.cpp:217:11: warning: unknown conversion type character 'l' in format [-Wformat=] Gpu.cpp:217:11: warning: too many arguments for format [-Wformat-extra-args] In file included from Task.cpp:4: OpenTF.h: In member function 'virtual std::__cxx11::string OpenTF::findFactor(u32, u32, u32, u32, u32, u64*, u64*, bool)': OpenTF.h:209:9: warning: unknown conversion type character 'l' in format [-Wformat=] log("TF %u %u-%u, K %llu - %llu, %dx%d + 1x%d groups, start from class #%u\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OpenTF.h:209:9: warning: unknown conversion type character 'l' in format [-Wformat=] OpenTF.h:209:9: warning: format '%d' expects argument of type 'int', but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:209:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:209:9: warning: too many arguments for format [-Wformat-extra-args] OpenTF.h:243:11: warning: unknown conversion type character 'l' in format [-Wformat=] log("TF %u %d-%d %.2f%%, class %4d (%4d), %.3fs (%.0f GHz), ETA %dd %02d:%02d, FCs %llu (%.4f%%)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OpenTF.h:243:11: warning: format '%f' expects argument of type 'double', but argument 13 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:243:11: warning: too many arguments for format [-Wformat-extra-args] ken@condorella MINGW64 ~/gpuowl-compile/v4.3 $ g++ --version g++.exe (Rev3, Built by MSYS2 project) 8.2.0 Copyright (C) 2018 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. [/CODE]revisit V4.7 with -Wall[CODE]ken@condorella MINGW64 ~/gpuowl-compile/v4.7 $ g++ -std=c++17 -O2 -DREV=\"5b01b65\" -Wall Worktodo.cpp Result.cpp common.cpp gpuowl.cpp Gpu.cpp clwrap.cpp Task.cpp checkpoint.cpp timeutil.cpp Args.cpp GCD.cpp Primes.cpp Stats.cpp state.cpp Signal.cpp -o openowl -lOpenCL -lgmp -pthread -L/c/Windows/System32 -L. Gpu.cpp: In function 'PRPState loadPRP(Gpu*, u32, u32, u32)': Gpu.cpp:564:7: warning: unknown conversion type character 'l' in format [-Wformat=] log("%s loaded: %d/%d, B1 %u, blockSize %d, %016llx (expected %016llx)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gpu.cpp:564:7: warning: unknown conversion type character 'l' in format [-Wformat=] Gpu.cpp:564:7: warning: too many arguments for format [-Wformat-extra-args] Gpu.cpp: In member function 'PRPResult Gpu::isPrimePRP(u32, const Args&, u32, u32)': Gpu.cpp:710:11: warning: unknown conversion type character 'l' in format [-Wformat=] log("%s %8d / %d, %016llx (base %016llx)\n", isPrime ? "PP" : "CC", kEnd, E, finalRes64, baseRes64); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gpu.cpp:710:11: warning: unknown conversion type character 'l' in format [-Wformat=] Gpu.cpp:710:11: warning: too many arguments for format [-Wformat-extra-args] In file included from Task.cpp:4: OpenTF.h: In member function 'virtual std::__cxx11::string OpenTF::findFactor(u32, u32, u32, u32, u32, u64*, u64*, bool)': OpenTF.h:209:9: warning: unknown conversion type character 'l' in format [-Wformat=] log("TF %u %u-%u, K %llu - %llu, %dx%d + 1x%d groups, start from class #%u\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OpenTF.h:209:9: warning: unknown conversion type character 'l' in format [-Wformat=] OpenTF.h:209:9: warning: format '%d' expects argument of type 'int', but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:209:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:209:9: warning: too many arguments for format [-Wformat-extra-args] OpenTF.h:243:11: warning: unknown conversion type character 'l' in format [-Wformat=] log("TF %u %d-%d %.2f%%, class %4d (%4d), %.3fs (%.0f GHz), ETA %dd %02d:%02d, FCs %llu (%.4f%%)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OpenTF.h:243:11: warning: format '%f' expects argument of type 'double', but argument 13 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] OpenTF.h:243:11: warning: too many arguments for format [-Wformat-extra-args] C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: d000034.o:(.idata$5+0x0): multiple definition of`__imp___C_specific_handler'; d000028.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: in function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: in function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccEYzJ6A.o:common.cpp:(.text+0x4cb): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccze0QNS.o:Args.cpp:(.text+0x29): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): in function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): in function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): in function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): in function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status [/CODE][CODE]Built: v20-dbc5a01 v33-bc4a29f v35-457601f v36-(20180810) v38-3aa5452 v38-5d10342 v38-91c52fa v39-da61ebd Build failed: 4.3-537c681 4.6-bb691cb 4.7-f885f88 4.7-5b01b65[/CODE] |
[QUOTE=kriesel;498711]Yes. It looks to me like the change was 4.x. I've built and successfully run v2.0, v3.3, v3.5, v3.6, 3.8, and 3.9, all on the same machine, same config of mingw64/msys2. (I'm using v3.8 for production PRP runs; 3.9 was a bit slower.[/QUOTE]
Thanks! To me the link errors still seem unrelated to GpuOwl, I can't make sense of them. Just to confirm, you can still build v3.8 *after* the msys2 update? what if you pass "-std=c++17" to the v3.8 build? |
[QUOTE=preda;498717]Thanks! To me the link errors still seem unrelated to GpuOwl, I can't make sense of them. Just to confirm, you can still build v3.8 *after* the msys2 update? what if you pass "-std=c++17" to the v3.8 build?[/QUOTE]
Re building V3.8 again now? No. But that does not exonerate 4.x code and build processes, since V3.8 (multiple commits) and v3.9 built on the same environment as no 4.x commit I tried. I suspect it's again time to backup user data, completely remove mingw/msys2, and reinstall and try again. Update does not seem to yield the same results as fresh install. The build process and requirements between 3.x and 4.x seem quite different, so there may still be issues after that's done. |
[QUOTE=preda;498566]My Vega64 GPU is down-clocked to 1401MHz (for temperature & noise reasons), and at that point it takes exactly 150W, not bad. Part of the performance comes from the better compiler in ROCm (compared to amdgpu-pro), but I think amdgpu-pro would gradually follow the same improvements a couple of months behind ROCm.
I'm looking forward to what GPU AMD brings next. Vega64 are mostly retired from sale now, from what I see.[/QUOTE] Asus Radeon RX580, nominal clock, typical power 144W. |
[QUOTE=kriesel;498823]But that does not exonerate 4.x code and build processes[/QUOTE]
Ok, I was just trying to establish if there is anything in 4.x code (new relative to 3.8), that is causing the problems that you see. If there is, it's my burden to fix that. If OTOH the problems are caused by something related e.g. to msys2, then I don't need to fix that. Checking out 3.8 to attempt build in your current environment should be relatively easy. If that doesn't work, than it's on msys2 or environment. |
[QUOTE=preda;498831]
Checking out 3.8 to attempt build in your current environment should be relatively easy. If that doesn't work, than it's on msys2 or environment.[/QUOTE]Already done, failed, per my previous post here. Sorry if that wasn't clear before. I'm contemplating looking into virtualbox with gpu passthrough on my system with amd gpus, and attempting linux and windows builds on the same hardware set there. I've done dual-boot systems before also, but that is an ongoing nuisance. Windows host for virtualbox, linux guest _might_ give me Windows remote desktop access to both the Windows host and the linux guest; dual-boot would be tedious, and not provide RDP remote access to the linux session. Another possibility is to flip one of my Core 2 Duo systems from NVIDIA (Quadro 2000s) to AMD with a couple currently idle RX550s and (shudder) linux sole or host OS; system ram is limited there. |
[QUOTE=kriesel;498832]... virtualbox with gpu passthrough on my system with amd gpus, and attempting linux and windows builds on the same hardware set there. I've done dual-boot systems before also, but that is an ongoing nuisance. Windows host for virtualbox, linux guest _might_ give me Windows remote desktop access to both the Windows host and the linux guest; dual-boot would be tedious, and not provide RDP remote access to the linux session. Another possibility is to flip one of my Core 2 Duo systems from NVIDIA (Quadro 2000s) to AMD with a couple currently idle RX550s and (shudder) linux sole or host OS; system ram is limited there.[/QUOTE]
Looks like, after a quick peruse of the 5.2.20 virtualbox user manual, my recall was rather too optimistic about gpu access, and too pessimistic about RDP. I think it's not possible to access the gpus' math capabilities from a VM guest. VB has VRDP a superset of RDP. So, it looks like dual boot will be required to run Win and lin gpu code on the same cpu, same gpus. Build attempts could be done in a VM, and when successful, boot to the appropriate host OS to run it. Possible layout: Primary boot Win7, on which virtualbox is installed with a linux guest VM. Alternate boot, same version & distro of linux as the guest VM, added after Win7 install. |
kriesel,
have you tried taking -O2 off the compile. Thruout my years, I have seen that work a depressing number of times. |
Everything is broken and I don't know why
1 Attachment(s)
[QUOTE=preda;498831]Ok, I was just trying to establish if there is anything in 4.x code (new relative to 3.8), that is causing the problems that you see. If there is, it's my burden to fix that.
If OTOH the problems are caused by something related e.g. to msys2, then I don't need to fix that. Checking out 3.8 to attempt build in your current environment should be relatively easy. If that doesn't work, than it's on msys2 or environment.[/QUOTE] I have various commits stored locally and am not using git to download them. (I download once and store locally because of slow internet speed as well as dodging some learning curve.) I think the current release version of msys2/mingw64 is broken, and possibly g++ 8.2.0 rev 3 there also. It's broken the ability to do build processes that used to work. Looks like I won't be doing any more gpuowl builds for Windows until those are fixed. In the August 10 to 26 time frame I was able to build V1.10, 2.0, 3.3, 3.5, 3.6, 3.8, 3.9. V4.x would not build in that same environment. Updating, or remove/replace of the environment, to attempt to resolve the V4.x build failures, has created a situation where those previously successful builds can not be repeated by repeating the build commands that succeeded in August. And apparently the build environment that worked for 1.x to 3.x can now not be restored by the method it was originally established. None of 2.0, 3.5, 3.8, or 4.7 will build in the current environment; I haven't retried 1.10, 3.3, 3.6, 3.9, 4.3, or 4.6 but expect similar results. Executables I already have made still run. I can't duplicate them, even after a fresh install. [CODE]mys2 directory tree user data backup complete removal of msys/mingw environment restart windows, OS updates pending get applied install msys/mingw over, no error messages, fully updated. [/CODE][CODE]ken@condorellaken@condorella MINGW64 ~/gpuowl-compile/v4.7 $ g++ -std=c++17 -O2 -DREV=\"5b01b65\" Worktodo.cpp Result.cpp common.cpp gpuowl.cpp Gpu.cpp clwrap.cpp Task.cpp checkpoint.cpp timeutil.cpp Args.cppGCD.cpp Primes.cpp Stats.cpp state.cpp Signal.cpp -o openowl -lOpenCL -lgmp -pthread -L/c/Windows/System32 -L. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: d000034.o:(.idata$5+0x0): multiple definition of`__imp___C_specific_handler'; d000028.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: in function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: in function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccCBiz5C.o:common.cpp:(.text+0x4cb): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\tmp\ccRlimfO.o:Args.cpp:(.text+0x29): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): in function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): in function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): in function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): in function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status MINGW64 ~/gpuowl-compile/v4.7 ken@condorella MINGW64 ~/gpuowl-compile/v4.7 $ g++ --version g++.exe (Rev3, Built by MSYS2 project) 8.2.0 Copyright (C) 2018 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. [/CODE]Using your stock make file for v3.5, except for git related:[CODE]ken@condorella MINGW64 ~/gpuowl-compile/v3.5 $ make openowl g++ -O2 -DREV=\"457601f\" -std=c++14 OpenGpu.cpp Gpu.cpp common.cpp gpuowl.cpp -o openowl -lOpenCL -L/c/Windows/System32 -lm d000035.o:(.idata$5+0x0): multiple definition of `__imp___C_specific_handler' d000029.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' C:\msys64\tmp\ccdxptCL.o:common.cpp:(.text+0x145): undefined reference to `__imp___acrt_iob_func' C:\msys64\tmp\ccGcYgeN.o:gpuowl.cpp:(.text$_Z6printfPKcz[_Z6printfPKcz]+0x29): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): In function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): In function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): In function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to`__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): In function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status make: *** [Makefile:14: openowl] Error 1 [/CODE]Using the stock makefile for v3.8, except for git related: [CODE]ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ make openowl-notf g++ -DREV=\"91c52fa\" -std=c++14 OpenGpu.cpp NoTF.cpp clwrap.cpp common.cpp gpuowl.cpp -o openowl -lOpenCL -L/opt/rocm/opencl/lib/x86_64 -L/opt/amdgpu-pro/lib/x86_64-linux-gnu -L/c/Windows/System32 d000035.o:(.idata$5+0x0): multiple definition of `__imp___C_specific_handler' d000029.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' C:\msys64\tmp\cctO9eqU.o:common.cpp:(.text+0x1a): undefined reference to `__imp___acrt_iob_func' C:\msys64\tmp\ccsmQ8fA.o:gpuowl.cpp:(.text$_Z6printfPKcz[_Z6printfPKcz]+0x32): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): In function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): In function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): In function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to`__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): In function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status make: *** [Makefile:16: openowl-notf] Error 1 [/CODE]Using the approx equivalent command lines, as I previously did to get a successful build for V3.8, as in [URL]https://www.mersenneforum.org/showpost.php?p=494261&postcount=626[/URL] (via copy/paste to reduce chance of operator error): [CODE]ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -DREV=\"91c52fa\" -O2 -c gpuowl.cpp -o gpuowl.o ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -O2 -c OpenGpu.cpp -o OpenGpu.o ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -O2 -c common.cpp -o common.o ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -O2 -c clwrap.cpp -o clwrap.o ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -O2 -c OpenTF.cpp -o OpenTF.o ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -o openowl-V38-91c52fa-W64.exe OpenGpu.o common.o gpuowl.o clwrap.o OpenTF.o -lOpenCL -static C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lOpenCL collect2.exe: error: ld returned 1 exit status ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ g++ -o openowl-V38-91c52fa-W64.exe OpenGpu.o common.o gpuowl.o clwrap.o OpenTF.o -lOpenCL -L/c/Windows/System32 d000035.o:(.idata$5+0x0): multiple definition of `__imp___C_specific_handler' d000029.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' common.o:common.cpp:(.text+0x465): undefined reference to `__imp___acrt_iob_func' gpuowl.o:gpuowl.cpp:(.text$_Z6printfPKcz[_Z6printfPKcz]+0x29): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): In function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): In function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): In function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to`__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): In function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status [/CODE]Even v2.0 build gets broken, even with adding -fconcepts to handle a shower of warnings about -auto, and adding -L/c/Windows/System32 to help it find OpenCL.dll [CODE]ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ g++ -c gpuowl.cpp -fconcepts gpuowl.cpp: In function 'u32 modInv(u32, u32)': gpuowl.cpp:531:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ g++ -o gpuowl.exe gpuowl.o -lOpenCL -static C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lOpenCL collect2.exe: error: ld returned 1 exit status ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ g++ -o gpuowl.exe gpuowl.o -lOpenCL -static -L/c/Windows/System32 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lOpenCL collect2.exe: error: ld returned 1 exit status ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ g++ -o gpuowl.exe gpuowl.o -lOpenCL -L/c/Windows/System32 d000035.o:(.idata$5+0x0): multiple definition of `__imp___C_specific_handler' d000029.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' gpuowl.o:gpuowl.cpp:(.text+0x316e): undefined reference to `__imp___acrt_iob_func' gpuowl.o:gpuowl.cpp:(.text+0x9334): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): In function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): In function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): In function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to`__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): In function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ g++ -o gpuowl.exe gpuowl.o -lOpenCL -L/c/Windows/System32 -lm d000035.o:(.idata$5+0x0): multiple definition of `__imp___C_specific_handler' d000029.o:(.idata$5+0x0): first defined here C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `pre_c_init': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:146: undefined reference to `__p__fmode' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o: In function `__tmainCRTStartup': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:290: undefined reference to `_set_invalid_parameter_handler' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:299: undefined reference to `__p__acmdln' gpuowl.o:gpuowl.cpp:(.text+0x316e): undefined reference to `__imp___acrt_iob_func' gpuowl.o:gpuowl.cpp:(.text+0x9334): undefined reference to `__imp___acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-merr.o): In function `_matherr': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/merr.c:72: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-pseudo-reloc.o): In function `__report_error': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:149: undefined reference to `__acrt_iob_func' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:150: undefined reference to `__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-wassert.o): In function `_wassert': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/misc/wassert.c:35: undefined reference to`__acrt_iob_func' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o): In function `__mingw_vfprintf': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:53: undefined reference to `_lock_file' C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/stdio/mingw_vfprintf.c:55: undefined reference to `_unlock_file' collect2.exe: error: ld returned 1 exit status ken@condorella MINGW64 ~/gpuowl-compile/v2.0 $ [/CODE] Maybe it's something simple, like a missing value in an environment string. But I don't find anything relating to that in my local notes on getting past builds to succeed. The g++ man page is alarmingly large, indicating massive complexity. Given my relative unfamiliarity with linux, much less how msys2 creates an odd blend of linux and Windows, attempts I might make to "fix" things could easily make it worse. In msys2, : is the delimiter between values in the path: [CODE]PATH=/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl[/CODE]In [URL]https://github.com/valtron/llvm-stuff/wiki/Set-up-Windows-dev-environment-with-MSYS2[/URL] it says [CODE]Set up $PATH [LIST][*]Open "Environment Variables > System Variables > Path"[*]At the end, add $DEV/msys64/usr/bin[/LIST][/CODE](where $DEV means substitute your own system drive) And I don't know how to safely modify the msys2 version of $PATH in msys2. I get a command not found error when attempting setenv in msys2 as in [URL]https://kb.iu.edu/d/acar[/URL] Its PATH is produced in part from the Windows path, but I don't know whether that occurs at install time or launch time. I reasoned that since msys2 converts the Windows path components from Windows syntax to linux syntax, reversing the syntax and adding to the Windows path might affect the msys2 PATH. A modification of Windows path at the command line did not affect the inherited path of a newly launched Windows command prompt, so is unlikely to affect a new MSYS2/Mingw64 session. [CODE]C:\Users\ken\Documents>pathadd C:\Users\ken\Documents>path PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD APP SDK\3.0\bin\x8 6_64;C:\Program Files (x86)\AMD APP SDK\3.0\bin\x86 C:\Users\ken\Documents>set path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files ( x86)\AMD APP SDK\3.0\bin\x86_64;C:\Program Files (x86)\AMD APP SDK\3.0\bin\x86;C:\msys64\usr\bin C:\Users\ken\Documents>path PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD APP SDK\3.0\bin\x8 6_64;C:\Program Files (x86)\AMD APP SDK\3.0\bin\x86;C:\msys64\usr\bin[/CODE]And the equivalent change, made to the Windows system path, does not affect the PATH of a newly launched msys2/mingw64 session, indicating install-time or some other relationship of the msys2 PATH to the Windows path. [CODE]PATH=/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl [/CODE]setenv is not available, and set in msys2 acts very strangely, printing out normal looking environment variables followed by something called __backup_glob which is then followed by thousands of lines of source code for multiple routines, beginning with __expand_tilde_by_ref () -O2 -Wall -lm have been ruled out by experimentation with variations. The issues survive logout, and so presumably are boot-time or install-time related. A computer search of the Windows registry yields almost no content relating to msys2 (mainly shortcut and uninstall) and nothing relating to its sense of PATH or path. [URL]https://blog.sentry.io/2018/02/21/everything-is-broken-javascript-1[/URL] |
[QUOTE=kriesel;498975]
In msys2, : is the delimiter between values in the path: ... [URL]https://kb.iu.edu/d/acar[/URL] Duh. bash, not csh or tcsh (there's a bash.rc in msys2) In an msys2 session, [CODE]#PATH=$PATH\:/dir/path ; export PATH PATH=$PATH\:c/msys64/usr/bin ; export PATH[/CODE]then set in that session shows:[CODE]PATH=/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:c/msys64/usr/bin[/CODE]and when reattempting a gpuowl V3.8 build, a large shower of error messages looks as if it can not find OpenCL.dll, which is available several places, including c/Windows/System32 that is in the PATH. [CODE]ken@condorella MINGW64 ~/gpuowl-compile/v3.8 $ ls -l /c/Windows/System32/OpenCL.dll -rwxr-xr-x 1 ken None 163720 Feb 19 2018 /c/Windows/System32/OpenCL.dll [/CODE] Fix the c/msys64/usr/bin that should have had a leading /. Same problem. |
kriesel,
I'm going to install Msys2 on an old machine that has win10 in the next day or 2 ( or 3 ) as time permits to see if I can duplicate your problem. I have already installed AMD SDK 3.0 so next is actual Msys2 itself. Maybe between the 2 of us we can either figure this out or decide that the latest Msys2 is hopelessy messed up. If I get the same results, as you I may try an older Msys2 and/or older GCC. |
| All times are UTC. The time now is 23:09. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.