-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to build julia-1.8.0-beta1 on macOS #44584
Comments
Looks like it's caused by using the custom LLVM: Line 89 in 7b711ce
Line 239 in 7b711ce
The issue doesn't happen with |
The issue happens whether |
This will be blocking julia 1.8.0 release as part of Homebrew. Can someone please help? |
I can reproduce the error with
My understanding is that the culprit is Line 132 in 9320fba
DESTDIR equal to the source directory? If I remove that, installation works as expected.
|
@fxcoudert can you please check whether diff --git a/deps/llvm.mk b/deps/llvm.mk
index dbce7b23c4..143e455e1e 100644
--- a/deps/llvm.mk
+++ b/deps/llvm.mk
@@ -233,10 +233,14 @@ $$(LLVM_BUILDDIR_withtype)/build-compiled: $$(SRCCACHE)/$$(LLVM_SRC_DIR)/$1.patc
LLVM_PATCH_PREV := $$(SRCCACHE)/$$(LLVM_SRC_DIR)/$1.patch-applied
endef
+ifeq ($(USE_SYSTEM_ZLIB), 0)
+$(LLVM_BUILDDIR_withtype)/build-configured: | $(build_prefix)/manifest/zlib
+endif
+
# NOTE: LLVM 12 and 13 have their patches applied to JuliaLang/llvm-project
# declare that all patches must be applied before running ./configure
-$(LLVM_BUILDDIR_withtype)/build-configured: | $(LLVM_PATCH_PREV) $(build_prefix)/manifest/zlib
+$(LLVM_BUILDDIR_withtype)/build-configured: | $(LLVM_PATCH_PREV)
$(LLVM_BUILDDIR_withtype)/build-configured: $(SRCCACHE)/$(LLVM_SRC_DIR)/source-extracted | $(llvm_python_workaround)
mkdir -p $(dir $@) fixes for you the fact that zlib is built anyway when using |
The value there should be derived as |
Launching a new build of 1.8.0-beta3 with this fix added: Homebrew/homebrew-core#100404 |
While this was fixed for the case where On a clean build of master with unwind patches restored (#45189):
I get:
Could you please reopen? |
@vtjnash I'm not really sure how this helps me. The call to Lines 16 to 19 in f18324c
$(ZLIB_SRC_DIR) is correctly the path within $(BUILDDIR) where the build happens.
The problem is that doing Line 132 in 9320fba
DESTDIR helps anything.
|
Oh, we may not be able to deal with symlinks in the build path very well, as that goes untested |
My point is that I don't understand what's the purpose of When building packages with autotools, the prefix is already configured at Line 7 in 9320fba
Line 21 in 9320fba
DESTDIR in make install DESTDIR=... is ignored when using autotools, but not CMake, which would override the setting of CMAKE_INSTALL_PREFIX , and the DESTDIR we supply is wrong! Do we build packages which use different build systems which require DESTDIR in the make install invocation?
@fxcoudert maybe you can see if this patch diff --git a/deps/tools/common.mk b/deps/tools/common.mk
index 006d3486fc..acc7a55327 100644
--- a/deps/tools/common.mk
+++ b/deps/tools/common.mk
@@ -129,7 +129,7 @@ upper = $(shell echo $1 | tr a-z A-Z)
# this rule ensures that make install is more nearly atomic
# so it's harder to get half-installed (or half-reinstalled) dependencies
# # and enables sharing deps compiles, uninstall, and fast reinstall
-MAKE_INSTALL = +$$(MAKE) -C $1 install $$(MAKE_COMMON) $3 DESTDIR="$2"
+MAKE_INSTALL = +$$(MAKE) -C $1 install $$(MAKE_COMMON) $3
define SHLIBFILE_INSTALL
mkdir -p $2/$$(build_shlibdir) wreaks havoc or solves our problems? In #44584 (comment) I reported that at least for the specific case of zlib removing |
The meaning of |
Please reopen if still an issue - and we can update the title accordingly as well. |
Trying to build the 1.8.0 beta1 on macOS as part of Homebrew testing, we're seeing a build failure. The build command is:
make VERBOSE=1 USE_BINARYBUILDER=0 prefix=/opt/homebrew/Cellar/julia/1.8.0-beta1 sysconfdir=/opt/homebrew/etc USE_SYSTEM_CSL=1 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_LIBSUITESPARSE=1 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_NGHTTP2=1 USE_SYSTEM_CURL=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_P7ZIP=1 LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lopenblas LIBLAPACKNAME=libopenblas USE_BLAS64=0 PYTHON=python3 MACOSX_VERSION_MIN=12 JULIA_CPU_TARGET='generic;cortex-a57;thunderx2t99;armv8.2-a,crypto,fullfp16,lse,rdm' TAGGED_RELEASE_BANNER='Built by Homebrew (v1.8.0-beta1)' install
and the failure is:
Full build output available there: https://gist.github.com/fxcoudert/4c0dc2b0a383dffb8e88f6286a895fd2
It seems to be building
zlib
(and then not finding it), while we requestedUSE_SYSTEM_ZLIB=1
The text was updated successfully, but these errors were encountered: