From patchwork Sat Sep 23 21:24:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 817842 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="atX6kNBs"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y03K72JCBz9t4P for ; Sun, 24 Sep 2017 07:24:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B756988F52; Sat, 23 Sep 2017 21:24:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t4Iqn1gHQuJn; Sat, 23 Sep 2017 21:24:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 52DD488F1B; Sat, 23 Sep 2017 21:24:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D93E71CEBCD for ; Sat, 23 Sep 2017 21:24:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CD98E880F9 for ; Sat, 23 Sep 2017 21:24:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f10SHKrYf1-K for ; Sat, 23 Sep 2017 21:24:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 34C8F8808F for ; Sat, 23 Sep 2017 21:24:36 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id p37so2261117wrb.5 for ; Sat, 23 Sep 2017 14:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pMW5zJRJWTg/WIozZo1IF52rPNykL/m5HyRjzwms7CY=; b=atX6kNBsP9nzuBcVs4bF9382nxCUuiK+d+KpLlNDmAjHMVHt8FpQcVS9HhWTbOofY5 uaTgjZe72u3zrwhhN3GtA76/2HySuAxTmXQ+0wcXLBNprKMY5yRJ1Aze8Q8hjIsx8+S8 qS90Meh8QyUQMx9UvpO0/OqMg9JuOUSQqlqSGoEooZNSqu5S6kSy36KBBGYBj5y+6Y1p Xbd4DExZHwYR4Oxr+0gRTStBV6NPeX4koDfX/7PW9zoaruZ8gWExLcc8HzPmL7pCvkGf UpYhOi3jVkCL9h/o1FDIgMUmx676ZawwyAaS4gRKOMiT0uTegqDn18d6SRa5AaKzFO9D cpKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pMW5zJRJWTg/WIozZo1IF52rPNykL/m5HyRjzwms7CY=; b=soXEarOel18+7+8LehwoRc8RwSSvGg9SfreTny+AvaAyPJ5geK443R1dA6FQGKfukx HtTQ8lpLVVdvafvYDmZFOc0N81ZuJzyqbL7d41fcfGdsg4zVLqGXVl65YoNjU5IvNR7M YNgf5l5aiDhGUiFRpVuQ2mwqlbotv/UU8UwvpzbxpEcxdzQTdhY+mt+00nbYc06Of7aj fGhTLxkDFMwx6Adl5Q2q69SLnsaXEZ5wuJDDX6KNecr28jTjho6APgxpFJFfWvofZEJB gwYcyhTUv5Y2MUXddgBgygiBn8U4vz2BxWVtrAvcg4S0/OoObLhRdfCUDyp9X+ytOAEX NA8Q== X-Gm-Message-State: AHPjjUgXbgWnU9XwBS6ois8+i76hK/lN88a6YRv8it1uw5zwJ+937gns T8QJT8NYPm09Xfw+eEs36HlPxXWc X-Google-Smtp-Source: AOwi7QANC1tXQsVbRhM1sBBjDUzuMCzCRzS9Z0Fq8qP6hA6SO8tlLfouPdpUn4K3Pmg0M5wW5wo6EA== X-Received: by 10.223.171.15 with SMTP id q15mr2399966wrc.23.1506201874416; Sat, 23 Sep 2017 14:24:34 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:1391:67d0:e6f9:2d2f:1a1e:79bf]) by smtp.gmail.com with ESMTPSA id f89sm1253848wmh.18.2017.09.23.14.24.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Sep 2017 14:24:34 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 23 Sep 2017 23:24:13 +0200 Message-Id: <20170923212414.16744-15-romain.naour@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170923212414.16744-1-romain.naour@gmail.com> References: <20170923212414.16744-1-romain.naour@gmail.com> MIME-Version: 1.0 Cc: Romain Naour Subject: [Buildroot] [PATCH v3 6/7] package/flex: disable reallocarray X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This doesn't compile with glibc 2.26 where reallocarray() as been introduced. It's a nasty issue, when reallocarray() is available for the target, flex will build a small tool called stage1flex for the host (using _FOR_BUILD) but with the config.h generated for the target. When the host doesn't have a glibc >= 2.26, reallocarray() is never defined while building stage1flex: misc.c:147:8: warning : implicit declaration of function « reallocarray » [-Wimplicit-function-declaration] mem = reallocarray(NULL, (size_t) size, element_size); ^~~~~~~~~~~~ misc.c:147:6: warning : assignment makes pointer from integer without a cast [-Wint-conversion] mem = reallocarray(NULL, (size_t) size, element_size); ^ Disable reallocarray for now, reallocarray() support may be enabled in a followup patch. Fixes: stage1flex-misc.o: In function `allocate_array': misc.c:(.text+0x38f): undefined reference to `reallocarray' stage1flex-misc.o: In function `reallocate_array': misc.c:(.text+0xc8a): undefined reference to `reallocarray' collect2: error: ld returned 1 exit status Signed-off-by: Romain Naour --- package/flex/flex.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/flex/flex.mk b/package/flex/flex.mk index b782699..0196624 100644 --- a/package/flex/flex.mk +++ b/package/flex/flex.mk @@ -10,7 +10,8 @@ FLEX_INSTALL_STAGING = YES FLEX_LICENSE = FLEX FLEX_LICENSE_FILES = COPYING FLEX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-m4 -FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4 +FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4 \ + ac_cv_func_reallocarray=no HOST_FLEX_DEPENDENCIES = host-m4 define FLEX_DISABLE_PROGRAM