Re: compiling translated files on Linux AMD64
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo?co?> May 16, 2008
- 748 views
Jeremy Cowgar wrote: > > Kenneth Rhodes wrote: > > > > /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: > > i386 architecture of input file `/home/ken/euphoria/bin/ecu.a(be_machine.o)' > > > > is incompatible with i386:x86-64 output > > > > You're going to have to compile Euphoria on the x86 then That's the only > solution. Luckly, it's not hard on Linux. You should be able to change to the > source directory and type make. That will build new binaries and a new ecu.a. > Save your previous ecu.a and then copy the new ecu.a to the ../bin dir of > euphoria > and give it another go and see what happens. > > -- > Jeremy Cowgar > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a> No joy... it appears that a bit of editing needs to be done to the source files before compiling under Linux, and 32bit Linux at that: from the readme file in the source directory: ----------------------------------------------------------------------- Euphoria for Linux, exu GNU C ===== You'll have to convert the line terminators in the source files to the Linux standard of \n, rather than the Windows/DOS form of \r\n, otherwise several files will give you errors. You can use: exu fixline.ex for this. Also, when you save a file using ed.ex, it will let you convert to \n terminators. You should also ensure that all source file names are lower case (unzip -L). build exu with: imakeu Make sure it has \n line-terminators, and execute permission (chmod +x imakeu). exu will run at full speed. -DINT_CODES is not used. The interactive trace, trace(1) should fully work. ----------------------------------------------------------------------- I'll do all the above and try again. But I'm a bit confused ..... I was thinking that there might be a switch for gcc to allow it to emit 32bit code. Or a GNU cross compiler or something. Ken Rhodes Folding at Home: http://folding.stanford.edu/ 100% MicroSoft Free SuSE Linux 10.0 No AdWare, SpyWare, or Viruses! Life is Good,