Open wilzbach opened 10 years ago
Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>
If the system PATH variable is longer than 1022 characters, OPTLINK will fail to find phobos.lib and link D programs.
My guess is that the PATH variable contents is clobbering the LIB variable's, which happens to be adjacent in memory.
It's possible that the order of variables within the environment block also matters.
Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>
Could also be that there's a + or something in PATH (e.g. when GTK+ Runtime is installed). See Issue 4831.
Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>
I don't think so. The problem manifests if the PATH is over 1022 characters, but not when it's exactly 1022 characters long. The number is very close 1024, which I doubt is a coincidence.
Note: the issue was created automatically migrated from https://issues.dlang.org
Original bug ID: BZ#12054 From: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> Reported version: D2 CC: andrej.mitrovich@gmail.com, bugzilla@digitalmars.com