X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 7E427DC0A08 for ; Mon, 11 Nov 2013 09:56:05 +0000 (UTC) Received: by mail-la0-f44.google.com with SMTP id ep20so810192lab.3 for ; Mon, 11 Nov 2013 01:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=zak7d32V1X2wMwem0Pxq8UCMxfexl8QjPO5YEBCX7cg=; b=p3zbHwhvdBacyIyhuovPVZy+KbLHATTlnsrwgacJQutBYKLAnD+77kL/i8dnRBBU5m 2CozU4rqqZVXxNvPtlJoo+LmlhMlB3ZKoSlWnzu5cx8Xdaa4SyUUwvCSBYeq3rE+1ogr GtcV3KdIF9XMASC04itRNtt6fuOaWub1Vu7z8o7sgx5QQQRNSj9bMop6Xso2/HIllA9a hjIS9E2DDDG2ZVLkAqFS6RT/Af+4cWH2ycuG1QnbH46zfyj2Z2yFOcQ6UwufetUanVu4 uUTGHQzQuJy8kQiUg1N/Sm1gG3+6inqy7/GwKAQzGEHD+yp++OLDvBGo37xC31Hg/UuQ BZNA== X-Received: by 10.152.120.102 with SMTP id lb6mr754166lab.37.1384163762134; Mon, 11 Nov 2013 01:56:02 -0800 (PST) Received: from vostro ([83.145.235.199]) by mx.google.com with ESMTPSA id x7sm22215979lad.7.2013.11.11.01.56.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Nov 2013 01:56:02 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 11 Nov 2013 11:55:59 +0200 From: Timo Teras To: "Leslie P. Polzer | PORT ZERO" Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Problem building gnat for armhf Message-ID: <20131111115559.4c335679@vostro> In-Reply-To: <5280A831.9010205@port-zero.com> References: <5280A831.9010205@port-zero.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; i486-alpine-linux-uclibc) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 11 Nov 2013 10:49:37 +0100 "Leslie P. Polzer | PORT ZERO" wrote: > have you by any chance encountered this error when crossbuilding gnat > as part of gcc for armhf: > > ada/ali.o: In function `ali__scan_ali__fatal_error__wchar.7321': > ali.adb:(.text+0x1c): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__checkc.7267': > ali.adb:(.text+0xac): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__skip_eol.7302': > ali.adb:(.text+0x144): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__skip_line.7304': > ali.adb:(.text+0x27c): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__get_nat.7284': > ali.adb:(.text+0x340): undefined reference to `_gnat_stack_check' > ada/ali.o:ali.adb:(.text+0x444): more undefined references to > `_gnat_stack_check' follow collect2: error: ld returned 1 exit status > make[2]: *** [gnatbind] Error 1 > make[2]: *** Waiting for unfinished jobs.... > ada/ali.o: In function `ali__scan_ali__fatal_error__wchar.7321': > ali.adb:(.text+0x1c): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__checkc.7267': > ali.adb:(.text+0xac): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__skip_eol.7302': > ali.adb:(.text+0x144): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__skip_line.7304': > ali.adb:(.text+0x27c): undefined reference to `_gnat_stack_check' > ada/ali.o: In function `ali__scan_ali__get_nat.7284': > ali.adb:(.text+0x340): undefined reference to `_gnat_stack_check' > ada/ali.o:ali.adb:(.text+0x444): more undefined references to > `_gnat_stack_check' follow > > This is with latest aports and an up to date edge system. > I don't get this when crossbuilding for x86-musl. > > It looks like this function isn't defined for armhf, or the > file it is defined in is not included. I had such issues, but I thought I fixed them all. Namely adding -fno-stack-check flags to ESP_NOSSP_CFLAGS and stage1_cflags should have fixed it. Search for "Fix ada bootstrap" in the apkbuild. Then again when I did my cross compiler things were different. It seems to be recent addition in piepatches that -fstack-check is enabled by default. So the issue probably depends how the gcc you use to compile cross gcc is built. Adding -fno-stack-check should fix it, but where to add it I'm not fully sure. - Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---