Jump to content

I'm attempting to compile Bash 5.2.32 and I keep getting the following error when running make install

tparam.c: In function ‘memory_out’:
tparam.c:67:3: error: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
  67 |   write (2, "virtual memory exhausted\n", 25);
     |   ^~~~~
make[1]: *** [Makefile:56: tparam.o] Error 1
make[1]: Leaving directory '/home/jace/Downloads/bash-5.2.32/lib/termcap'
make: *** [Makefile:702: lib/termcap/libtermcap.a] Error 1

Researching this is telling me that my system is running out of RAM during compiling/instillation. However my system has 23.4 gigs of RAM and an 8 gig swap. I'm watching RAM utilization during compiling and it never breaks above 4 gigs.

 

Thoughts?

Link to comment
https://linustechtips.com/topic/1582281-virtual-memory-error-while-compiling/
Share on other sites

Link to post
Share on other sites

22 minutes ago, BaronVonJace said:

I'm attempting to compile Bash 5.2.32 and I keep getting the following error when running make install

tparam.c: In function ‘memory_out’:
tparam.c:67:3: error: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
  67 |   write (2, "virtual memory exhausted\n", 25);
     |   ^~~~~
make[1]: *** [Makefile:56: tparam.o] Error 1
make[1]: Leaving directory '/home/jace/Downloads/bash-5.2.32/lib/termcap'
make: *** [Makefile:702: lib/termcap/libtermcap.a] Error 1

Researching this is telling me that my system is running out of RAM during compiling/instillation. However my system has 23.4 gigs of RAM and an 8 gig swap. I'm watching RAM utilization during compiling and it never breaks above 4 gigs.

 

Thoughts?

That has nothing to do with your virtual memory lol

If you pay attention, it's saying there's an error with the code itself, at line 67 of the filw tparam.c

 

A quick google shows other people already faced this error:

Seems like you're building with ncurses, be sure that you have the development headers for it installed in your system.

 

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to post
Share on other sites

6 minutes ago, igormp said:

That has nothing to do with your virtual memory lol

If you pay attention, it's saying there's an error with the code itself, at line 67 of the filw tparam.c

 

A quick google shows other people already faced this error:

Seems like you're building with ncurses, be sure that you have the development headers for it installed in your system.

 

You called it. I didn't have the ncurses-devel package installed. I thought it was. Appreciate the input.  I've got a successful build now.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×