Hello all:
I'm trying to compile WeiDU from sources on PowerPC Debian Sid GNU/Linux.
I get a copy from Git (git clone) and modified the Configuration to adapt to PowerPC (autodetection mark as x86):
# (1) X86 / Linux, using GCC as the C Compiler
export ARCHOS = PowerPC_LINUX
export OCAMLDIR = /usr/bin
export OCAMLLIB = /usr/lib/ocaml
export CAMLP4LIB = /usr/lib/ocaml/camlp4
export OBJEXT = o
export ARCH_FILE = arch_unix
export CASE_FILE = case_ins_linux
export GLOB = glob_unix
export WEIDU_ARCH = PowerPC
export WEIDU_OS = unix
export USEOPT = .opt
#
(I need to create a obj/PowerPC_LINUX directory)
Compiling, obviously, I fall on Elkhound fail (need to read instruction slower):
-------------- console ------------
$make linux_zip
ocaml src/trealparserin.gr
File "src/trealparserin.gr", line 1, characters 0-2:
Error: Syntax error
make: [obj/PowerPC_LINUX/trealparserin.mli] Error 2 (no tiene efecto)
mv: no se puede efectuar `stat' sobre «src/trealparserin.ml»: No existe el fichero o el directorio
mv: no se puede efectuar `stat' sobre «src/trealparserin.mli»: No existe el fichero o el directorio
----------- end of console --------------
I download Elkhound Roy's version (there a wrong link in
http://www.weidu.org/~thebigg/compile.html, correct are:
http://users.ices.utexas.edu/~roystgnr/elkhound-2011.01.28.roy.tar.bz2 from
http://forums.pocketplane.net/index.php/topic,27554.msg326897.html#msg326897) but I can't compile:
-------------- console -----------------
g++ -c -o ccsstr.o ccsstr.cc -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -D__LINUX__ -I../smbase
perl ../smbase/run-flex.pl -oagramlex.yy.cc agramlex.lex
flex -oagramlex.yy.cc agramlex.lex
modifying agramlex.yy.cc
g++ -c -o agramlex.yy.o agramlex.yy.cc -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -D__LINUX__ -I../smbase
In file included from agramlex.lex:14:0:
agrampar.codes.h:74:0: error: unterminated #if
agramlex.yy.cc:646:1: error: two or more data types in declaration of ‘yylex’
make[1]: *** [agramlex.yy.o] Error 1
make[1]: se sale del directorio `/media/Aldaxcorb/Fuentes/Juegos/Gemrb/Parche_Pant_panoramica/elkhound-2011.01.28.roy/ast'
make: *** [all] Error 2
------------------- end of console ----------
Certainly, I have no idea about Bison or Flex which I can't solve this problem.
Oh, I copy the files under Elkhound directory on WeiDU git to Ocaml directory in Elkhound (I supposed are the correct way and these are updated files, but no helps.)
More data:
Bison version:
ii bison 1:2.5.dfsg-2.1 YACC-compatible parser generator
ii libbison-dev:powerpc 1:2.5.dfsg-2.1 YACC-compatible parser generator - development library
Flex version:
ii flex 2.5.35-10 A fast lexical analyzer generator.
ii libflexdock-java 1.1.1-3 Swing Java docking framework
G++ version:
g++ (Debian 4.6.3-5) 4.6.3
Make version:
GNU Make 3.81
(Old version of Elkhound -2009.01.26 fails with iostream.h in configure:
--------- console -----------
Testing C++ compiler ...
./testcout.cc:4:34: fatal error: iostream.h: No existe el fichero o el directorio
compilation terminated.
Trying without -Wno-deprecated ...
./testcout.cc:4:34: fatal error: iostream.h: No existe el fichero o el directorio
compilation terminated.
I was unable to compile a really simple C++ program. I tried:
cd /media/Aldaxcorb/Fuentes/Juegos/Gemrb/Parche_Pant_panoramica/elkound-2009.01.26/smbase
g++ -o testcout -g -Wall -D__UNIX__ -O2 -DNDEBUG -D__LINUX__ ./testcout.cc
Please double-check your compiler installation.
Until this is fixed, smbase (and any software that depends on it) will
certainly not compile either.
-------------- end of console -----------
Sorry for my very bad english.
Thanks in advanced.
Best regards.
Salud y Revolución.
Lobo.
Ps: No Mac OS X here in this machine, only Debian GNU/Linux. No way to try DevSign PPC binarys.