From patchwork Fri Sep 21 10:48:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Arnold Blaasmo X-Patchwork-Id: 185684 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id F17212C0089 for ; Fri, 21 Sep 2012 20:49:16 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1348829358; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=LzgbODI QEbQDJNItR+8+inMUyPw=; b=iobcCCEeDh6qYPhi2xxNm6GcZFuO/Kb49lkXzN7 guwulyH4MBon0Ve7pXQC5yw8RSSxIGRfKLoMECO+FkO2+vLoPjoA86sCdc6aIhPk PzzUPtZE3mx0Fu6Mmih0Z2qrMLblTcYHi8IOQ/ZmR4v8z4prEeReR6QPyGboaJj3 Bguw= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=gYqG6nL05GktTwDD/5UnAOcolEid4iG0EcYvhrMGZHOODQsFr24iTeKESO7FFW eOPxMLFB0YcQl6N1DYJtHXbKDGK6QPI7/6zJZOE1N6Yb8b/YYnO2WpJr0OwZj/OW n9lPnHQAZfWxbIvQBppqRHhgtita9zOOXODmHEQLcQ8Us=; Received: (qmail 8219 invoked by alias); 21 Sep 2012 10:49:12 -0000 Received: (qmail 8208 invoked by uid 22791); 21 Sep 2012 10:49:10 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL, BAYES_00, KHOP_THREADED, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from eusmtp01.atmel.com (HELO eusmtp01.atmel.com) (212.144.249.242) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Sep 2012 10:48:57 +0000 Received: from HNOCHT02.corp.atmel.com (10.161.30.162) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 21 Sep 2012 12:50:24 +0200 Received: from [10.191.252.66] (10.161.30.18) by HNOCHT02.corp.atmel.com (10.161.30.162) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 21 Sep 2012 12:48:49 +0200 Message-ID: <505C460F.5070503@atmel.com> Date: Fri, 21 Sep 2012 12:48:47 +0200 From: Per Arnold Blaasmo Reply-To: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Fedora/2.0.0.21-1.fc10 Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Subject: Re: Can't build crosstool-ng on MacOsX Lion References: <505C33D6.7010600@atmel.com> In-Reply-To: <505C33D6.7010600@atmel.com> X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org I found two things that made it compile: 1. I found this (http://crosstool-ng.org/download/ibot-logs/2012-06-11.html): "Cubox: I modified kconfig/zconf.hash.c to add "#define offsetof(type, field) __builtin_offsetof(type, field)" just before "static struct kconf_id wordlist[] =" to make it compile" 2. and i found this in the mailing list: "Just for the record, I got the same issue as Michael using the latest release (1.15.3) on Lion and I fixed it like this: " btw: i tried this in crosstool-ng 1.16.0 Per A. On 21. sep. 2012 11:31, Per Arnold Blaasmo wrote: > I am trying to set up crosstool-ng on a Mac Pro with OsX 10.7 Lion. > I am trying to follow the description for Mac in the docs folder. > After running 'configure' ok, I try to run make and get compile error: > > I have tried to search Google without success :-( > Anyone have some help to offer? :-) > > This is the output I get: > > make > SED 'ct-ng' > SED 'scripts/crosstool-NG.sh' > SED 'scripts/saveSample.sh' > SED 'scripts/showTuple.sh' > GEN 'config/configure.in' > GEN 'paths.mk' > GEN 'paths.sh' > DEP 'nconf.gui.dep' > DEP 'nconf.dep' > DEP 'lxdialog/yesno.dep' > DEP 'lxdialog/util.dep' > DEP 'lxdialog/textbox.dep' > DEP 'lxdialog/menubox.dep' > DEP 'lxdialog/inputbox.dep' > DEP 'lxdialog/checklist.dep' > DEP 'mconf.dep' > DEP 'conf.dep' > BISON 'zconf.tab.c' > GPERF 'zconf.hash.c' > LEX 'lex.zconf.c' > DEP 'zconf.tab.dep' > CC 'zconf.tab.o' > In file included from zconf.tab.c:234:0: > zconf.hash.c: In function 'kconf_id_lookup': > zconf.hash.c:183:17: error: expected expression before 'struct' > zconf.hash.c:184:17: error: expected expression before 'struct' > zconf.hash.c:186:17: error: expected expression before 'struct' > zconf.hash.c:187:17: error: expected expression before 'struct' > zconf.hash.c:188:17: error: expected expression before 'struct' > zconf.hash.c:189:17: error: expected expression before 'struct' > zconf.hash.c:190:17: error: expected expression before 'struct' > zconf.hash.c:191:17: error: expected expression before 'struct' > zconf.hash.c:192:17: error: expected expression before 'struct' > zconf.hash.c:193:17: error: expected expression before 'struct' > zconf.hash.c:194:17: error: expected expression before 'struct' > zconf.hash.c:195:17: error: expected expression before 'struct' > zconf.hash.c:197:17: error: expected expression before 'struct' > zconf.hash.c:198:17: error: expected expression before 'struct' > zconf.hash.c:199:17: error: expected expression before 'struct' > zconf.hash.c:200:17: error: expected expression before 'struct' > zconf.hash.c:202:17: error: expected expression before 'struct' > zconf.hash.c:203:17: error: expected expression before 'struct' > zconf.hash.c:205:17: error: expected expression before 'struct' > zconf.hash.c:206:17: error: expected expression before 'struct' > zconf.hash.c:207:17: error: expected expression before 'struct' > zconf.hash.c:209:17: error: expected expression before 'struct' > zconf.hash.c:211:17: error: expected expression before 'struct' > zconf.hash.c:212:17: error: expected expression before 'struct' > zconf.hash.c:213:17: error: expected expression before 'struct' > zconf.hash.c:215:17: error: expected expression before 'struct' > zconf.hash.c:216:17: error: expected expression before 'struct' > zconf.hash.c:218:17: error: expected expression before 'struct' > zconf.hash.c:220:17: error: expected expression before 'struct' > zconf.hash.c:221:17: error: expected expression before 'struct' > zconf.hash.c:222:17: error: expected expression before 'struct' > zconf.hash.c:224:17: error: expected expression before 'struct' > make[2]: *** [zconf.tab.o] Error 1 > make[1]: *** [build-lib-kconfig] Error 2 > make: *** [build] Error 2 > --- For unsubscribe information see http://sourceware.org/lists.html#faq --- kconfig/Makefile.orig 2012-08-01 13:36:45.000000000 +0200 +++ kconfig/Makefile 2012-08-01 12:27:14.000000000 +0200 @@ -7,7 +7,7 @@ all: conf mconf nconf # Build flags CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE="\"crosstool-NG $(VERSION)\"" -LDFLAGS = +LDFLAGS = -L/opt/local/lib -lintl # Compiler flags to use gettext ifeq ($(gettext),)