uNetworking / uNetworking/uSockets
Compilation issue when using WSL
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 307
- PR merge metrics
- No merged PRs in 30d
Description
The compilation failed when trying to compile in WSL env.
Create a static library (try windows, then unix)
lib.exe /out:uSockets.a *.o || ar rvs uSockets.a *.o
Microsoft (R) Library Manager Version 14.40.33811.0
Copyright (C) Microsoft Corporation. All rights reserved.bsd.o : fatal error LNK1107: invalid or corrupt file: cannot read at 0x4EF8
If I remove the 'try windows' everything works fine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shown static-library command in a WSL environment, using the generated *.o files and the lib.exe/ar fallback that produces uSockets.a. Determine why the Windows tool is selected or reads the Unix object files incorrectly; done means compilation succeeds in WSL without the reported LNK1107 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100