From patchwork Sun May 31 21:00:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1301514 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=F7fMjnCZ; 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 49ZrJy3z6rz9sT6 for ; Mon, 1 Jun 2020 06:59:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0BC1487E23; Sun, 31 May 2020 20:59:28 +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 fsjJ2XBPc846; Sun, 31 May 2020 20:59:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2FA8B87E13; Sun, 31 May 2020 20:59:27 +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 3E97A1BF20D for ; Sun, 31 May 2020 20:59:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3B07D85802 for ; Sun, 31 May 2020 20:59:26 +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 T0Xkv6NrirDd for ; Sun, 31 May 2020 20:59:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5368185736 for ; Sun, 31 May 2020 20:59:25 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id h5so3552544wrc.7 for ; Sun, 31 May 2020 13:59:25 -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=lEPM3XsHBCOB7i3yKlWHjxpc2sdKkxIhKCyifXZVAJ0=; b=F7fMjnCZmihxDUOdX1ijYr3fvGxT4E9d/KRxCuyZGPtHfqhcpdHztzzO45CsH0DTmV K8KTHDzICMhwLDzAL5dCJ5MQ0mNxwYvd9mxPdv4nKMXx8Zsz6k1IF672jtjSuhdLjVn8 Wi44SYWyQHQonVOA2VVRs/pZH1sC2dXFDVsUQcb/Pno+6wM08d4TqGn2cXRQsAK2YRE5 Gxfe0XCeQ1ZLxRyrMjPRcso0S1zJ+gG0jw8ilpOrCcE879TAtopefFwD1gsT3PcnRnmb V4kpwWGPWKJREpTQF8AWmBRiOqu+KCaT9oGRcZ6Chxnand2G6E9tVNzOdTbrfrUN13Cb TEMA== 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=lEPM3XsHBCOB7i3yKlWHjxpc2sdKkxIhKCyifXZVAJ0=; b=bvHQHsIl82fqA7cqHKJjBmH1yCAbBVrElLDakV+SLPZjplOTu2chuEK7rq9wdjWv9n HBpAYlPc/VbBZT84B4VTZtpd5gCLi2xZYHkKrcdaunhypPzvFpBvlyFT0OGLqLFar/rn DIXQKwCVub9Gs+1rcF9nwmI80EU6Idy4nlquQ586RYdlto4kciN1G0nTkinhBDO68uDh 3LJM9YwE20dHumeNkwR3BcPf11xsjon3/ruPdHO2LDszwc0/KlrkWVu86Ley/kgPrUwv PON2YoT91hykgjMjKI66bQPUJ3/bvRjirnUy5TnuSyWJRLDJ1xG2AnJcwEyqFtLVoKFb wq4g== X-Gm-Message-State: AOAM531DlHF6U5YdFW89imGXtJSFIIy7cyoCHM5roYEAYguDdAAp8R8i EMgszZO80Myd5e8opOjVSAF53Y3Y X-Google-Smtp-Source: ABdhPJxb8gw2OCIFT8JKHigs7g/Q9wNB2J8So3T8dcgqiBQY7PAnh+agKst66IxJbjHAw2VBomoLSg== X-Received: by 2002:a5d:4042:: with SMTP id w2mr19743671wrp.423.1590958763316; Sun, 31 May 2020 13:59:23 -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 138sm10733756wma.23.2020.05.31.13.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2020 13:59:22 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 31 May 2020 23:00:42 +0200 Message-Id: <20200531210042.471751-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/openblas: needs -fPIC 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" Build with SSP fails because embedded lapack (libopenblas_armv8p-r0.3.9.a) is built without -fPIC: /tmp/instance-0/output-1/host/bin/aarch64-none-linux-gnu-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=32 -DMAX_PARALLEL_NUMBER=1 -DVERSION=\"0.3.9\" -march=armv8-a -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I.. -shared -o ../libopenblas_armv8p-r0.3.9.so \ -Wl,--whole-archive ../libopenblas_armv8p-r0.3.9.a -Wl,--no-whole-archive \ -Wl,-soname,libopenblas.so.0 -lm -lpthread -lgfortran -lm -lpthread -lgfortran /tmp/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ../libopenblas_armv8p-r0.3.9.a(sbdsvdx.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC Fixes: - http://autobuild.buildroot.org/results/978dc906e3f85fb0ebc615da17353270a7fb65b4 Signed-off-by: Fabrice Fontaine --- package/openblas/openblas.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/openblas/openblas.mk b/package/openblas/openblas.mk index 9701df9148..542facad38 100644 --- a/package/openblas/openblas.mk +++ b/package/openblas/openblas.mk @@ -11,7 +11,9 @@ OPENBLAS_LICENSE_FILES = LICENSE OPENBLAS_INSTALL_STAGING = YES # Initialise OpenBLAS make options to $(TARGET_CONFIGURE_OPTS) -OPENBLAS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) +OPENBLAS_MAKE_OPTS = \ + $(TARGET_CONFIGURE_OPTS) \ + FFLAGS="$(TARGET_FCFLAGS) -fPIC" # Enable cross-compiling OPENBLAS_MAKE_OPTS += CROSS=1