From owner-freebsd-questions@FreeBSD.ORG Tue Nov 25 22:31:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FCFA1065677 for ; Tue, 25 Nov 2008 22:31:20 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53]) by mx1.freebsd.org (Postfix) with ESMTP id A87A18FC2F for ; Tue, 25 Nov 2008 22:31:19 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQFAAwKLElR9SgM/2dsb2JhbACBbdElgn0 Received: from 12.40-245-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.245.40.12]) by relay.skynet.be with ESMTP; 25 Nov 2008 23:31:18 +0100 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id mAPMVCiU008777; Tue, 25 Nov 2008 23:31:12 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-questions@freebsd.org, Xavier Otazu Date: Tue, 25 Nov 2008 23:31:10 +0100 User-Agent: KMail/1.9.10 References: <20081121120023.D64301065720@hub.freebsd.org> <20081124181923.25e8c7db@cvc131.uab.es> In-Reply-To: <20081124181923.25e8c7db@cvc131.uab.es> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811252331.11497.tijl@ulyssis.org> Cc: Subject: Re: gcc cross-compiler for linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 22:31:20 -0000 On Monday 24 November 2008 18:19:23 Xavier Otazu wrote: > When building, I get the following error message: >=20 > /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gc= c/xgcc > -B/usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/= gcc/ > -B/usr/local/i386-linux/bin/ -B/usr/local/i386-linux/lib/ > -isystem /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-free= bsd7.1/gcc > -isystem /usr/local/i386-linux/include > -isystem /usr/local/i386-linux/sys-include -O2 -O2 -O2 > -fno-strict-aliasing -pipe -DIN_GCC -DCROSS_COMPILE -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -fPIC -g > -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED > -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. > -I../.././gcc/../include -I../.././gcc/../libcpp/include > -I../.././gcc/../libdecnumber -I../libdecnumber -fexceptions > -c ../.././gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o > In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386= =2Dportbld-freebsd7.1/gcc/gthr-default.h:1, > from ../.././gcc/gthr.h:114, > from ../.././gcc/unwind-dw2.c:42: > ../.././gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directo= ry > ../.././gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory > In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386= =2Dportbld-freebsd7.1/gcc/gthr-default.h:1, > from ../.././gcc/gthr.h:114, > from ../.././gcc/unwind-dw2.c:42: > ../.././gcc/gthr-posix.h:46: error: expected '=3D', ',', ';', 'asm' or '_= _attribute__' before '__gthread_key_t' > ../.././gcc/gthr-posix.h:47: error: expected '=3D', ',', ';', 'asm' or '_= _attribute__' before '__gthread_once_t' > ../.././gcc/gthr-posix.h:48: error: expected '=3D', ',', ';', 'asm' or '_= _attribute__' before '__gthread_mutex_t' > ../.././gcc/gthr-posix.h:49: error: expected '=3D', ',', ';', 'asm' or '_= _attribute__' before '__gthread_recursive_mutex_t' > ../.././gcc/gthr-posix.h:92: error: 'pthread_once' undeclared here (not i= n a function) > ../.././gcc/gthr-posix.h:93: error: 'pthread_getspecific' undeclared > here (not in a function) =46rom that error message I'd say you probably need to populate /usr/local/i386-linux/include with glibc and linux kernel headers.