-
Notifications
You must be signed in to change notification settings - Fork 18k
bootstrap: segmentation fault during build #9800
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
Comments
What processor does your synology use, you may need to export GOSSE=387 to Dave
|
I'd first run make.bash with bash -x and see which program is segfaulting
and then run the program under gdb if it's cmd/dist/dist.
|
The box is a DS214play so it's using an Intel Atom CE5335 i686. I tried exporting GOSSE=387 with no luck. The output of bash -x is:
and ./cmd/dist/dist debugged outputs:
|
Try running ./cmd/dist/dist env -p under gdb. e.g.
gdb --args ./cmd/dist/dist env -p
and then type run, and see which line segfaulted.
you might need to compile cmd/dist again manually to enable debugging
information.
gcc -O2 -Wall -Werror -ggdb -o cmd/dist/dist -Icmd/dist
'-DGOROOT_FINAL="/root/temp/go-go1.4"' cmd/dist/*.c
|
That's weird. cmd/dist/dist in Go 1.4 shouldn't link to libpthread what's the output of |
So, running it under gdb like you suggested outputs:
Unfortunately I don't have access to ldd because it's not installed on the Synology boxes and not in any package i can easily install so I'd have to build that one from source too... |
Try compile the dist program with debugging symbols: and then run gdb again. Use bt to get the full stack trace. |
Ok, now it says:
|
I'm sorry, but you must have a bad gcc installed. All this script does is (effectively) gcc *.c and run the resulting binary. In your case the resulting binary doesn't work. You should look into trying to reduce the test case and report it to your Linux distribution, or (less work) make sure all your compiler and library packages are up to date. |
I'm trying to build from source on this system:
Linux Synology 3.2.40 #5022 SMP PREEMPT Wed Jan 7 14:19:42 CST 2015 i686 GNU /Linux synology_evansport_214play
And for building I'm running:
The same thing happens for make.bash. Any ideas what's happening?
The text was updated successfully, but these errors were encountered: