uNetworking / uNetworking/uSockets

Compilation issue when using WSL

Open
#223 1 comment 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.