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

Compile error under Arch Linux #56

Open
stefanhusmann opened this issue Mar 11, 2018 · 5 comments
Open

Compile error under Arch Linux #56

stefanhusmann opened this issue Mar 11, 2018 · 5 comments

Comments

@stefanhusmann
Copy link

I try to compile blackhole under Arch Linux x86_64 using Gambit 4.8.9 and gcc 7.3.0. It tells me to increase some value, but how?

==> Beginne build()...
bh.scm:
bh_.c:
bh.c:
bh.c: In function '___H__20_bh':
bh.c:142357:1: warning: const/copy propagation disabled: 37858 basic blocks and 120173 registers; increase --param max-gcse-memory above 568778592 [-Wdisabled-optimization]
___END_M_COD
^~~~~~~~~~~~
bh.c:142357:1: warning: PRE disabled: 37858 basic blocks and 120173 registers; increase --param max-gcse-memory above 568778592 [-Wdisabled-optimization]
bh.c:142357:1: warning: const/copy propagation disabled: 37858 basic blocks and 120173 registers; increase --param max-gcse-memory above 568778592 [-Wdisabled-optimization]
bh.c:142357:1: warning: const/copy propagation disabled: 37458 basic blocks and 120938 registers; increase --param max-gcse-memory above 566364960 [-Wdisabled-optimization]

cc1: out of memory allocating 76542992 bytes after a total of 6736809984 bytes
*** ERROR IN ##main -- target compilation or link failed while compiling "bh.c"

@Memorytaco
Copy link

Memorytaco commented Aug 15, 2019

i got a similar error and my system down! my system in gentoo x86 use kernel 4.19.57.
the error message is same as above.
it has run out my whole 8G memory. before the warning, its memory usage is stable at 1.1G, but after the warning it increased dramatically from 2.3G to 3G ...

maybe it is a gambit error?

@Memorytaco
Copy link

here is the relative information:

gambit version
v4.9.3 20180930122740 x86_64-pc-linux-gnu "./configure '--prefix=/usr' '--build=
dir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--htmldir=/usr/s
/gambit-4.9.3' '--enable-gnu-gcc-specific-options' '--enable-gnu-gcc-no-strict-a
c-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-O2 -march=native -pipe' '
gcc version
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/8.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Thread model: posix
gcc version 8.3.0 (Gentoo 8.3.0-r1 p1.1)

any idea?

@stefanhusmann
Copy link
Author

Maybe it will not help much, but the error went away for me some time ago, but I use gambit built from git master and the gcc 9.1.0 collection.

@stefanhusmann
Copy link
Author

Okay, with gambit-c 4.9.3 the error is there again. So I think it has been fixed in git master.

@Memorytaco
Copy link

So it's gambit problem. will try git version later. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants