FORUMS

3D Printable Mobile Microscope? Nexus 7 Discontinued – XDA TV

The Nexus 7 2013 has been discontinued on the Google Store! That and … more

Which Lockscreen Security Type Do You Use?

From pattern locks to the controversial face unlock, there are a number of different ways you … more

Xposed 3.0 Alpha 3 Released

A new alpha for the Xposed framework is out and brings several bug fixes. You’ll only need to flash … more

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more
Post Reply Subscribe to Thread Email Thread

[DEV] Docker template for building CyanogenMod

1st March 2015, 01:43 PM |#61  
OP Senior Member
Thanks Meter: 80
 
More
Post
Quote:
Originally Posted by todivefor

Finger slip, jfltespr. It is the Sprint variant for the Samsung Galaxy S4. Haven't tried any others. I plan to try grouper next.

Let me know if it fails there as well.
 
 
1st March 2015, 06:45 PM |#62  
todivefor's Avatar
Senior Member
Pittsburgh, PA
Thanks Meter: 55
 
More
Got the same result with grouper:

collect2: error: ld terminated with signal 9 [Killed]
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol '__system_property_get' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/base_base_gyp_intermediates/base_base_gyp.a(sys_info_android.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libcutils.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::lockPixels() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::unlockPixels() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::notifyPixelsChanged() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
make: *** [/home/cmbuild/android/out/target/product/grouper/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
root@e4de81b8f6a5:/home/cmbuild/android#
1st March 2015, 08:53 PM |#63  
todivefor's Avatar
Senior Member
Pittsburgh, PA
Thanks Meter: 55
 
More
Quote:
Originally Posted by todivefor

Got the same result with grouper:

collect2: error: ld terminated with signal 9 [Killed]
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol '__system_property_get' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/base_base_gyp_intermediates/base_base_gyp.a(sys_info_android.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libcutils.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::lockPixels() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::unlockPixels() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
/home/cmbuild/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::notifyPixelsChanged() const' in /home/cmbuild/android/out/target/product/grouper/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO /home/cmbuild/android/out/target/product/grouper/obj/lib/libjnigraphics.so
make: *** [/home/cmbuild/android/out/target/product/grouper/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
root@e4de81b8f6a5:/home/cmbuild/android#

@michael_ch What is a known working build that I can try?
1st March 2015, 11:18 PM |#64  
OP Senior Member
Thanks Meter: 80
 
More
Post
Quote:
Originally Posted by todivefor

@michael_ch What is a known working build that I can try?

After searching about your problem, I don't think it has to do with the target device.

It just seems like your Docker container doesn't have enough memory (RAM) available. Check these links about the collect2 error which seems to be the starting point of your problems:

- http://stackoverflow.com/questions/5...-i-build-clang
- http://stackoverflow.com/questions/2...r-to-liblto-so

Docker uses all available memory so it seems like your computer can't provide enough of it. What you can do though, is to use more swap space and use that explicitely by running "docker run -m=<n>" (eg. "4g"). However, I'm pretty sure this will terribly slow down your build time... For more on "docker run", check https://docs.docker.com/reference/ru...cpu-and-memory.
4th March 2015, 12:37 PM |#65  
todivefor's Avatar
Senior Member
Pittsburgh, PA
Thanks Meter: 55
 
More
@michael_ch finally got this to work. The links you provided me were spot on. I have a ubuntu VM I use to try to learn a little about linux. I tried all this as an exercise to learn more about linux and docker and less about compiling CM. My VM was initially set at 1G, didn't work. I tried 4G and 8G, neither worked. I bumped it it up to 12G and set swap to 10G, which worked. I will try to boot my built CM12, but not my intended goal. Several years ago, I setup a build environment for CM, maybe CM9, but this is much slicker. It was a good learning experience. Thank you.
4th March 2015, 12:39 PM |#66  
OP Senior Member
Thanks Meter: 80
 
More
Smile
Quote:
Originally Posted by todivefor

@michael_ch finally got this to work. The links you provided me were spot on. I have a ubuntu VM I use to try to learn a little about linux. I tried all this as an exercise to learn more about linux and docker and less about compiling CM. My VM was initially set at 1G, didn't work. I tried 4G and 8G, neither worked. I bumped it it up to 12G and set swap to 10G, which worked. I will try to boot my built CM12, but not my intended goal. Several years ago, I setup a build environment for CM, maybe CM9, but this is much slicker. It was a good learning experience. Thank you.

Thanks for the feedback, you're welcome!
31st March 2015, 10:36 PM |#67  
OP Senior Member
Thanks Meter: 80
 
More
Post New Release v0.3.0
Hey folks! I just published a new release of the box. Now is a good time to create your own build of the upcoming CyanogenMod 12.1:

Code:
repo init -u git://github.com/CyanogenMod/android.git -b staging/cm-12.1
repo sync -j 16
source build/envsetup.sh
make clean
brunch <device codename>      # example: brunch grouper
Have fun!
Post Reply Subscribe to Thread

Tags
build, compile, cyanogenmod, docker
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes