* Can't build crosstool-ng on MacOsX Lion
@ 2012-09-21 9:32 Per Arnold Blaasmo
2012-09-21 10:49 ` Per Arnold Blaasmo
0 siblings, 1 reply; 2+ messages in thread
From: Per Arnold Blaasmo @ 2012-09-21 9:32 UTC (permalink / raw)
To: crossgcc
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
--
Per Arnold Blåsmo
Senior Design Engineer, Atmel Norway
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't build crosstool-ng on MacOsX Lion
2012-09-21 9:32 Can't build crosstool-ng on MacOsX Lion Per Arnold Blaasmo
@ 2012-09-21 10:49 ` Per Arnold Blaasmo
0 siblings, 0 replies; 2+ messages in thread
From: Per Arnold Blaasmo @ 2012-09-21 10:49 UTC (permalink / raw)
To: crossgcc
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:
--- 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),)
"
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-21 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-21 9:32 Can't build crosstool-ng on MacOsX Lion Per Arnold Blaasmo
2012-09-21 10:49 ` Per Arnold Blaasmo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).