On Tue, Aug 7, 2012 at 2:24 PM, Anders Nygren <anders.nygren@...> wrote:
> On Tue, Aug 7, 2012 at 12:06 PM, Steve Vinoski <vinoski@...> wrote:
>> On Fri, Aug 3, 2012 at 1:56 PM, Anders Nygren <anders.nygren@...> wrote:
>>> Hi
>>> I am trying to build yaws from github on a Raspberry Pi, which uses an
>>> ARM11 CPU.
>>> Debian linux, Erlang R15B01
>>>
>>>> uname -m
>>> armv61
>>>
>>> The problem building is that CFLAGS includes -m32 which apparently is
>>> not supported on the ARM version of gcc.
>>> Removing -m32 from CFLAGS in include.mk solves the problem.
>>> I am not able to figure out how to change the configure script to do
>>> this automatically.
>>
>> Hi Anders, what is $host_cpu set to for ARM11? I assume you'll want to
>> add a new case for its value around line 239 of configure.in.
>>
>> --steve
>
> Hi Steve
> $host_cpu is armv6l, (with lowercase L), and not armv61 (with one) as
> I originally wrote.
> That was the reason I couldn't get it to work.
> This fixes the problem with building.
>
> anders@... ~/src/test/yaws $ git diff
> diff --git a/configure.in b/configure.in
> index 3d71f03..5ba8779 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -1,4 +1,4 @@
> -AC_PREREQ([2.61])
> +C_PREREQ([2.61])
>
> DNA define([AC_CACHE_LOAD], )dnl
> dnl define([AC_CACHE_SAVE], )dnl
> @@ -237,6 +237,7 @@ case "$host_os" in
> [AC_MSG_NOTICE(found 32-bit Erlang)
> case "$host_cpu" in
> i?86) CBIT= ;;
> + armv6l) CBIT= ;;
> *) CBIT=-m32 ;;
> esac])
> CFLAGS="$CFLAGS $CBIT"
OK, I made this change and pushed it to github. If there are more
changes needed just send them along.
--steve
|