From patchwork Fri Jul 12 13:42:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre PAYEN X-Patchwork-Id: 1131378 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="dfKUanxo"; 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 45lYyX1ygnz9s8m for ; Fri, 12 Jul 2019 23:42:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3C42F882F0; Fri, 12 Jul 2019 13:42:38 +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 hzL5PpgidErq; Fri, 12 Jul 2019 13:42:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 677FC88321; Fri, 12 Jul 2019 13:42:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 6478E1BF2C7 for ; Fri, 12 Jul 2019 13:42:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 61BB9227EC for ; Fri, 12 Jul 2019 13:42:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JEWlf+FrKqfN for ; Fri, 12 Jul 2019 13:42:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id 641AC204CB for ; Fri, 12 Jul 2019 13:42:34 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v19so9021002wmj.5 for ; Fri, 12 Jul 2019 06:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4WKVhDs/L8UaZz5saIVfSbs8iK/r0QCW1nqBjUpj9sk=; b=dfKUanxovivR5milOtWtQt+n0uIWMpQ8vtDqpKO7XK67/0r6q9tnqzu2BjVwduCcDx KcEAxSCLFxiDC2UkDA7vqrkO3VTwJ2Djv6+qW8kIFxd6/L2kM/K7Ivq9EiJgKdy9ZhJP shjwRE8SMrDX6E6EGh4jnzUQdmEdXNYFPyTFZxionQBC5SG6TTMQfiBs4qMqqz8bEnX/ EfVTrRBHiSN9PMqqj/34tqejdkdkwNjO2SveN9Xcj+R+kfMM0v4WD5qpJ1ufdamOIYKV subc4ASpvoErbFBR4zSo69gPVm3RAR/Id/xfoehluEDbTIpMOXrLP8lZZ6AhpWMcfhln kUOQ== 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=4WKVhDs/L8UaZz5saIVfSbs8iK/r0QCW1nqBjUpj9sk=; b=JZUtAilwrpEcU3/bOwPent0c6g6Uw57gpS+w4Ashb4/xQjvMyW7Alsl41xAhO0NE8z qKE3ZRitnO2gy787hkTIAcoVbYLlXjqLzl2PFw4yJrrgcYc/Ke+fibMIrUtxrP/TXsRv b5xVPfo5tyM6sJZRfb2CSSKPXj+82GA7TC/80lOZZ18np6MBrMFBWDlx50lxY2e4Ue3K ulk3BghDOmNFOW9yGH5V/uF3b56LeIdgPkwAMy6n0c2LdCdfW5ixpkv+IF7Dpkp3nt89 lrb/CvjVC6veJJ+NYNflznfINQkxxv/QDp3MWSdz/MojMaxwIIhxWPQ8JGMy4+UB9I2L 2kzQ== X-Gm-Message-State: APjAAAVx8z3roXTbkEarJUrlf5E4NQjbmEtoM+q5SjonZhC4QtCMgKX0 djPjfWlzHODgs2uvRtQg7HXyTVENYoQ= X-Google-Smtp-Source: APXvYqyHvO3jyIMddH625CdbhU03IRq43/WTsf+P1apI7hyvodDVAE0JwDlw1PuukUJmO9gRhKMjkg== X-Received: by 2002:a1c:99ca:: with SMTP id b193mr9721825wme.31.1562938952819; Fri, 12 Jul 2019 06:42:32 -0700 (PDT) Received: from P-NAN-GEORGETOWN.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id f7sm9359099wrv.38.2019.07.12.06.42.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 06:42:32 -0700 (PDT) From: Aalx To: buildroot@buildroot.org Date: Fri, 12 Jul 2019 15:42:27 +0200 Message-Id: <20190712134227.22781-1-alexandre.payen@smile.fr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] [PATCH] package/python-numpy: fix occasional build and run-time failure with lapack 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: Alexandre PAYEN , romain.naour@smile.fr Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Alexandre PAYEN python-numpy build fails if lapack is built before python-numpy itself, and this does not always happen because lapack dependency is missing in BR2_PYTHON_NUMPY_DEPENDENCIES. Also python-numpy fail at run-time because `cblas` reference is missing in BR2_PYTHON_NUMPY_SITE_CFG_LIBS however the choosen lapack implementation. So : - add lapack to BR2_PYTHON_NUMPY_DEPENDENCIES when BR2_PACKAGE_LAPACK = y - add cblas reference in BR2_PYTHON_NUMPY_SITE_CFG_LIBS when BR2_PACKAGE_LAPACK = y - add cblas and clapack reference in BR2_PYTHON_NUMPY_SITE_CFG_LIBS when BR2_PACKAGE_CLAPACK = y Fixes: http://autobuild.buildroot.net/results/50f/50f7f09a9f830cd7b94f8fc83c09fc3d39297d3d/ http://lists.busybox.net/pipermail/buildroot/2019-June/252380.html Signed-off-by: Alexandre PAYEN --- package/python-numpy/python-numpy.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk index 5d2fbfc7ad..e539a649f7 100644 --- a/package/python-numpy/python-numpy.mk +++ b/package/python-numpy/python-numpy.mk @@ -17,7 +17,12 @@ PYTHON_NUMPY_SETUP_TYPE = setuptools ifeq ($(BR2_PACKAGE_CLAPACK),y) PYTHON_NUMPY_DEPENDENCIES += clapack -PYTHON_NUMPY_SITE_CFG_LIBS += blas lapack +PYTHON_NUMPY_SITE_CFG_LIBS += cblas clapack +PYTHON_NUMPY_ENV += BLAS=clapack LAPACK=clapack +else ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y) +PYTHON_NUMPY_DEPENDENCIES += lapack +PYTHON_NUMPY_SITE_CFG_LIBS += blas cblas lapack +PYTHON_NUMPY_ENV += BLAS=lapack LAPACK=lapack else PYTHON_NUMPY_ENV += BLAS=None LAPACK=None endif