Skip to content
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

build fails on Raspberry Pi 3 #26122

Closed
josefsachsconning opened this issue Feb 19, 2018 · 10 comments
Closed

build fails on Raspberry Pi 3 #26122

josefsachsconning opened this issue Feb 19, 2018 · 10 comments
Labels
building Build system, or building Julia or its dependencies compiler:codegen Generation of LLVM IR and native code system:arm ARMv7 and AArch64

Comments

@josefsachsconning
Copy link
Contributor

My most recent successful build was at f965fd4. I tried make cleanall.

/home/sachs/src/julia-master/base/precompile.jl

signal (11): Segmentation fault
in expression starting at no file:0
_ZN12_GLOBAL__N_111GlobalMerge16doInitializationERN4llvm6ModuleE.part.258 at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-3.9.so (unknown line)
$d at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-3.9.so (unknown line)
Allocations: 197431104 (Pool: 197402878; Big: 28226); GC: 1214
Segmentation fault
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
Makefile:228: recipe for target '/home/sachs/src/julia-master/usr/lib/julia/sys.o' failed
make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys.o] Error 1
Makefile:101: recipe for target 'julia-sysimg-release' failed
make: *** [julia-sysimg-release] Error 2
@ararslan ararslan added building Build system, or building Julia or its dependencies system:arm ARMv7 and AArch64 labels Feb 19, 2018
@JeffBezanson JeffBezanson added the compiler:codegen Generation of LLVM IR and native code label Feb 21, 2018
@josefsachsconning
Copy link
Contributor Author

Any comment on the cause of the problem, and prospects for remediation?

@ViralBShah
Copy link
Member

IIUC, @vtjnash mentioned that it likely needs the llvm-NVPTX-addrspaces.patch, which is perhaps also needed on power.

@josefsachsconning
Copy link
Contributor Author

Any update on this?

@josefsachsconning
Copy link
Contributor Author

The latest at 029677a:

/home/sachs/src/julia-master/base/precompile.jl
Sysimage built. Summary:
Total ─────── 1546.089113 seconds
Base: ─────── 326.076686 seconds 21.0904%
Stdlibs: ──── 1019.574446 seconds 65.9454%
Precompile: ─ 200.425025 seconds 12.9634%

signal (11): Segmentation fault
in expression starting at no file:0
unknown function (ip: 0x76f22f1f)
_ZTVN4llvm12MCSectionELFE at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-3.9.so (unknown line)
Allocations: 217804953 (Pool: 217775600; Big: 29353); GC: 1300
Segmentation fault
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
Makefile:210: recipe for target '/home/sachs/src/julia-master/usr/lib/julia/sys-o.a' failed
make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys-o.a] Error 1
Makefile:85: recipe for target 'julia-sysimg-release' failed
make: *** [julia-sysimg-release] Error 2

@ViralBShah
Copy link
Member

I believe the plan is to move to LLVM 6 soon.

@josefsachsconning
Copy link
Contributor Author

Is it too soon to ask what "soon" means?

@Sacha0
Copy link
Member

Sacha0 commented Apr 28, 2018

See #26398 and associated work. Best!

@vchuravy
Copy link
Member

I am not sure that the upgrade to LLVM 6 will make this go away, but you might want to try
#26925 anyway.

make -C deps uninstall-llvm
make USE_BINARYBUILDER_LLVM=1 BINARYBUILDER_TRIPLET=aarch64-linux-gnu

to use the pre-built LLVM.

@josefsachsconning
Copy link
Contributor Author

Thanks for the suggestion, @vchuravy , but that did not change the result for me.

@vchuravy
Copy link
Member

Did you switch to the branch I referenced beforehand?
You should definitely get a slightly different error referencing libLLVM-6.0.so.

git fetch
git checkout vc/llvmbb
make -C deps uninstall-llvm
make USE_BINARYBUILDER_LLVM=1 BINARYBUILDER_TRIPLET=aarch64-linux-gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies compiler:codegen Generation of LLVM IR and native code system:arm ARMv7 and AArch64
Projects
None yet
Development

No branches or pull requests

6 participants