From owner-freebsd-questions@FreeBSD.ORG Sat Nov 24 15:59:07 2007 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 3DCD716A418 for ; Sat, 24 Nov 2007 15:59:07 +0000 (UTC) (envelope-from dmw@unete.cl) Received: from mail07.ifxnetworks.com (mail07.ifxnetworks.com [190.61.128.37]) by mx1.freebsd.org (Postfix) with ESMTP id DF6A613C44B for ; Sat, 24 Nov 2007 15:59:06 +0000 (UTC) (envelope-from dmw@unete.cl) Received: (qmail 30788 invoked from network); 24 Nov 2007 15:32:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail07.ifxnetworks.com X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=RDNS_NONE autolearn=disabled version=3.2.3 Received: from unknown (HELO quake) (dmw@unete.cl@[200.73.29.104]) (envelope-sender ) by mail07.ifxnetworks.com (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 24 Nov 2007 15:32:25 -0000 From: Daniel Molina Wegener Organization: DMW To: FreeBSD Questions Date: Sat, 24 Nov 2007 12:32:08 -0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200711241232.08757.dmw@unete.cl> Subject: problems compiling cross-gcc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dmw@unete.cl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 15:59:07 -0000 Hello, I'm using the command line: # make TGTARCH=arm TGTABI=linux And I get the next errors compiling cross-gcc: -----8<----------8<----------8<----------8<----------8<----- gmake[3]: se ingresa al directorio `/usr/ports/devel/cross-gcc/work/gcc-4.2.0/host-i386-portbld-freebsd6.3/gcc' /usr/ports/devel/cross-gcc/work/gcc-4.2.0/host-i386-portbld-freebsd6.3/gcc/xgcc -B/usr/ports/devel/cross-gcc/work/gcc-4.2.0/host-i386-portbld-freebsd6.3/gcc/ -B/usr/local/arm-linux/bin/ -B/usr/local/arm-linux/lib/ -isystem /usr/ports/devel/cross-gcc/work/gcc-4.2.0/host-i386-portbld-freebsd6.3/gcc -isystem /usr/local/arm-linux/include -isystem /usr/local/arm-linux/sys-include -O2 -O2 -pipe -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fomit-frame-pointer -fPIC -g0 -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/usr/local/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.0/host-i386-portbld-freebsd6.3/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 directory ../.././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.0/host-i386-portbld-freebsd6.3/gcc/gthr-default.h:1, from ../.././gcc/gthr.h:114, from ../.././gcc/unwind-dw2.c:42: ../.././gcc/gthr-posix.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_key_t' ../.././gcc/gthr-posix.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_once_t' ../.././gcc/gthr-posix.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_mutex_t' ../.././gcc/gthr-posix.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_recursive_mutex_t' [...SNIP] -----8<----------8<----------8<----------8<----------8<----- Any tip with these errors? Thanks in advance... -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | FreeBSD & Linux User | Standards Rocks!