You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Brijesh-Thakkar (via GitHub)" <gi...@apache.org> on 2026/10/17 21:11:31 UTC
Re: [I] [BUG] cannot find -lgcc_s [nuttx]
Brijesh-Thakkar commented on issue #18393:
URL: https://github.com/apache/nuttx/issues/18393#issuecomment-6241167845
i tried reproducing this on latest master (ubuntu 26.04 natively, plus an ubuntu:20.04 container with gcc 10.5.0-1ubuntu1~20.04), with both make and cmake, and it builds fine.
nuttx itself doesn't pass -lgcc_s. the gcc driver adds it to every dynamic link, so a plain `gcc hello.c` would likely fail the same way on the affected machine. the link-time `libgcc_s.so` comes from `libgcc-10-dev`, not `libgcc-s1` (which only has the runtime `.so.1`), so that may be why installing libgcc-s1 didn't help.
@PlutusCN @wangtao13 could you share the output of:
echo 'int main(){return 0;}' > t.c && gcc t.c -o t
gcc -print-file-name=libgcc_s.so
dpkg -l | grep libgcc
ls -l /usr/lib/gcc/x86_64-linux-gnu/*/libgcc_s*
and check whether `sudo apt install --reinstall libgcc-10-dev` (or the version matching your gcc) fixes it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org