[Buildroot] [git commit] clapack: disable on blackfin
Peter Korsgaard
peter at korsgaard.com
Tue May 13 21:37:24 UTC 2014
commit: http://git.buildroot.net/buildroot/commit/?id=7f5fec620101dba2e97a08d7e61640aa39a3c3f0
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The "_" symbol prefix added by the blackfin toolchain causes "undefined
symbol" build failures when the compiler is trying to link a binary
with libblas and/or liblapack.
This patch also disables clapack reverse dependencies: armadillo.
Fixes:
http://autobuild.buildroot.net/results/a28df0ba10803e6e54c2f8160bbd8190cba4d690/
Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/armadillo/Config.in | 2 ++
package/clapack/Config.in | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/package/armadillo/Config.in b/package/armadillo/Config.in
index 898564d..c7a680a 100644
--- a/package/armadillo/Config.in
+++ b/package/armadillo/Config.in
@@ -2,6 +2,7 @@ comment "armadillo needs a toolchain w/ C++, largefile"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE
depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) # clapack
depends on !(BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC) # clapack
+ depends on !BR2_bfin # clapack
config BR2_PACKAGE_ARMADILLO
bool "armadillo"
@@ -9,6 +10,7 @@ config BR2_PACKAGE_ARMADILLO
depends on BR2_LARGEFILE # clapack
depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) # clapack
depends on !(BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC) # clapack
+ depends on !BR2_bfin # clapack
select BR2_PACKAGE_CLAPACK
help
Armadillo: An Open Source C++ Linear Algebra Library for
diff --git a/package/clapack/Config.in b/package/clapack/Config.in
index ee538a4..5e930a6 100644
--- a/package/clapack/Config.in
+++ b/package/clapack/Config.in
@@ -5,6 +5,10 @@ config BR2_PACKAGE_CLAPACK
# _fpu_control is used on PowerPC, but not available with
# uClibc
depends on !(BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC)
+ # disable clapack on blackfin, it triggers "undefined symbol" failure
+ # because of the "_" symbol prefix:
+ # http://autobuild.buildroot.net/results/a28df0ba10803e6e54c2f8160bbd8190cba4d690/
+ depends on !BR2_bfin
help
BLAS and LAPACK C implementation (f2c'ed version of).
@@ -24,5 +28,6 @@ config BR2_PACKAGE_CLAPACK_ARITH_H
comment "cblas/clapack needs a toolchain w/ largefile"
depends on !BR2_LARGEFILE
+ depends on !BR2_bfin
depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el)
depends on !(BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC)
More information about the buildroot
mailing list