From patchwork Sat May 16 12:19:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1291893 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=SmW8nFDj; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49PPSV4Qjpz9sTC for ; Sat, 16 May 2020 22:18:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1CF4989677; Sat, 16 May 2020 12:18:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rhW+ZG5eBwwf; Sat, 16 May 2020 12:18:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B86528966A; Sat, 16 May 2020 12:18:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F00241BF5B3 for ; Sat, 16 May 2020 12:18:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E72D288F12 for ; Sat, 16 May 2020 12:18:11 +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 k4f6Uj3E1VOW for ; Sat, 16 May 2020 12:18:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id A9FF788EF3 for ; Sat, 16 May 2020 12:18:09 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id w7so6404295wre.13 for ; Sat, 16 May 2020 05:18:09 -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:mime-version :content-transfer-encoding; bh=TB/UUuagMxoGcGo/T1+eK8f/TpE0Fl3dxT5OgJieGNA=; b=SmW8nFDjFUNB5kqaXuBOZiKZItHJfEEKKy+mE31KaZKVOFlfdgurg99eyNwsLQLzGx BWvZ5OZ519Uq+9p/XKFltqwRAfJ6b7dA9ei0x8UY1YJZu4CwVNn/Plbvbgbb+HxLrHg0 oR8/ZodWF2LJxIw1Ekc//8T+BlxsZbTPqpk0E9JlMYBQdt1z7tTaDP8jk4+DsjSKP5qt cD0HBr5QZ7AFtZnKAMGnLY5itug8UUskRTppg/HSoLmOUnZEbrR1izGeJP5oISVAglaW mjmhRX5lXPa6evDJQDzfEZT9fVzDZebvtUZe73RmqUxYnuS71Wy7TY5GD26sqrj5oJJW SZow== 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:mime-version :content-transfer-encoding; bh=TB/UUuagMxoGcGo/T1+eK8f/TpE0Fl3dxT5OgJieGNA=; b=GRzs2YrQlc1I9oEMvsJ9HEezmhdcuSAbl2padXMwo4lpYKKSMw+jbETxIqDIjiYZDr HoefCghb56Jo4V8Ue/HsIQ1920KY9226ifAsBZmUvDdSqJ87AcjKlqdpGuErCh4eAy6V KOc0gUo4z2n0ODRi6MEIG1I4yAqLiVAZaZrIUbI3nVmMPxBTHSVK2CEX37vORqtKsKGW 0l9JtWWgpdL2Qi8SKTjjFCCHMoPInuNiggWYcotqKhLdfXpxp7emE60UL+ALbSugAHnO HpWcYqHqPNMo/y5qv/af/1prcOpL7x299EmNDkfDV/gx0BiNrWsRwc8ripj9k+KT5bNv HM5Q== X-Gm-Message-State: AOAM531Tu+6VVqQnDrDI6oiAGmPDNosOYsKR9e0taT3fvAwZwCvFlgFQ E80mnaYbuj52RQLETO1YLo0uZEtk X-Google-Smtp-Source: ABdhPJzAOF2T7xHMxUEBmoDD0wx1MlhwnhCLAyEQmw5NeH06NVSYDLohyig77v5PmeeoLPYTfZDbfg== X-Received: by 2002:adf:bb4e:: with SMTP id x14mr9402126wrg.63.1589631487846; Sat, 16 May 2020 05:18:07 -0700 (PDT) Received: from kali.home (lfbn-ren-1-2144-158.w92-167.abo.wanadoo.fr. [92.167.223.158]) by smtp.gmail.com with ESMTPSA id c80sm7960780wme.15.2020.05.16.05.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2020 05:18:07 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 16 May 2020 14:19:35 +0200 Message-Id: <20200516121935.1235445-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/pistache: force Release mode X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Debug build without SSP will fail on: /home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/8.3.0/../../../../i586-buildroot-linux-musl/bin/ld: cannot find -lssp_nonshared /home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/8.3.0/../../../../i586-buildroot-linux-musl/bin/ld: cannot find -lssp because of the following lines in CMakeLists.txt: if(CMAKE_BUILD_TYPE MATCHES "Debug") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage -fstack-protector-all --param=ssp-buffer-size=4") endif() So force Release mode Fixes: - http://autobuild.buildroot.org/results/3ed42be111cc8c3b3d1d4f6504ae548730ab6af6 Signed-off-by: Fabrice Fontaine --- package/pistache/pistache.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/pistache/pistache.mk b/package/pistache/pistache.mk index c182754cee..f258bae3bc 100644 --- a/package/pistache/pistache.mk +++ b/package/pistache/pistache.mk @@ -11,6 +11,9 @@ PISTACHE_LICENSE_FILES = LICENSE PISTACHE_INSTALL_STAGING = YES +# Force Release to fix build failure without SSP +PISTACHE_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release + ifeq ($(BR2_PACKAGE_OPENSSL),y) PISTACHE_DEPENDENCIES += openssl PISTACHE_CONF_OPTS += -DPISTACHE_USE_SSL=ON