NetBSD Problem Report #48791

From tsutsui@ceres.dti.ne.jp  Wed May  7 16:25:06 2014
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 64D12A580B
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 May 2014 16:25:06 +0000 (UTC)
Message-Id: <201405071625.s47GP0ta021865@mirage.localdomain>
Date: Thu, 8 May 2014 01:25:00 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: devel/libexecinfo build failure on NetBSD/arm 6.1.4
X-Send-Pr-Version: 3.95

>Number:         48791
>Category:       pkg
>Synopsis:       devel/libexecinfo build failure on NetBSD/arm 6.1.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ober
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 07 16:30:00 +0000 2014
>Last-Modified:  Fri May 09 13:40:00 +0000 2014
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.1.4 + pkgsrc-2014Q1
>Organization:
>Environment:
System: NetBSD/evbarm 6.1.4 + pkgsrc-2014Q1 updated around 20140503
Architecture: arm
Machine: evbarm
>Description:
libexecinfo-1.1 in pkgsrc-2014Q1 fails on NetBSD/evbarm 6.1.4:

---
 :
===> Creating toolchain wrappers for libexecinfo-1.1
===> Configuring for libexecinfo-1.1
=> Checking for portability problems in extracted files
===> Building for libexecinfo-1.1
#   compile  libexecinfo-1.1/execinfo.o
gcc -O2 -std=gnu99 -Werror      -c    execinfo.c -o execinfo.o
objcopy -x execinfo.o
#   compile  libexecinfo-1.1/execinfo.pico
gcc -O2 -std=gnu99 -Werror      -c    -fPIC -DPIC execinfo.c -o execinfo.pico
objcopy -x execinfo.pico
#   compile  libexecinfo-1.1/stacktraverse.o
gcc -O2 -std=gnu99 -Werror      -c    stacktraverse.c -o stacktraverse.o
cc1: warnings being treated as errors
stacktraverse.c: In function 'getreturnaddr':
stacktraverse.c:10:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:11:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:12:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:13:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:14:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:15:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:16:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:17:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:18:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:19:13: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:20:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:21:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:22:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:23:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:24:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:25:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:26:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:27:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:28:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:29:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:30:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:31:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:32:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:33:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:34:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:35:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:36:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:37:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:38:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:39:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:40:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:41:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:42:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:43:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:44:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:45:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:46:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:47:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:48:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:49:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:50:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:51:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:52:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:53:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:54:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:55:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:56:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:57:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:58:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:59:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:60:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:61:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:62:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:63:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:64:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:65:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:66:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:67:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:68:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:69:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:70:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:71:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:72:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:73:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:74:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:75:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:76:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:77:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:78:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:79:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:80:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:81:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:82:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:83:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:84:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:85:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:86:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:87:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:88:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:89:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:90:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:91:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:92:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:93:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:94:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:95:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:96:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:97:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:98:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:99:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:100:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:101:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:102:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:103:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:104:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:105:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:106:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:107:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:108:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:109:14: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:110:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:111:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:112:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:113:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:114:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:115:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:116:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:117:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:118:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:119:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:120:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:121:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:122:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:123:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:124:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:125:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:126:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:127:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:128:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:129:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:130:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:131:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:132:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:133:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:134:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:135:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:136:15: error: unsupported argument to '__builtin_return_address'
stacktraverse.c:137:15: error: unsupported argument to '__builtin_return_address'
*** Error code 1

Stop.
make: stopped in /usr/obj.evbarm/pkgsrc/devel/libexecinfo/work.arm/libexecinfo-1.1
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libexecinfo
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libexecinfo
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/cmake
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/awesome
*** Error code 1

Stop.
---

>How-To-Repeat:
cd wm/awesome ; make package

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ober
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Thu, 08 May 2014 00:56:55 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/48791 (devel/libexecinfo build failure on NetBSD/arm 6.1.4)
Date: Fri, 9 May 2014 22:38:44 +0900

 Google search says:

 "__builtin_return_address() doesn't supports other arguments than 0 in ARM"
 http://stackoverflow.com/questions/9229702/gcc-return-address-of-calling-function-in-arm-architecture

 so it looks the only possible workaround is to make getreturnaddr()
 always return NULL on ARM (and MIPS etc)?

 ---
 Izumi Tsutsui

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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