From owner-freebsd-questions@FreeBSD.ORG Wed Jul 30 01:12:52 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 4DC9C106564A for ; Wed, 30 Jul 2008 01:12:52 +0000 (UTC) (envelope-from wyattnealster@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 0327E8FC16 for ; Wed, 30 Jul 2008 01:12:51 +0000 (UTC) (envelope-from wyattnealster@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so46662qwb.7 for ; Tue, 29 Jul 2008 18:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=RAk2FtGHogxwfZGh5x/xsdPakT8R7TV4zdx//f1oUds=; b=Tx5hMWhi8IxeIm7P3s6fiYMxBrhTW/qYXW8a/wZirysnAQPcuAFECJE+FZL9kIcOvr e+Rq0Cu5K/bNhfDTltZ1X67y64q/hpZFiaW8kTf3a/xto1a9LKJI3JwDfpEmmIZ9V6D9 MJT3k7cpzX+Eoi2LAh/nxuWrBDOGpJGzpga4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=b+D5NZn6OsMLPK9uE6YPZvOkd0a9EHMWf5GlwOHPP993tJHQyiIkTRDsO7+gljku/L Q/f8T+5hc6TEsVKyBPFIXul8WUENPEtBcHwpZMQthk/BT50pzjtgCGM70tKpWB+V43YU 3Go9EYIG/tY6FL3k9a5fao3hNLzaS4xKDK+HQ= Received: by 10.214.182.3 with SMTP id e3mr3516811qaf.93.1217378862188; Tue, 29 Jul 2008 17:47:42 -0700 (PDT) Received: by 10.150.226.6 with HTTP; Tue, 29 Jul 2008 17:47:42 -0700 (PDT) Message-ID: <437096a00807291747k4f524f78h148ecd88704060ad@mail.gmail.com> Date: Tue, 29 Jul 2008 20:47:42 -0400 From: "Wyatt Neal" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: difficulty building a cross-compiler with a fresh install 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: Wed, 30 Jul 2008 01:12:52 -0000 greetings, i've been running with a freebsd 6.1 system for a few days and i'm having some oddities when trying to build a cross compiler on the system. the first issue that shows is: In file included from archive.c:132: sysdep.h:173:21: libintl.h: No such file or directory this comes from the libintl.h being located in /usr/local/include instead of /usr/include. a simple modification to the CFLAGS as so: export CFLAGS="-I /usr/local/include" has resolved binutils building correctly. a build of gcc shows the same issue; however, gcc fails to build with the following error: gcc -c -I /usr/local/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \ ./config/i386/i386.c -o i386.o ./config/i386/i386.c:1033: error: `ix86_svr3_asm_out_constructor' undeclared here (not in a function) ./config/i386/i386.c:1033: error: initializer element is not constant ./config/i386/i386.c:1033: error: (near initialization for `targetm.asm_out.constructor') ./config/i386/i386.c:1033: error: initializer element is not constant ./config/i386/i386.c:1033: error: (near initialization for `targetm.asm_out') ./config/i386/i386.c:1033: error: initializer element is not constant ./config/i386/i386.c:1033: error: (near initialization for `targetm.sched') ./config/i386/i386.c:1033: error: initializer element is not constant ./config/i386/i386.c:1033: error: (near initialization for `targetm.calls') ./config/i386/i386.c: In function `ix86_file_end': ./config/i386/i386.c:4839: warning: implicit declaration of function `ASM_DECLARE_FUNCTION_NAME' gmake[1]: *** [i386.o] Error 1 both binutils and gcc are being built from the source from ftp.gnu.org following along with http://docs.freebsd.org/info/gcc/gcc.info.Cross-Compiler.html i've not encountered this error before on the various linux systems so i'm assuming it's something that i'm doing with being new to freebsd. i've been able to compile the above code on my ubuntu system without issue as well so i'm fairly certain it's something i'm screwing up on freebsd. bintuils 2.18 config string: ./configure --target=i386v --program-prefix=i386v- --prefix=/usr/local gcc 3.4.4 config string: ./configure --target=i386v --program-prefix=i386v- --prefix=/usr/local --program-suffix="" thoughts?