Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Formula/j/julia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

conflicts_with "juliaup", because: "both install `julia` binaries"

def install

Check warning on line 57 in Formula/j/julia.rb

View workflow job for this annotation

GitHub Actions / Linux arm64

`brew install --verbose --formula --build-bottle julia` failed on Linux arm64!

==> Checking /home/linuxbrew/.linuxbrew/Cellar/julia/1.12.1/share/julia/test/testhelpers/SizedArrays.jl dylib?::error::An exception occurred within a child process:%0A EOFError: End of file reached%0A
# Build documentation available at
# https://github.com/JuliaLang/julia/blob/v#{version}/doc/build/build.md
args = %W[
Expand Down Expand Up @@ -111,7 +111,7 @@
haswell,-rdrnd,base(1)
x86-64-v4,-rdrnd,base(1)]
end
args << "JULIA_CPU_TARGET=#{cpu_targets.join(";")}"
args << "JULIA_CPU_TARGET=#{cpu_targets.join(";")}" if !OS.linux? || !Hardware::CPU.arm?
user = begin
tap.user
rescue
Expand Down Expand Up @@ -152,6 +152,24 @@

system "make", *args, "install"

# FIXME: TESTING
if OS.linux? && Hardware::CPU.arm?
prefix.find do |pn|
next if pn.symlink? || pn.directory?

ohai "Checking #{pn} dylib?"
pn.dylib?

ohai "Checking #{pn} binary_executable?"
pn.binary_executable?
rescue EOFError
opoo "Failed on #{pn}"
logs.install pn
raise
end
return
end

if OS.linux?
# Replace symlinks referencing Cellar paths with ones using opt paths
deps.reject(&:build?).map(&:to_formula).map(&:opt_lib).each do |libdir|
Expand Down
Loading