Building Android fails - map no such file, missing STL headers - Android

Attempting to build master branch in Ubuntu 12.04. This is for a Nexus 7.
Following the instructions [http://source.android.com/source/initializing.html] and all continueing instructions up to the actual building section.
I acquire the Nexus 7 binaries from the official site (https://developers.google.com/android/nexus/drivers#grouper).
Using `lunch full_grouper-userdebug` to generate the makefiles.
The Android source builds just fine for about 5minutes then stops on this error.
Code:
target arm C++: libwebrtc_system_wrappers <= external/webrtc/src/system_wrappers/source/map.cc
In file included from external/webrtc/src/system_wrappers/source/map.cc:11:0:external/webrtc/src/system_wrappers/source/../interface/map_wrapper.h:14:15: fatal error: map: No such file or directory compilation terminated.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_system_wrappers_intermediates/map.o] Error 1
make: *** Waiting for unfinished jobs....
It appears that the build process incorrectly sets up the STL header location. It is failing on an #include <map> line.
Any assistance?

Related

[Q] AOSP Compiling errors.

First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".​I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Costinutz32 said:
First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".​I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Click to expand...
Click to collapse
As the error says,one of the header files required to create the .o or the object file is missing. Trying searching the file on Google and add it to required folder and #include it to your .c/.c++ program.
Good luck.

[Q] Help needed with compiling an A31 kernel

EDIT3: I was sorta' right about the source package being somewhat temperamental. Managed to build the modules sans kernel, but doing both at the same time leads to the errors below. Also, renaming uImage to vmlinux and then shoving it in boot.img along with the compiled modules resulted in the tab being stuck on the boot logo.
EDIT2: I dunno if the build package was being temperamental or something, but ticking out the tvp5150 module seems to have done the trick.
EDIT: Managed to get further with building, but while I get a vmlinux image, it still ends with a mismatch error with modules. Coud this have something to do with the source tarball being stripped and not the full one?
Code:
Building modules, stage 2.
MODPOST 67 modules
WARNING: could not find drivers/input/touchscreen/.libAW5306.cmd for drivers/input/touchscreen/libAW5306
ERROR: "vfe_gpio_write" [drivers/media/video/tvp5150.ko] undefined!
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
So, I kinda' figured out on how to cobble up a kernel for the A31s, but upon attempting to build one based on the source taken from http://dl.linux-sunxi.org/SDK/A31/a31_hummbingbird_V3.3_v2_kfb_0k.tar.gz
While I managed to load up the default config and stuff, building it using the command make ARCH=arm CROSS_COMPILE=/root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- results in this:
Code:
In file included from drivers/media/video/sunxi-vfe/camera_detector/camera_detector.h:4:0,
from drivers/media/video/sunxi-vfe/config.c:10:
drivers/media/video/sunxi-vfe/camera_detector/camera_includes.h:41:25: error: redefinition of typedef '__hdle'
drivers/media/video/sunxi-vfe/flash_light/../vfe_os.h:29:22: note: previous declaration of '__hdle' was here
make[4]: *** [drivers/media/video/sunxi-vfe/config.o] Error 1
make[3]: *** [drivers/media/video/sunxi-vfe] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
ANy thoughts or advice on how to make this work, let alone boot?

error: string: No such file or directory

Hey all I'm trying to compile Dirty Unicorns Rom for the device GT-I9082 Galaxy Grand Duos...
When i start the building process I get an error as stated below:
target thumb C++: hwuitest <= frameworks/base/libs/hwui/tests/main.cpp
In file included from frameworks/base/libs/hwui/tests/../AnimationContext.h:23:0,
from frameworks/base/libs/hwui/tests/main.cpp:23:
frameworks/base/libs/hwui/tests/../TreeInfo.h:19:18: fatal error: string: No such file or directory
#include <string>
^
compilation terminated.
make: *** [/home/raghav/source/du/system/out/target/product/i9082/obj/EXECUTABLES/hwuitest_intermediates/main.o] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
For some reason the gcc/g++ compiler is unable to look for the string file in usr/include/c++/4.8
Where it exists I have verified.. Can someone please help resolve this error?
Thanks
Have you resolved this error? I am experiencing the same error.

Compiler can not find headers in compiling lolipop kernel

Hi,
I want to compile Honor 4C kernel which I downloaded the source code from huawei website, I'm running Ubuntu 15.04 and arm-linux-gnueabihf-gcc Linaro 4.7.3 when I try to compile the source I get this error:
Code:
drivers/hisi/hi6xxx/hi6xxx_sim.c:24:24: fatal error: hi6xxx_sim.h: No such file or directory
compilation terminated.
scripts/Makefile.build:316: recipe for target 'drivers/hisi/hi6xxx/hi6xxx_sim.o' failed
make[3]: *** [drivers/hisi/hi6xxx/hi6xxx_sim.o] Error 1
scripts/Makefile.build:468: recipe for target 'drivers/hisi/hi6xxx' failed
make[2]: *** [drivers/hisi/hi6xxx] Error 2
scripts/Makefile.build:468: recipe for target 'drivers/hisi' failed
make[1]: *** [drivers/hisi] Error 2

Building CM13 for klimtlte

I'm trying to build CM13 for T705 (klimtlte), using guide https://wiki.cyanogenmod.org/w/Build_for_klimtlte.
It went reasonably smoothly besides 'Get prebuilds' step, that I was suggested to skip as it's obsolete since CM12. Not sure if this is correct, but..
The step that fails is 'brunch klimtlte':
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:816: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 127
make: *** Waiting for unfinished jobs....
host C++: libc++abi <= external/libcxxabi/src/abort_message.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:721: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/abort_message.o] Error 127
make: Leaving directory '/home/android/android/system'
The host system is Gentoo, with everything compiled using GCC 5.3. Is it related to _GLIBCXX_USE_CXX11_ABI somehow?

Categories

Resources