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
all.bash: freebsd12.1 - go1.16.3 - build failed - out of memory #45759
Comments
go build cmd/compile/internal/ssa: /home/water/src/go_1g3/pkg/tool/freebsd_amd64/compile: signal: killed same with go1.14.2 freebsd/amd64 bootstrap. |
How many CPU cores do you have on your machine? Maybe set
This is really too small to build Go toolchain. It might work with sufficient swap space, but it will put a lot of pressure on swap and probably very slow. |
1 core, in this case. but I don't think 2 cores will help. I will try for non-paralyzed tonight.
I have freed up to 2GB of swap, however the process was killed. |
I vaguely remember it was mentioned somewhere but I couldn't find it. Maybe @ianlancetaylor @davecheney could provide a better answer.
Yes, running compiled Go programs are okay. It just needs more memory to build the toolchain itself (make.bash or all.bash). |
I never realized a programming language, is so picky and required those many resources. |
Have you tried to compile a C toolchain from source, like GCC or LLVM on that machine ? |
Yes, go1.4 (bootstrap) worked just fine. // go1.4-bootstrap-20171003.tar.gz |
I recall seeing a problem with Go on FreeBSD 12.1 that was fixed by upgrading to 12.2. I don't have a reference. |
I will try on 12.2 later, however, Linux CentOS 7 may also fail due to the
shortage of memory.
…On Sun, 16 May 2021 at 07:00, Liam ***@***.***> wrote:
I recall seeing a problem with Go on FreeBSD 12.1 that was fixed by
upgrading to 12.2. I don't have a reference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45759 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6N3UK6R2DTYCPUVGOM4XDTN5GN7ANCNFSM43RNJPPQ>
.
--
This e-mail, any attachments and the information contained therein ("this
message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part is
strictly prohibited.
**********************************************************************
Ce message electronique et tous les fichiers joints ainsi que les
informations contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la personne a laquelle
ils sont adresses. Si vous avez recu ce message par erreur, merci de le
renvoyer a son emetteur et de le detruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se soit non
expressement autorisees de ce message, sont interdites.
**********************************************************************
|
Closing as not a bug |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
RUN ./src/all.bash to build the latest version of GO
[water@eid01dev ~/src/go_1g3/src]$ ./all.bash$GO_DISTFLAGS "$ @"
Building Go cmd/dist using /home/water/src/go14. (go1.4-bootstrap-20170531 freebsd/amd64)
Building Go toolchain1 using /home/water/src/go14.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
./make.bash: line 215: 969 Killed ./cmd/dist/dist bootstrap $buildall $vflag
What did you expect to see?
Successfully build the latest version of GO.
What did you see instead?
Process killed with SWAP of 2GB.
[water@eid01dev ~/src/go_1g3/src]$ dmesg
pid 1434 (compile), jid 0, uid 500, was killed: out of swap space
pid 969 (dist), jid 0, uid 500, was killed: out of swap space
pid 1270 (go_bootstrap), jid 0, uid 500, was killed: out of swap space
[water@eid01dev ~/src/go_1g3/src]$ top
last pid: 1465; load averages: 0.56, 0.64, 0.39 up 0+00:10:08 15:53:03
21 processes: 1 running, 20 sleeping
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 14M Active, 14M Inact, 68K Laundry, 92M Wired, 54M Buf, 339M Free
Swap: 2048M Total, 12M Used, 2036M Free
[water@eid01dev ~/src/go_1g3/src]$ swapctl -l
Device: 1024-blocks Used:
/dev/md99 2097152 12012
The text was updated successfully, but these errors were encountered: