Build on Ubuntu 14.04 does not work

1,583 views
Skip to first unread message

Güliz Seray Tuncay

unread,
Oct 18, 2014, 6:18:42 PM10/18/14
to android-...@googlegroups.com
Hi All,

I'm trying to build Android on Ubuntu 14.0.4LTS by following the instructions on https://source.android.com/source/index.html. Everything seems to be going okay until I run "make -j4" command. The build fails and I cannot figure out why. I suspect that it is becase the newer version of gcc has more restrictions but I'm not sure. Any idea what could be the issue?

Thanks,
Guliz

rahul bawa

unread,
Oct 19, 2014, 8:01:51 AM10/19/14
to android-...@googlegroups.com
Can you post the logs/errors you are getting. ?

Magnus Bäck

unread,
Oct 19, 2014, 12:02:54 PM10/19/14
to android-...@googlegroups.com
On Sunday, October 19, 2014 at 00:18 CEST,
Güliz Seray Tuncay <guliz...@gmail.com> wrote:

> I'm trying to build Android on Ubuntu 14.0.4LTS by following the
> instructions on [1]https://source.android.com/source/index.html.
> Everything seems to be going okay until I run "make -j4" command.
> The build fails and I cannot figure out why. I suspect that it is
> becase the newer version of gcc has more restrictions but I'm not
> sure. Any idea what could be the issue?

If you show the error message you get when you build it'll be a lot
easier to help you.

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

Ravi Sharan

unread,
Oct 20, 2014, 10:18:03 AM10/20/14
to android-...@googlegroups.com

Hi Guliz,
              Please post the logs, so that others can figure out where the build process went wrong.

Ravi

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jernej Rutar

unread,
Oct 23, 2014, 3:59:43 AM10/23/14
to android-...@googlegroups.com
It does the same for me. Here is the log:

host C++: libinput <= frameworks/native/libs/input/Keyboard.cpp
/home/rutarj/WORKING_DIRECTORY/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
/home/rutarj/WORKING_DIRECTORY/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1
/home/rutarj/WORKING_DIRECTORY/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
/home/rutarj/WORKING_DIRECTORY/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1

I'm trying to build 4.4w_r1 android wear platform. 

Dne nedelja, 19. oktober 2014 00:18:42 UTC+2 je oseba Güliz Seray Tuncay napisala:

Shahin Ansari

unread,
Oct 23, 2014, 2:18:37 PM10/23/14
to android-...@googlegroups.com
Did you start the make with sudo? It may be a permission issue.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Never give in, never give in, never, never, never, never-in nothing, great or small, large or petty-never give in except to convictions of honor and good sense.  
                                       -Winston Churchill

Jernej Rutar

unread,
Oct 24, 2014, 4:46:06 AM10/24/14
to android-...@googlegroups.com
Nope, pretty much the same errors. Is it possible that if I choose to use 12.04 instead 14.04 it will work?

Dne četrtek, 23. oktober 2014 20:18:37 UTC+2 je oseba Falcon napisala:

andrew_esh

unread,
Oct 24, 2014, 9:30:09 AM10/24/14
to android-...@googlegroups.com
Do you have 32-bit support for running these tools? You can run the 32-bit pre-built executables, but you seem to be missing the 32-bit compatible libraries.

The SDK System Requirements specify a 64-bit platform, capable of running 32-bit executables:


BTW: I've cross compiled for ARM on Ubuntu 14.04 before. Other than your target being x86, this is the same.

You don't need to sudo an AOSP build.

andrew_esh

unread,
Oct 24, 2014, 9:32:00 AM10/24/14
to android-...@googlegroups.com
Message has been deleted
Message has been deleted

Birender Singh

unread,
Dec 24, 2014, 9:42:45 AM12/24/14
to android-...@googlegroups.com
Hi,

follow 12.04 instruction on 14.04 also.
It worked for me.
http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit
have same libs specified in (Installing required packages (Ubuntu 12.04))

Thanks,
Birender

David Batty

unread,
Dec 24, 2014, 1:30:57 PM12/24/14
to android-...@googlegroups.com
I had the same issue. Try doing this as this is what I was missing.

+wget http://lz4.googlecode.com/files/lz4-r112.tar.gz
+tar -xf lz4-r112.tar.gz
+cd lz4-r112
+make
+sudo make install


--

Azam Jiva

unread,
Jun 29, 2015, 10:59:30 AM6/29/15
to android-...@googlegroups.com
Hi folks, I am not able to build the code; on executing the command 'make -j4' I see the following error:

including ./sdk/find_java/Android.mk ...
including ./sdk/find_lock/Android.mk ...
including ./sdk/hierarchyviewer/etc/Android.mk ...
including ./sdk/hierarchyviewer/src/Android.mk ...
including ./sdk/sdklauncher/Android.mk ...
including ./system/bt/Android.mk ...
including ./system/core/Android.mk ...
including ./system/extras/Android.mk ...
including ./system/gatekeeper/Android.mk ...
including ./system/keyguard/Android.mk ...
including ./system/keymaster/Android.mk ...
including ./system/media/audio_route/Android.mk ...
including ./system/media/audio_utils/Android.mk ...
including ./system/media/camera/src/Android.mk ...
including ./system/media/camera/tests/Android.mk ...
including ./system/netd/client/Android.mk ...
including ./system/netd/server/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
Install: out/host/linux-x86/lib64/libc++.so
host Executable: validatekeymaps (out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps)
Install: out/host/linux-x86/framework/antlr-runtime.jar
Install: out/host/linux-x86/framework/guavalib.jar
host SharedLib: libcrypto-host (out/host/linux-x86/obj/lib/libcrypto-host.so)
host Prebuilt: jarjar-apache-ant (out/host/common/obj/JAVA_LIBRARIES/jarjar-apache-ant_intermediates/javalib.jar)
host Prebuilt: jarjar-maven-plugin-api (out/host/common/obj/JAVA_LIBRARIES/jarjar-maven-plugin-api_intermediates/javalib.jar)
host Prebuilt: jarjar-asm (out/host/common/obj/JAVA_LIBRARIES/jarjar-asm_intermediates/javalib.jar)
host Prebuilt: jarjar-asm-commons (out/host/common/obj/JAVA_LIBRARIES/jarjar-asm-commons_intermediates/javalib.jar)
Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
prebuilts/misc/linux-x86/bison/bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Broken pipe

make: *** Waiting for unfinished jobs.


Reply all
Reply to author
Forward
0 new messages