NetBSD Problem Report #48877

From  Thu Jun  5 21:08:48 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 40634A5C6A
	for <>; Thu,  5 Jun 2014 21:08:48 +0000 (UTC)
Message-Id: <>
Date: Thu,  5 Jun 2014 21:28:48 +0200 (CEST)
Subject: libffi package won't build on Raspberry Pi
X-Send-Pr-Version: 3.95

>Number:         48877
>Category:       pkg
>Synopsis:       compilation stops on evbarm architecture (Raspberry Pi)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 05 21:10:01 +0000 2014
>Last-Modified:  Sun Nov 13 20:58:47 +0000 2016
>Originator:     Benjamin Lorenz
>Release:        NetBSD 6.99.41


System: NetBSD 6.99.41 NetBSD 6.99.41 (RPI) #0: Sat May 17 15:47:42 UTC 2014 evbarm
Architecture: earmhf
Machine: evbarm
rpi# make
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Building for libffi-3.0.13
MAKE earmhf-unknown-netbsd6.99.41 :        0 * all
/usr/bin/make "AR_FLAGS="  "CC_FOR_BUILD="  "CFLAGS=-O2  -Wall -fexceptions"  "CXXFLAGS=-O2"  "CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET="  "INSTALL=/usr/bin/install -c -o root -g wheel"  "INSTALL_DATA=/usr/bin/install -c -o root -g wheel -m 644"  "INSTALL_PROGRAM=/usr/bin/install -c -s -o root -g wheel -m 755"  "INSTALL_SCRIPT=/usr/bin/install -c -o root -g wheel -m 755"  "JC1FLAGS="  "LDFLAGS=-Wl,-R/usr/pkg/lib"  "LIBCFLAGS="  "LIBCFLAGS_FOR_TARGET="  "MAKE=/usr/bin/make"  "MAKEINFO=/usr/pkg/src/devel/libffi/work/.tools/bin/makeinfo "  "PICFLAG="  "PICFLAG_FOR_TARGET="  "RUNTESTFLAGS="  "SHELL=/bin/sh"  "exec_prefix=/usr/pkg"  "infodir=/usr/pkg/info"  "libdir=/usr/pkg/lib"  "mandir=/usr/pkg/man"  "prefix=/usr/pkg"  "AR=ar"  "AS=as"  "CC=gcc"  "CXX=c++"  "LD=/usr/pkg/src/devel/libffi/work/.wrapper/bin/ld"  "NM=/usr/bin/nm -B"  "RANLIB=ranlib"  "DESTDIR=" all-recursive
Making all in include
Making all in testsuite
Making all in man
depbase=`echo src/arm/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ./libtool    --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -I. -I../include -Iinclude -I../src  -I. -I../include -Iinclude -I../src -O2 -MT src/arm/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/sysv.lo ../src/arm/sysv.S && mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Iinclude -I../src -O2 -MT src/arm/sysv.lo -MD -MP -MF src/arm/.deps/sysv.Tpo -c ../src/arm/sysv.S  -fPIC -DPIC -o src/arm/.libs/sysv.o
../src/arm/sysv.S: Assembler messages:
../src/arm/sysv.S:227: Error: bad instruction `stmiaeq r2,{r0,r1}'
../src/arm/sysv.S:418: Error: bad instruction `stmiaeq r2,{r0,r1}'
*** Error code 1

make[3]: stopped in /usr/pkg/src/devel/libffi/work/libffi-3.0.13/arm--netbsdelf
*** Error code 1

I see there is a patch for the arm architecture in the package. After reverting
to the original file, the code compiles.  Maybe this is an old patch that is not
needed anymore with gcc 4.8, etc.?



Responsible-Changed-From-To: port-evbarm-maintainer->joerg
Responsible-Changed-When: Fri, 06 Jun 2014 07:44:47 +0000
joerg added the patch - please take a look.

From: Joerg Sonnenberger <>
Subject: Re: pkg/48877 (compilation stops on evbarm architecture (Raspberry
Date: Fri, 6 Jun 2014 14:11:00 +0200

 This likely needs a ".syntax unified" for GNU as. Will test some time
 next week...


State-Changed-From-To: open->feedback
State-Changed-When: Sun, 30 Oct 2016 20:40:02 +0000
Should be fixed due to  patch-src_arm_sysv.S
fixed upstream commit 6eff9ff9e72463b9783be2514f944b6f05692054
stmiaeq no longer used.

State-Changed-From-To: feedback->closed
State-Changed-When: Sun, 13 Nov 2016 20:56:12 +0000
I expect this to be fixed, and mail is bouncing.

State-Changed-From-To: closed->open
State-Changed-When: Sun, 13 Nov 2016 20:58:47 +0000
I misunderstood the problem, oops.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.