nanoBSD Missing libgcc.a

Thomas D. Dean tomdean at
Thu May 24 06:09:07 UTC 2012

I have nanoBSD

 > uname -a
FreeBSD embeddedx86.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #1: Tue May
22 11:04:12 PDT 2012     root at P9X79.tddhome:/usr/obj/nanobsd.TS5700
/i386.i386/usr/src/sys/TS5700  i386

gcc 4.2.1 is installed, but, missing libgcc.a.  libcompiler_rt.a is present.

 > gcc -I../../include -c lcd_dio.c
gcc -I../../include  -o lcd_dio lcd_dio.o
/usr/bin/ld: cannot find -lgcc
*** Error code 1

If I link libgcc.a to libcompiler_rt.a the build works.

How do I get either
  1. gcc to use libcompiler_rt.a
  2. the nanoBSD build to create or link to libgcc.a

Tom Dean

More information about the freebsd-questions mailing list