-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl on Netshare and compiling of modules #215
Comments
Is this with a portable or MSI install? Assuming the former, and that you loaded the portableshell.bat so the paths are all set, then this could be an issue with winlibs. That is where we get the Are you able to generate a reproducer using only |
Sorry, it is portable install. And of course I've set up the PATH appropriately. What do you mean by "reproducer using only ld.exe"? As far as I can see, the error happens at the last step of linking the library. Here is for example the command from my module:
Reight after it comes first error: I'm not sure why regular paths "M:\NeuPerl" get replaced with Netshare path, but looks like lg.exe does not like it. |
Thanks. I should have been clearer when referring to a reproducer. This is a minimal set of steps that reproduces the problem, and that could perhaps be reported upstream. One that does not need perl would be useful as then it can be reproduced on other systems. Also, is this in a Cmd shell or powershell? #174 is possibly related. |
I'm using cmd.exe Ok, I'll try to put together something |
Actually, any attempt to link a program fails. I've created file chk.c #include <stdio.h> int then tried
It didn't work |
Hm, it seems this explains it: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115189 |
The latest releases at https://winlibs.com have version 2.43.1 of binutils, according to Maybe grab one of the "latest" gcc releases from there and see if that enables your chk.c to be built.
However, if the problem still persists then I would recommend raising an issue with winlibs at https://github.com/brechtsanders/winlibs_mingw/issues. |
Well, newest version works without problem. How could I replace the version in package with this one? Or that is not so simple because of libraries involved? |
By newest version are you referring to the most recent GCC 13.x? Or 14.x? If 13.x is fixed then we should be able to do a drop-in replacement. |
For info, SP 5.40 uses Winlibs GCC 13.2 release 8. If the GCC 13.3 release has this fixed then it should be possible to drop it into the |
Looking at https://github.com/brechtsanders/winlibs_mingw/releases, it seems that latest 13.x builds are at binutils-2.42. |
Na, I've used 14.02 for my test. I'll try 13.3 just in case. |
No luck. 13.3 still can not compile if located on a Netshare |
Thanks for the testing and detective work. This looks like it needs to be reported upstream to winlibs. |
On Mon, Sep 16, 2024 at 6:36 PM avorop ***@***.***> wrote:
Unfortunately, there is one more bad news. Version 14.02 does work, when
it is located on Netshare. But it works only if executable to be created is
located on local disk. If I try to create an executable on some other or
same Netshare, then I don't get anything, even error is not produced. There
is simply no result of linking.
Hmmm ... I'm not seeing this post of yours at
#215.
I don't know why.
Anyway .... replying to the email
Like Shawn, I was originally thinking that this should be raised with
winlibs, but maybe you should be raising it with mingw-w64 developers.
I don't know what the preferred method of contacting the mingw-w64 guys is.
I usually contact mingw-w64-public at lists dot sourceforge dot net, which works
quite well for me.
I'm not sure if you need to be subscribed.
Cheers,
Rob
|
I've deleted it, because the files were removed by some Antivirus, or
something else. So, it was not a problem of MinGW. Sorry.
…On Tue, Sep 17, 2024, 01:35 sisyphus ***@***.***> wrote:
On Mon, Sep 16, 2024 at 6:36 PM avorop ***@***.***> wrote:
> Unfortunately, there is one more bad news. Version 14.02 does work, when
> it is located on Netshare. But it works only if executable to be created
is
> located on local disk. If I try to create an executable on some other or
> same Netshare, then I don't get anything, even error is not produced.
There
> is simply no result of linking.
>
Hmmm ... I'm not seeing this post of yours at
#215.
I don't know why.
Anyway .... replying to the email
Like Shawn, I was originally thinking that this should be raised with
winlibs, but maybe you should be raising it with mingw-w64 developers.
I don't know what the preferred method of contacting the mingw-w64 guys
is.
I usually send email to ***@***.***, which works
quite well for me.
I'm not sure if you need to be subscribed.
Cheers,
Rob
—
Reply to this email directly, view it on GitHub
<#215 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHVTP3MUR624GO4MFB6S3XLZW5TMZAVCNFSM6AAAAABN6ZOUEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJUGIYTEMJZGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think that happens only when you install a winlibs build that includes the "LLVM/Clang/LLD/LLDB" stuff. I've never come across a need for the "LLVM/Clang/LLD/LLDB" stuff in my own builds of perl, and Strawberry Perl itself is built using a "without LLVM/Clang/LLD/LLDB" version. |
Hello, I've tried to compile few modules for 5.40 and failed because no libraries could be found. The check has shown that the files are available. Then I've tried installing of same module but for perl that was itself installed locally - everything worked.
So, the tests show that if perl is installed on a netshare, then there is no way to update Modules for it.
An example of error from building Win32::Process::List
//svpowerwebp01/m/StrawberryPerl-5.40/c/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find //svpowerwebp01/m/StrawberryPerl-5.40/c/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o: Invalid argument /
Any hope, that some next release would support working with Netshares just like 5.32 did?
The text was updated successfully, but these errors were encountered: