You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building with -use-coroutinesflag on MacOS, I get the following error:
================== C compilation error (from cc): ==============
cc: ld: file is empty in '/Users/rhad/Documents/src/v/thirdparty/photon/photonwrapper.so'
cc: clang: error: linker command failed with exit code 1 (use -v to see invocation)
================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
photonwrapper.so actually exist but its 0B (empty) which tells me it was not actually downloaded.
Probing further, the issue is that the curl command used to download the shared object does not follow 302 location header: https://github.com/vlang/v/blob/master/vlib/v/pref/pref.v#L993
Reproduction Steps
Build with -use-coroutines on MacOS
Expected Behavior
Successful build with -use-coroutines flag.
Current Behavior
================== C compilation error (from cc): ==============
cc: ld: file is empty in '/Users/rhad/Documents/src/v/thirdparty/photon/photonwrapper.so'
cc: clang: error: linker command failed with exit code 1 (use -v to see invocation)
================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
Describe the bug
When building with
-use-coroutinesflag on MacOS, I get the following error:photonwrapper.soactually exist but its 0B (empty) which tells me it was not actually downloaded.Probing further, the issue is that the
curlcommand used to download the shared object does not follow 302 location header: https://github.com/vlang/v/blob/master/vlib/v/pref/pref.v#L993Reproduction Steps
Build with
-use-coroutineson MacOSExpected Behavior
Successful build with
-use-coroutinesflag.Current Behavior
Possible Solution
-LtocURLcommand here: https://github.com/vlang/v/blob/master/vlib/v/pref/pref.v#L993-use-coroutinesto catch these types of errors.Additional Information/Context
No response
V version
V 0.4.12 82d4ba6
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.