armv7 not supported ?

1,874 views
Skip to first unread message

Paul Praet

unread,
Oct 28, 2013, 10:20:32 AM10/28/13
to jansso...@googlegroups.com
Hi,

When I take the latest tarball (2.5), I cannot compile for armv7

praetp@unfinished:jansson-2.5$ ./configure --host=armv7

checking for a BSD-compatible install... /usr/local/bin//ginstall -c

checking whether build environment is sane... yes

checking for armv7-strip... no

checking for strip... strip

checking for a thread-safe mkdir -p... /usr/local/bin//gmkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for armv7-gcc... no

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables... 

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for style of include used by make... GNU

checking dependency style of gcc... gcc3

checking build system type... x86_64-apple-darwin13.0.0

checking host system type... Invalid configuration `armv7': machine `armv7' not recognized

configure: error: /bin/sh ./config.sub armv7 failed


However, when I compile from the latest git (and run autoreconfig -i myself), I CAN compile.


Any thoughts on this ?


Best Regards,


Paul

Karl Hiramoto

unread,
Oct 28, 2013, 10:33:59 AM10/28/13
to jansso...@googlegroups.com
You need a cross compiling tool-chain, it looks like your's is not  Your host tuple is incorrect. In general the --host parameter needs to be ARCH-VENDOR-OS-LIBC  
I'd suggest reading up on cross compiling and try out some other autoconf packages.




--
--
Jansson users mailing list
jansso...@googlegroups.com
http://groups.google.com/group/jansson-users
---
You received this message because you are subscribed to the Google Groups "Jansson users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jansson-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
-
Karl Hiramoto
http://karl.hiramoto.org

Graeme Smecher

unread,
Oct 28, 2013, 11:44:46 AM10/28/13
to jansso...@googlegroups.com
Hi all,

Paul, I can confirm that Jansson cross-compiles cleanly on ARM. I have something like

    ./configure --build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi [...]

You will need to alter the host and target lines to match your cross-compiler. For example, my cross-gcc is arm-poky-linux-gnueabi-gcc.

cheers,
Graeme
Reply all
Reply to author
Forward
0 new messages