Skip to content
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

lld: error: unable to find library -lp11-kit #20458

Closed
2 of 7 tasks
ghost opened this issue Mar 27, 2024 · 1 comment
Closed
2 of 7 tasks

lld: error: unable to find library -lp11-kit #20458

ghost opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Mar 27, 2024

Description / Steps to reproduce the issue

Expected behavior

I have this package installed:

https://packages.msys2.org/package/mingw-w64-clang-x86_64-p11-kit?repo=clang64

The library is available:

$ ls /clang64/lib/libp11-kit.dll.a
/clang64/lib/libp11-kit.dll.a
$ file /clang64/lib/libp11-kit.dll.a
/clang64/lib/libp11-kit.dll.a: current ar archive

Actual behavior

For unknown reasons, it can't find the library.

Making all in src/platform/web
make[2]: Entering directory '/home/Administrator/SmallBASIC/src/platform/web'
g++  -g -O2   -o sbasicw.exe main.o canvas.o ../../ui/strlib.o -L../../../src/common -lsb_common  -L/clang64/lib -Wl,-Bstatic -mconsole -lmingw32 -lwsock32  -lmicrohttpd -lws2_32 -lgnutls /clang64/lib/libintl.dll.a -lws2_32 -lws2_32 -pthread -lgmp -lunistring -ladvapi32 -lcrypt32 -lncrypt -lbcrypt -lhogweed -lgmp -lnettle -ltasn1 -lidn2 -L/clang64/lib -liconv -L/clang64/lib -lunistring -lp11-kit -lz -lbrotlienc -lbrotlidec -lbrotlicommon -lzstd -lws2_32 -static-libgcc -static-libstdc++
lld: error: unable to find library -lp11-kit
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:387: sbasicw.exe] Error 1
make[2]: Leaving directory '/home/Administrator/SmallBASIC/src/platform/web'
make[1]: *** [Makefile:538: all-recursive] Error 1
make[1]: Leaving directory '/home/Administrator/SmallBASIC'
make: *** [Makefile:479: all] Error 2

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No

@ghost ghost added the bug label Mar 27, 2024
@ghost
Copy link
Author

ghost commented Mar 28, 2024

There is no static version of libp11-kit available. libp11-kit.dll.a is just an import library for the dll.

p11-glue/p11-kit#355

@ghost ghost closed this as completed Mar 28, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants