- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbuildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:freebsdAffects only FreeBSDAffects only FreeBSD
Description
I updated my FreeBSD system from 12.0 to 12.1, cleaned out my Julia clone (git clean -fdx
) and rebuilt from scratch with the default options and no ccache
. It seems there was a segfault while building the sysimage:
LINK usr/lib/libjulia.so.1.5
ld: warning: found local symbol '__bss_start' in global part of symbol table in file /usr/home/alex/Projects/julia/usr/lib/libLLVM.so
ld: warning: found local symbol '_end' in global part of symbol table in file /usr/home/alex/Projects/julia/usr/lib/libLLVM.so
ld: warning: found local symbol '_edata' in global part of symbol table in file /usr/home/alex/Projects/julia/usr/lib/libLLVM.so
CC ui/repl.o
LINK usr/bin/julia
JULIA usr/lib/julia/corecompiler.ji
gmake[1]: *** [sysimage.mk:61: /usr/home/alex/Projects/julia/usr/lib/julia/corecompiler.ji] Segmentation fault (core dumped)
gmake: *** [Makefile:81: julia-sysimg-ji] Error 2
The full build output can be found here. The system compiler is Clang 8.0.1 and the local GCC version is 9.2.0.
EDIT: Also note the LLVM deprecation messages during the build; I don't recall getting those on Linux or macOS.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbuildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:freebsdAffects only FreeBSDAffects only FreeBSD
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ararslan commentedon Feb 2, 2020
Seems to build and work just fine if I rebuild with
USE_BINARYBUILDER=0
. A problem with the cross-compiled LLVM, maybe? @staticfloat?ararslan commentedon Feb 2, 2020
Also, the nightly binaries as of fbc2c0a, version 1.5.0-DEV.221, seem to be operable AFAICT...
giordano commentedon Feb 2, 2020
Any chance to find out which is the offending binary, maybe by using binary search? 😁
ararslan commentedon Feb 3, 2020
Not sure what you mean. Like which dependency is the problem?
giordano commentedon Feb 3, 2020
Yes
staticfloat commentedon Feb 3, 2020
So you're saying the nightly binaries work, but you can't compile from source using BB deps?
ararslan commentedon Feb 3, 2020
Yes, exactly.
staticfloat commentedon Feb 3, 2020
Can you run the bootstrap command in
gdb
orlldb
to see where the segfault is coming from?ararslan commentedon Feb 3, 2020
I'm not sure how exactly to do that. Any tips?
JeffBezanson commentedon Feb 3, 2020
This should work:
ararslan commentedon Apr 21, 2020
ararslan commentedon Apr 23, 2020
Looks like it could be an issue with the libuv provided by BinaryBuilder. Any suggestions for how to confirm?
6 remaining items
ararslan commentedon Mar 15, 2021
Yeah, unfortunately. The easiest fix is to dynamically link libuv.
USE_BINARYBUILDER_LIBUV=0
flag togmake
(only on FreeBSD) JuliaCI/julia-buildbot#219Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)
Update BinaryBuilder libuv to 2.0.1+4 (JuliaLang#41900)
Update BinaryBuilder libuv to 2.0.1+4 (JuliaLang#41900)
Update BinaryBuilder libuv to 2.0.1+4 (#41900)