[Pkg-julia-devel] build errors on i386 (and other archs)
Norbert Preining
norbert at preining.info
Wed Nov 4 03:52:52 GMT 2020
Hi Mo,
concerning the build failure on some arch, I am not much further. After
discussion with Mose Giordano I was pointed out that we set
USE_BLAS64=1
for 32-bit archs:
>From the code in d/rules:
COMMON_FLAGS = ... USE_BLAS64=1 ...
But we do not unset it later on:
# Set architecture specific CPU targets. See: #910784
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 kfreebsd-amd64 x32))
COMMON_FLAGS += MARCH=x86-64 \
JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"
else ifneq (,$(filter $(DEB_HOST_ARCH),i386 hurd-i386 kfreebsd-i386))
COMMON_FLAGS += MARCH=pentium4 \
JULIA_CPU_TARGET="pentium4;sandybridge,-xsaveopt,clone_all"
else ifneq (,$(filter $(DEB_HOST_ARCH),arm64))
COMMON_FLAGS += USE_BLAS64=0
else ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
COMMON_FLAGS += JULIA_CPU_TARGET="armv7-a;armv7-a,neon;armv7-a,neon,vfp4"
else ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el))
COMMON_FLAGS += JULIA_CPU_TARGET="pwr8"
else
COMMON_FLAGS += JULIA_CPU_TARGET="generic"
endif
I added
USE_BLAS64=0
to the
else ifneq (,$(filter $(DEB_HOST_ARCH),i386 hurd-i386 kfreebsd-i386))
case and now the blas build errors are gone.
According to Mose:
julia uses ILP64 only for 64-bits different from aarch64:
https://github.com/JuliaPackaging/Yggdrasil/blob/16ea9cb4adacc2296fd3890d2bfe3173229b9f1b/O/OpenBLAS/common.jl#L49.
looking at https://salsa.debian.org/julia-team/julia/-/blob/9790137de70ebdb284016a1d1ac356a10f983006/debian/rules
I think you enable ILP64 also for 32-bit systems?
I still see build errors in the tests for "file", but that probably
because I built in a chroot as root, which might not have been the best
idea.
This will probably not fix all the other errors, but at least a few.
Any comments? I see you have put some remarks into the rules files
concerning BLAS64, so I wanted to check back with you.
Best
Norbert
--
PREINING Norbert https://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the Pkg-julia-devel
mailing list