Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2012 23:09:05 -0700
From:      "Thomas D. Dean" <tomdean@speakeasy.org>
To:        freebsd-questions@freebsd.org
Subject:   nanoBSD Missing libgcc.a
Message-ID:  <4FBDD081.6070305@speakeasy.org>

next in thread | raw e-mail | index | archive | help
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@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
  -or-
  2. the nanoBSD build to create or link to libgcc.a

Tom Dean



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FBDD081.6070305>