Patchwork Can't build crosstool-ng on MacOsX Lion

login
register
mail settings
Submitter Per Arnold Blaasmo
Date Sept. 21, 2012, 10:48 a.m.
Message ID <505C460F.5070503@atmel.com>
Download mbox | patch
Permalink /patch/185684/
State New
Headers show

Comments

Per Arnold Blaasmo - Sept. 21, 2012, 10:48 a.m.
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

Patch

--- 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),)