|
Post by cybermonkey on Apr 24, 2010 22:02:44 GMT 1
Hi, I tried to use bacon on Haiku. Bacon itself seems to work but gcc (which is version 2.95) fails to compile the converted code:
~/Downloads> ./bacon.bash hello.bac Starting conversion... done. Starting compilation... Compiler emits messages!
/boot/home/Downloads/hello.bac.h: In function `__b2c__instr': In file included from /boot/home/Downloads/hello.bac.c:2: /boot/home/Downloads/hello.bac.h:139: syntax error before `__b2c__ap' /boot/home/Downloads/hello.bac.h:140: `__b2c__ap' undeclared (first use in this function) /boot/home/Downloads/hello.bac.h:140: (Each undeclared identifier is reported only once /boot/home/Downloads/hello.bac.h:140: for each function it appears in.) /boot/home/Downloads/hello.bac.h: In function `__b2c__instrrev': /boot/home/Downloads/hello.bac.h:146: syntax error before `__b2c__ap' /boot/home/Downloads/hello.bac.h:147: `__b2c__ap' undeclared (first use in this function)
|
|
|
Post by Pjot on Apr 25, 2010 8:19:25 GMT 1
Hi,
I guess this is caused by the BASH version they ship. We have seen similar problems before with certain Linux distributions. As mentioned on the BaCon website, BASH version 4 or higher is required.
Can you show which version of BASH you are using? Run 'bash --version' and it will show a version number.
If it is a 3.x version then indeed it will not work. Instead, try the Kornshell implementation which works with all KSH versions.
Thanks, Peter
|
|