Discussion:
malloc failed to allocate memory during build
(too old to reply)
UniCav
2018-11-30 20:59:51 UTC
Permalink
Trying to track down why I can't get any build to complete anymore, and
finally noticed this in my terminal window.
It's hundreds of lines up before the final failure that kills the build and
it's the first real sign of an issue other than some warnings that appear
to be long-standing issues with the kernel itself.

CC [M] drivers/input/touchscreen/sur40.o
malloc: Cannot allocate memory
/home/paradise/android-x86/oreo-x86/kernel/scripts/Makefile.build:323:
recipe for target 'drivers/input/touchscreen/sur40.o' failed
make[4]: *** [drivers/input/touchscreen/sur40.o] Error 1
make[4]: *** Deleting file 'drivers/input/touchscreen/sur40.o'
/home/paradise/android-x86/oreo-x86/kernel/scripts/Makefile.build:558:
recipe for target 'drivers/input/touchscreen' failed
make[3]: *** [drivers/input/touchscreen] Error 2
/home/paradise/android-x86/oreo-x86/kernel/scripts/Makefile.build:558:
recipe for target 'drivers/input' failed
make[2]: *** [drivers/input] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] net/mac802154/main.o
malloc: Cannot allocate memory
CC [M] drivers/infiniband/hw/hfi1/pcie.o
/home/paradise/android-x86/oreo-x86/kernel/scripts/Makefile.build:317:
recipe for target 'net/mac802154/main.o' failed
make[3]: *** [net/mac802154/main.o] Error 1
make[3]: *** Deleting file 'net/mac802154/main.o'
/home/paradise/android-x86/oreo-x86/kernel/scripts/Makefile.build:558:
recipe for target 'net/mac802154' failed

After this there are a few other random target failures pages down, then
finally it hits this and dies, and this has been my issue attempting to
build the last several times.

CC [M] drivers/infiniband/hw/qib/qib_debugfs.o
LD [M] drivers/infiniband/hw/qib/ib_qib.o
/home/paradise/android-x86/oreo-x86/kernel/Makefile:1048: recipe for target
'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: Leaving directory
'/home/paradise/android-x86/oreo-x86/out/target/product/x86_64/obj/kernel'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/paradise/android-x86/oreo-x86/kernel'
ninja: build stopped: subcommand failed.
14:18:37 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
UniCav
2018-12-03 18:44:59 UTC
Permalink
I had the 16gb RAM but apparently I didn't have the swap space. Fixed that
and giving it another try
Post by UniCav
Post by UniCav
Trying to track down why I can't get any build to complete anymore, and
finally noticed this in my terminal window.
Post by UniCav
It's hundreds of lines up before the final failure that kills the build
and it's the first real sign of an issue other than some warnings that
appear to be long-standing issues with the kernel itself.
That's because you're using parallel building.
To avoid that, build it with -j1.
Post by UniCav
CC [M] drivers/input/touchscreen/sur40.o
malloc: Cannot allocate memory
16GB of RAM is the minimal requirement to build AOSP.
I think the requirement probably exists since 4.0...
See https://source.android.com/setup/build/requirements
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Mauro Rossi
2018-12-03 21:02:51 UTC
Permalink
Hi Unicav,

check also this thread:

https://groups.google.com/forum/#!searchin/android-x86/carnac%7Csort:date/android-x86/KskiNI2sDgU/GnacRHrnAwAJ

Mauro
Post by UniCav
I had the 16gb RAM but apparently I didn't have the swap space. Fixed that
and giving it another try
Post by UniCav
Post by UniCav
Trying to track down why I can't get any build to complete anymore, and
finally noticed this in my terminal window.
Post by UniCav
It's hundreds of lines up before the final failure that kills the build
and it's the first real sign of an issue other than some warnings that
appear to be long-standing issues with the kernel itself.
That's because you're using parallel building.
To avoid that, build it with -j1.
Post by UniCav
CC [M] drivers/input/touchscreen/sur40.o
malloc: Cannot allocate memory
16GB of RAM is the minimal requirement to build AOSP.
I think the requirement probably exists since 4.0...
See https://source.android.com/setup/build/requirements
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...