[Bug 207096] archivers/lzo2: on arm cortex-a7, ./lzotest/lzotest -mlzo -n2 -q ./COPYING gets "Signal 10" and stops the build
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 11 02:20:58 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207096
Bug ID: 207096
Summary: archivers/lzo2: on arm cortex-a7, ./lzotest/lzotest
-mlzo -n2 -q ./COPYING gets "Signal 10" and stops the
build
Product: Ports & Packages
Version: Latest
Hardware: arm
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: mandree at FreeBSD.org
Reporter: markmi at dsl-only.net
Flags: maintainer-feedback?(mandree at FreeBSD.org)
Assignee: mandree at FreeBSD.org
[Context basics: projects/clang380-import -r295351 for buildworld/buildkernel
that targeted an rpi2 (armv7-a/cortex-a7). This context requires strict
alignment: FreeBSD 11.0-CURRNET has SCTLR bit[1]==1 for such contexts.]
When I attempt portinstall/powermaster builds for an arm rpi2 context that
depend on lzo2 I get the following.
. . .
LZO configuration summary
-------------------------
LZO version : 2.09
configured for host : armv6-portbld-freebsd11.0
source code location : .
compiler : /usr/bin/clang
preprocessor definitions : -DLZO_HAVE_CONFIG_H=1
preprocessor flags :
compiler flags : -O -pipe -target armv6--freebsd11.0-gnueabi
-march=armv7-a -mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
-mfloat-abi=softfp -fno-strict-aliasing
build static library : yes
build shared library : yes
enable i386 assembly code : no
. . .
===> Running self-tests for lzo2-2.09 (can take a few minutes)
cd /usr/obj/portswork/usr/ports/archivers/lzo2/work/lzo-2.09 && /usr/bin/env
MALLOC_OPTIONS=jz make check test SHELL="/bin/sh -x"
make check-local
./lzotest/lzotest -mlzo -n2 -q ./COPYING
*** Signal 10
Stop.
make[3]: stopped in /usr/obj/portswork/usr/ports/archivers/lzo2/work/lzo-2.09
*** Error code 1
. . .
(which stops the overall build).
Stop reading the description here if you do not care about supporting details
at this point.
Other context details:
# freebsd-version -ku; uname -aKU
11.0-CURRENT
11.0-CURRENT
FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #14 r295351M: Sun Feb 7
03:23:24 PST 2016
markmi at FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG arm 1100097
1100097
# more /etc/make.conf
DEFAULT_VERSIONS+=perl5=5.22
WRKDIRPREFIX=/usr/obj/portswork
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=
#
TO_TYPE=armv6
VERSION_CONTEXT=11.0
CFLAGS+=-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=armv7-a
-mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
.if ${.MAKE.LEVEL} == 0
CC=/usr/bin/clang
CXX=/usr/bin/clang++
CPP=/usr/bin/clang-cpp
.export CC
.export CXX
.export CPP
.endif
# gdb
/usr/obj/portswork/usr/ports/archivers/lzo2/work/lzo-2.09/lzotest/.libs/lzotest
/var/crash/lzotest.90450.core
GNU gdb 6.1.1 [FreeBSD]
. . .
#0 _lzo_config_check () at src/lzo_init.c:117
117 r &= UA_GET_NE16(p) == 0;
(gdb) bt
#0 _lzo_config_check () at src/lzo_init.c:117
#1 0x2007de68 in __lzo_init_v2 (v=8336, s1=2, s2=4, s3=4, s4=4, s5=4, s6=4,
s7=4, s8=4, s9=24) at src/lzo_init.c:226
#2 0x0000b958 in main (argc=5, argv=0xbfbfe928) at lzotest/lzotest.c:1916
For reference. . .
(gdb) info reg
r0 0xbfbfe581 -1077942911
. . .
lr 0x2007d8b0 537385136
pc 0x2007d8b4 537385140
. . .
0x2007d8ac <_lzo_config_check+192>: bl 0x2007dc08 <u2p>
0x2007d8b0 <_lzo_config_check+196>: str r0, [r11, #-36]
0x2007d8b4 <_lzo_config_check+200>: ldrh r0, [r0]
. . .
u.a[0] = u.a[1] = 0;
u.b[0] = 1; u.b[3] = 2;
p = u2p(&u, 1);
r &= UA_GET_NE16(p) == 0;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list