Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 20:41:49 +0200
From:      Michael Tuexen <tuexen@freebsd.org>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Re: Can't compile libatomic_ops on RPi
Message-ID:  <640B6C6A-B270-4F8D-B80D-B2778D18B703@freebsd.org>
In-Reply-To: <1406915391.56408.257.camel@revolution.hippie.lan>
References:  <C6B03D52-215C-4CD3-A1E3-18859C52842A@freebsd.org> <1406907220.56408.248.camel@revolution.hippie.lan> <1406915391.56408.257.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01 Aug 2014, at 19:49, Ian Lepore <ian@FreeBSD.org> wrote:

> On Fri, 2014-08-01 at 09:33 -0600, Ian Lepore wrote:
>> On Fri, 2014-08-01 at 17:21 +0200, Michael Tuexen wrote:
>>> Dear all,
>>>=20
>>> I'm trying to build libatomic_ops on r269265 on a RPi B as part of =
building git from
>>> the ports collection (this worked in the past). However, I got:
>>>=20
>>> ...
>>> /bin/sh ../libtool  --tag=3DCC    --mode=3Dcompile cc =
-DHAVE_CONFIG_H    -I../src -I../src   -fPIC -Wall -Wextra -O -pipe -MT =
atomic_ops_stack.lo -MD -MP -MF .deps/atomic_ops_stack.Tpo -c -o =
atomic_ops_stack.lo atomic_ops_stack.c
>>> libtool: compile:  cc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall =
-Wextra -O -pipe -MT atomic_ops_stack.lo -MD -MP -MF =
.deps/atomic_ops_stack.Tpo -c atomic_ops_stack.c -o atomic_ops_stack.o
>>> /tmp/atomic_ops_stack-390892.s: Assembler messages:
>>> /tmp/atomic_ops_stack-390892.s:73: Error: selected processor does =
not support `ldrexd r6,r7,[r0]'
>>> /tmp/atomic_ops_stack-390892.s:81: Error: selected processor does =
not support `strexd r3,r4,r5,[r0]'
>>> cc: error: assembler command failed with exit code 1 (use -v to see =
invocation)
>>> *** [atomic_ops_stack.lo] Error code 1
>>>=20
>>> make[4]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src
>>> 1 error
>>>=20
>>> make[4]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src
>>> *** [all] Error code 2
>>>=20
>>> make[3]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src
>>> 1 error
>>>=20
>>> make[3]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0/src
>>> *** [all-recursive] Error code 1
>>>=20
>>> make[2]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0
>>> 1 error
>>>=20
>>> make[2]: stopped in =
/usr/ports/devel/libatomic_ops/work/libatomic_ops-7.4.0
>>> =3D=3D=3D> Compilation failed unexpectedly.
>>> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the =
failure to
>>> the maintainer.
>>> *** Error code 1
>>>=20
>>> Stop.
>>> make[1]: stopped in /usr/ports/devel/libatomic_ops
>>> *** Error code 1
>>>=20
>>> Stop.
>>> make: stopped in /usr/ports/devel/libatomic_ops
>>>> uname -a
>>> FreeBSD raspberry-pi 11.0-CURRENT FreeBSD 11.0-CURRENT #85 r269265M: =
Tue Jul 29 23:55:33 CEST 2014     =
root@bsd5.fh-muenster.de:/usr/home/tuexen/obj/arm.armv6/usr/home/tuexen/he=
ad/sys/RPI-B  arm
>>>=20
>>> Any idea what is going wrong?
>>>=20
>>> Best regards
>>> Michael
>>=20
>> Try adding CPUTYPE=3Darm1176jzf-s to =
/etc/make.confCPUTYPE=3Darm1176jzf-s
>>=20
>> -- Ian
>=20
> Update on this... as of r269387, arm1176jzf-s is the default cpu type =
in
> clang (as it has always been in gcc) and there's no need to add =
CPUTYPE.
Ahh, great. I can also confirm that using the above setting in =
/etc/make.conf
resolves the issue. I guess it makes sense to try a newer build...

Thanks for the help.

Best regards
Michael
>=20
> -- Ian
>=20
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?640B6C6A-B270-4F8D-B80D-B2778D18B703>