haXe compilation fails on a 64-bit Linux system

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

haXe compilation fails on a 64-bit Linux system

Peter Reiner Fels
Hi,

I tried to compile haXe on my 64-bit openSUSE system. It fails with the following error message:

[...]
> ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx
/lib/libz.so.1: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
Error during linking
Error while running ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx

Does someone know what is going wrong here?

Thanks,
Peter


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haXe compilation fails on a 64-bit Linux system

gershon
this is kinda distro specific, but on ubuntu you'll need libz.so.* in one of /lib32, /usr/lib32, or /usr/local/lib32, you can manually d/l the proper 32bit deb and extract the files out...

$ whereis libz.so.1
libz.so: /lib/libz.so.1 /usr/lib/libz.so /lib64/libz.so.1

those are all symlinks...

$ file /lib/libz.so.1.2.3.3
/lib/libz.so.1.2.3.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

so i'll probably need to put it in /lib32... goodluck.

On Sun, Oct 25, 2009 at 5:56 PM, Peter Reiner Fels <[hidden email]> wrote:
Hi,

I tried to compile haXe on my 64-bit openSUSE system. It fails with the following error message:

[...]
> ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx
/lib/libz.so.1: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
Error during linking
Error while running ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx

Does someone know what is going wrong here?

Thanks,
Peter


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haXe compilation fails on a 64-bit Linux system

Peter Reiner Fels
Thank you!
install.ml took libz from the wrong directory. I changed the script, now it compiles.

2009/10/25 gershon <[hidden email]>
this is kinda distro specific, but on ubuntu you'll need libz.so.* in one of /lib32, /usr/lib32, or /usr/local/lib32, you can manually d/l the proper 32bit deb and extract the files out...

$ whereis libz.so.1
libz.so: /lib/libz.so.1 /usr/lib/libz.so /lib64/libz.so.1

those are all symlinks...

$ file /lib/libz.so.1.2.3.3
/lib/libz.so.1.2.3.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

so i'll probably need to put it in /lib32... goodluck.

On Sun, Oct 25, 2009 at 5:56 PM, Peter Reiner Fels <[hidden email]> wrote:
Hi,

I tried to compile haXe on my 64-bit openSUSE system. It fails with the following error message:

[...]
> ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx
/lib/libz.so.1: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
Error during linking
Error while running ocamlopt -o ../bin/haxe ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa ../ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx typer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx main.cmx

Does someone know what is going wrong here?

Thanks,
Peter


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org