compiling hxzmq using haxelib run hxcpp in ARM system

63 views
Skip to first unread message

Joseph Mathew

unread,
Aug 21, 2013, 10:02:56 AM8/21/13
to haxe...@googlegroups.com
I earlier reported the problem of g++ error: unrecognized line option -m32, and thought that -m32-bit will work. But I tried that option and that too gave unrecognized option when compiling in ARM v7.
I removed the option completely, then it compiled.
Don't know where the error is.
Thanks
Joseph Mathew


Cauê Waneck

unread,
Aug 21, 2013, 3:53:55 PM8/21/13
to haxe...@googlegroups.com
Hey Joseph!
It seems like -m32 can't be used on ARM. At https://code.google.com/p/hxcpp/source/browse/trunk/build-tool/linux-toolchain.xml , you can find where it is included, and also that you can compile with -DnoM32 to take it off:
haxelib run hxcpp build.xml -DnoM32

Maybe Hugh can give more information about ARM-specific linux toolchain.

Cheers
Cauê


2013/8/21 Joseph Mathew <jpm....@gmail.com>

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.

Alex Shroyer

unread,
Apr 22, 2014, 10:52:01 AM4/22/14
to haxe...@googlegroups.com
Hey, I found this because I tried compiling the C++ "hello world" from here and got the same
"g++: error: unrecognized command line option '-m32'" message (I'm on ARM/Debian, using this version of Haxe).

I changed my compile.hxml file so it is like this:

-D noM32
-cpp cpp
-debug
-main Test

And now it seems to go a lot further (lots of "g++ -Iobj/linux-debug..." output) but ultimately stops when it gets to:

g++ -o Test-debug -debug -rdynamic -m32 @obj/linux-debug//all_objs -lpthread -ldl -ldl
g++: error: unrecognized command line option '-m32'
Error: Build failed

So for some reason by the time it gets to building the .o file, the -m32 option has returned.  Any suggestions?

Thanks!

Cauê Waneck

unread,
Apr 22, 2014, 11:05:54 AM4/22/14
to haxe...@googlegroups.com
Try compiling with -D rpi


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Alex Shroyer

unread,
Apr 22, 2014, 11:21:38 AM4/22/14
to haxe...@googlegroups.com
Thanks, but the output is the same.

Cauê Waneck

unread,
Apr 22, 2014, 11:35:14 AM4/22/14
to haxe...@googlegroups.com
Seems like the problem is at
https://github.com/HaxeFoundation/hxcpp/blob/master/toolchain/linux-toolchain.xml#L78

Try switching it locally to
<flag value="-m32" unless="noM32"/>



2014-04-22 12:21 GMT-03:00 Alex Shroyer <ashr...@gmail.com>:
Thanks, but the output is the same.

--

Alex Shroyer

unread,
Apr 22, 2014, 12:23:53 PM4/22/14
to haxe...@googlegroups.com
That did it!  Thanks very much.

Cauê Waneck

unread,
Apr 22, 2014, 12:29:39 PM4/22/14
to haxe...@googlegroups.com
Great.


2014-04-22 13:23 GMT-03:00 Alex Shroyer <ashr...@gmail.com>:
That did it!  Thanks very much.

--
Reply all
Reply to author
Forward
0 new messages