← Back to issue list

LP build: "/usr/bin/ld: cannot find -llibrary"

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1617002
Type
issue
State
open
Author
~eldar
Labels
build lp
Created
Updated
Closed
—

Current evaluation

2016 LP build report: linker fails with "cannot find -lngspice" although libngspice.so is present in stage/usr/lib; works locally. Confirmed by elopio but never resolved; pertains to a third-party snap recipe, not snapcraft code.

Suggested action: close stale

Reason: Elopio confirmed it ("I see ./stage/usr/lib/libngspice.so ... I'll leave it confirmed for somebody else to triage") but it was never resolved and the fix belongs in a third-party snap recipe (kicad-dev-snap), not in snapcraft's code — the library was built correctly and simply needed a -L/LIBRARY_PATH hint. The referenced xenial Launchpad build-farm and snapcraft 2.x environment are superseded by the current craft-* codebase in this repo, leaving no snapcraft-side fix or meaningful reproduction path.

Evaluated by: mr-cal-bot

Impact: 15 Quick Win: 1 Complexity: 65 Confidence: 60 Actionability: 20

Issue body

I have the error of building snap in LP: https://launchpadlibrarian.net/280787471/buildlog_snap_ubuntu_xenial_amd64_kicad-dev-snap_BUILDING.txt.gz Error message: /usr/bin/ld: cannot find -lngspice collect2: error: ld returned 1 exit status Ngspice built OK (see log). When I was making snap in the local machine all was OK. Snap src: https://code.launchpad.net/~eldar/kicad/+git/kicad-dev-snap Snap pkg: https://code.launchpad.net/~eldar/+snap/kicad-dev-snap

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 15
Quick Win: 1
Complexity: 65
Confidence: 60
Actionability: 20
close stale 2016 LP build report: linker fails with "cannot find -lngspice" although libngspice.so is present in stage/usr/lib; works locally. Confirmed by elopio but never resolved; pertains to a third-party snap recipe, not snapcraft code.
stealth/space-bunny-alpha
Impact: 37
Quick Win: 15
Complexity: 42
Confidence: 82
Actionability: 68
keep open Launchpad snap builds fail at link time because -lngspice cannot find stage/usr/lib/libngspice.so; the failure was confirmed reproducible, but no resolving change is identified.
qwen/qwen3.6-35b-a3b
Impact: 10
Quick Win: 2
Complexity: 20
Confidence: 40
Actionability: 30
close not a bug User reports linker error '/usr/bin/ld: cannot find -lngspice' when building kicad-dev-snap in Launchpad, while local builds succeed. No maintainer engagement after 10 years.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 8
Staleness: 100
Complexity: 20
Confidence: 80
Support Request: 85
close stale Reporter's kicad-dev-snap failed on Launchpad (Xenial) with linker error 'cannot find -lngspice' while building locally succeeded. 10 years old, zero comments, no maintainer response, Xenial base long EOL.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 40
close stale Linker error (-lngspice) during a Launchpad snap build for kicad-dev-snap on Ubuntu Xenial. No maintainer response and issue is nearly 10 years old.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 30
close stale Build failure in Launchpad due to missing ngspice library during linking. Local builds succeed. No maintainer response or activity for nearly 10 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 30
close stale Launchpad build failure due to missing ngspice library during linking. Zero comments or maintainer activity for nearly 10 years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.