ok, i'm riding this thread alone ! Anybody experienced with zgcc and bizon/yacc around ? ? ?
there is a kind of bison ipk in my ipkg list, but I don't understand weither it's installed (build in ? unremovable ?) or not :
#ipkg info bison
Package: bison
Version: 1:1.35-3
Depends: libc6 (>= 2.2.4-')
Status: install prefer,user not-installed <---- what does that mean ? ?
ARchitecture: arm
ipkg remove bison is useless :
#ipkg remove bison
No packages removed
I couldn't install any bison ipk. Tryed byacc without success as well (...). Went download at bison-gnu and ./configure / make from version 2.0 down to 1.25 (Z warms....)
---- From 2.0 down to 1.50, I got this kind of error at build (#make) :
../lib/libbison.a(quotearg.o): In function 'quotearg_buffer_restyled':
/mnt/cd/ms/bison/bison-1.75/lib/quotearg.c:522:undefined reference to '__ctype_b'
...
collect2: ld returned 1 exit status
---- From 1.35 down to 1.29, I got this kind of error at configure (#./configure) :
config.status: creating test/xxx
mv: unable to preserve ownership of 'xxx/xxx': Operation not permitted
config.status: creating srct/xxx
mv: unable to preserve ownership of 'xxx/xxx': Operation not permitted
---- 1.28 at #./configure gave :
linking ./intl/libgettext.h to intl//libintl.h
ln: intl/libintl.h: Operation not permitted
configure: error: can not link intl/libintl.h to ./intl/libgettext.h
---- 1.27 configured well, but at building, screamed :
files.o: In function 'openfiles':
/mnt/cf/ms/bison/bison-1.27/lex.c:274: the use of 'mktemp' is dangerous, better use 'mkstemp'
lex.o: In function:
/mnt/cf/ms/bison/bison-1.27/lex.c:356: undefined reference to '__ctype_b'
...
collect2: ld returned 1 exit status
---- 1.25 at building :
gcc: LRO.o: No such file or directory
make: *** [bison] Error 1
(I did not try 1.26a :-)
There were also some 'malloc' error close to the begining...
I must be missing something. Bison should ride in Z, isn't it ? ? ? Then how ? ? ? ? Can it really be linked to zgcc ?
I found some tricks related to the errors I got. But I have to write in /mnt/card/.include which is, now, cramfs mounted. I can't write in this directory, is cramfs write-only, as squashfs ?
So if I want to write into .include, maybe I should install zgcc without cramfs ?
I'm gonna try. I have to reflash the whole thing... by the way, which OPIE rom should I better take to work with native compilation ? 32-32, or 64-0, or others ? I've not yet really understand how the memory is shared, sorry about that.
Are there any other better suited roms for native zgcc develpment than OZ-352 / OPIE-12 ?
tks - blaise