You are not logged in.

#1 2017-03-13 00:06:32

david_pjimenez
Member
From: Costa RIca
Registered: 2016-12-26
Posts: 8

Building Lneage OS :IOError: [Errno 28] No space left on device

Hi!
I have been trying to build Lineage OS for Redmi NOTE 3 PRO and almost everything in the building its ok. However, when the building get 100% and it's trying to generate the image I received this error "IOError: [Errno 28] No space left on device".

OS: Arch Linux 64 bits
I used this guides: https://wiki.archlinux.org/index.php/An … ng_Android
http://wiki.lineageos.org/kenzo_build.h … cific-code

I have already built AOSP with this guide successfully(Using generic and SDK emulator), but I don't know how to build a device tree (I am learning about this things, I'm a newbie). That's why I am trying with Lineage OS due to Lineage OS officially support my device and it was so easy to extract firmware and drivers.

List of commands:
First try:

export JAVA_HOME=/usr/lib/jvm/java-x-openjdk
virtualenv2 venv
source venv/bin/activate (This is to avoid Python problems)
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
repo sync
source build/envsetup.sh
breakfast kenzo
export USE_CCACHE=1
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G" (This is to avoid Jack memory problems)
prebuilts/misc/linux-x86/ccache/ccache -M 125G
croot
brunch kenzo


Second try:
export JAVA_HOME=/usr/lib/jvm/java-x-openjdk
virtualenv2 venv
source venv/bin/activate (This is to avoid Python problems)
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
repo sync
source build/envsetup.sh
breakfast kenzo
JACK_VM_COMMAND=${JACK_VM_COMMAND:="java -Xmx4096m"}
export JAVA_HOME=/usr/lib/jvm/java-x-openjdk
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
out/host/linux-x86/bin/jack-admin kill-server
out/host/linux-x86/bin/jack-admin start-server
croot
brunch kenzo

Build error:

Total of 655360 4096-byte output blocks in 6149 input chunks.
Finding transfers...
Generating digraph...
Finding vertex sequence...
Reversing backward edges...
  0/0 dependencies (0.00%) were violated; 0 source blocks stashed.
Improving vertex order...
Revising stash size...
  Total 0 blocks (0 bytes) are packed as new blocks due to insufficient cache size.
Reticulating splines...
1205587968 1205587968 (100.00%) new __DATA
max stashed blocks: 0 (0 bytes), limit: 214748364 bytes (0.00%)

Traceback (most recent call last):
  File "./build/tools/releasetools/ota_from_target_files", line 2234, in <module>
  main(sys.argv[1:])
  File "./build/tools/releasetools/ota_from_target_files", line 2190, in main
  WriteFullOTAPackage(input_zip, output_zip)
  File "./build/tools/releasetools/ota_from_target_files", line 703, in WriteFullOTAPackage
  system_diff.WriteScript(script, output_zip)
  File "/home/mrencrypted/LineageOS/build/tools/releasetools/common.py", line 1515, in WriteScript
  self._WriteUpdate(script, output_zip)
  File "/home/mrencrypted/LineageOS/build/tools/releasetools/common.py", line 1666, in _WriteUpdate
  '{}.new.dat'.format(self.partition))
  File "/home/mrencrypted/LineageOS/build/tools/releasetools/common.py", line 1167, in ZipWrite
  zip_file.write(filename, arcname=arcname, compress_type=compress_type)
  File "/usr/lib64/python2.7/zipfile.py", line 1187, in write
  self.fp.write(buf)
IOError: [Errno 28] No space left on device
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/mrencrypted/LineageOS'

#### make failed to build some targets (01:14:23 (hh:mm:ss)) ####
I don't know why I'm is getting an error about cache or space (I don't think that is about storage space because I have 1TB only for this)

Thanks for any help!
PD: I know that copy & paste the build log in this way is kind of annoying,
PD: I didn't know where to post this topic, I'm sorry if this is the wrong place! I posted this on XDA and I didn't find something helpful, and Arch Linux community is amazing, so maybe you guys can help me.

Last edited by david_pjimenez (2017-03-13 00:29:42)

Offline

#2 2017-03-14 08:12:40

david_pjimenez
Member
From: Costa RIca
Registered: 2016-12-26
Posts: 8

Re: Building Lneage OS :IOError: [Errno 28] No space left on device

I think that I'm running out of space in /tmp.
Any idea about how to increase /tmp size? or how to make the build over hard disk instead?
I am using LVM2 and 8GB of RAM (I know that I need to increase my RAM to build Android and kernels).

Last edited by david_pjimenez (2017-03-14 08:20:54)

Offline

#3 2017-03-14 08:27:56

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Building Lneage OS :IOError: [Errno 28] No space left on device

based on the other bug report you posted on the xda forum here:

fs type is not ext4

suggests that you're not using ext4, so what file system are you using? you might be seeing a file size error of an older file system, such as FAT32, or similar older filesystems that have a 4GB file size limit

Offline

Board footer

Powered by FluxBB