Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,340 Members 43,529 Now Online
XDA Developers Android and Mobile Development Forum

Compilation Assistance

Tip us?
 
VoluntaryMan
Old
(Last edited by VoluntaryMan; 3rd February 2014 at 03:20 PM.)
#1  
VoluntaryMan's Avatar
Senior Member - OP
Thanks Meter 211
Posts: 646
Join Date: Apr 2012
Location: Cumberland Center, ME
Default Compilation Assistance

Command I'm using to start compiling:
Code:
cd android/omni/ && repo sync -f --no-clone-bundle && . build/envsetup.sh && lunch omni_geespr-userdebug
Output:
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/geespr/vendorsetup.sh
including sdk/bash_completion/adb.bash

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_geespr
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-6-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/bmos/android/omni/out
============================================
 
PonsAsinorem
Old
#2  
Senior Member
Thanks Meter 2,070
Posts: 3,974
Join Date: Sep 2010

 
DONATE TO ME
Quote:
Originally Posted by VoluntaryMan View Post
Command I'm using to start compiling:
Code:
cd android/omni/ && repo sync -f --no-clone-bundle && . build/envsetup.sh && lunch omni_geespr-userdebug
Try
Code:
lunch geespr
instead. Also, I use brunch instead of lunch, and I've found it useful to prefix the command with 'time' (so you can see how long it takes), and end it with '2> build.log' so you can review the log for errors instead of reading the terminal. For example:

Code:
time brunch geespr 2> build.log
The Following User Says Thank You to PonsAsinorem For This Useful Post: [ Click to Expand ]
 
VoluntaryMan
Old
(Last edited by VoluntaryMan; 3rd February 2014 at 03:23 PM.)
#3  
VoluntaryMan's Avatar
Senior Member - OP
Thanks Meter 211
Posts: 646
Join Date: Apr 2012
Location: Cumberland Center, ME
Quote:
Originally Posted by PonsAsinorem View Post
Try
Code:
lunch geespr
instead. Also, I use brunch instead of lunch, and I've found it useful to prefix the command with 'time' (so you can see how long it takes), and end it with '2> build.log' so you can review the log for errors instead of reading the terminal. For example:

Code:
time brunch geespr 2> build.log
That's got it working, thanks
 
immerblind
Old
(Last edited by immerblind; 3rd February 2014 at 07:14 PM.)
#4  
Senior Member
Thanks Meter 242
Posts: 428
Join Date: Oct 2012
Location: Paradise City
can i hijack a bit your thread?
i try to build omnirom 4.3jb for the official supported xperia T (mint).
i must say, under linux mint i was able to build 4.4kitkat homemade.

now iam on elementary os (ubuntu 12.04) and try to build 4.3.
i have installed jdk1.6 (oracle)
everything should be set up correctly, atleast iam quiet sure about it^^

roomservice.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
  <project name="android_device_sony_mint" path="device/sony/mint" remote="omnirom" revision="android-4.3" />
  <project name="omnirom/android_device_sony_common" path="device/sony/common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_blue-common" path="device/sony/blue-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_kernel_sony_msm8960" path="kernel/sony/msm8960" remote="github" revision="android-4.3" />
  <project name="omnirom/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="android-4.3" />
</manifest>
local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="vendor/sony" name="DonkeyCoyote/proprietary_vendor_sony" remote="github" revision="android-4.3" />
  <remove-project name="device/samsung/toro" />
  <remove-project name="device/asus/deb" />
  <remove-project name="android_device_asus_flo" />
  <remove-project name="android_device_asus_grouper" />
  <remove-project name="android_device_asus_tilapia" />
  <remove-project name="android_device_lge_mako" />
  <remove-project name="android_device_samsung_maguro" />
  <remove-project name="android_device_samsung_manta" />
  <remove-project name="device/samsung/toroplus" />
  <remove-project name="device/samsung/tuna" />

</manifest>
no errors at repo sync.


. build/envsetup.sh
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/sony/mint/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
is it normal that there is samsung/ti stuff written?

this is the important output for errors, i think xD
at the beginning many warnings in build/core/ .mk files (old commands for target...ignored)
"brunch mint"--->
Code:
build/core/base_rules.mk:520: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden überschrieben
bootable/recovery/dosfstools/Android.mk:21: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden ignoriert
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden ignoriert
PRODUCT_COPY_FILES vendor/sony/mint/proprietary/lib/libsysmon_idd.so:system/lib/libsysmon_idd.so ignored.
No private recovery resources for TARGET_DEVICE mint
make  -C kernel/sony/msm8960 O=/home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/hubertus/android/omni/prebuilts/misc/linux-x86/ccache/ccache /home/hubertus/android/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
host C: acp <= build/tools/acp/acp.c
make[1]: Betrete Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
host StaticLib: libhost (/home/hubertus/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/hubertus/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/bin/bash: m4: Kommando nicht gefunden.
make: *** [/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf] Fehler 127
make: *** Datei »/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf« wird gelöscht
make: *** Warte auf noch nicht beendete Prozesse...
  GEN     /home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Verlasse Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
it ends with "exit directory '/home/hubertus/android/omni/kernel/sony/msm8960'

is there something wrong with my .mk files, or is it a path error? what can be the error 127?

i looked around xda, but i not found comprehensive posts.

how about my roomservice.xml/local_manifest.xml look? should be allright?

thanks for reading
 
immerblind
Old
#5  
Senior Member
Thanks Meter 242
Posts: 428
Join Date: Oct 2012
Location: Paradise City
ok, i fixed it myself. if someone has a similar problem, maybe that will help...
i found out something was wrong inside my .bashrc file. iam not sure if that can cause such problems? but after rework that file to the usual paths we need for compilation, everything worked fine building 4.3omnirom
in my .bashrc i ****ed up the export PATH=${PATH}:~/bin and some more lines. after changing to the right line, everything fine
 
thomas1991_12
Old
#6  
thomas1991_12's Avatar
Senior Member
Thanks Meter 1,598
Posts: 730
Join Date: Dec 2009
Location: Liempde

 
DONATE TO ME
Quote:
Originally Posted by immerblind View Post
can i hijack a bit your thread?
i try to build omnirom 4.3jb for the official supported xperia T (mint).
i must say, under linux mint i was able to build 4.4kitkat homemade.

now iam on elementary os (ubuntu 12.04) and try to build 4.3.
i have installed jdk1.6 (oracle)
everything should be set up correctly, atleast iam quiet sure about it^^

roomservice.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
  <project name="android_device_sony_mint" path="device/sony/mint" remote="omnirom" revision="android-4.3" />
  <project name="omnirom/android_device_sony_common" path="device/sony/common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_blue-common" path="device/sony/blue-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_kernel_sony_msm8960" path="kernel/sony/msm8960" remote="github" revision="android-4.3" />
  <project name="omnirom/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="android-4.3" />
</manifest>
local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="vendor/sony" name="DonkeyCoyote/proprietary_vendor_sony" remote="github" revision="android-4.3" />
  <remove-project name="device/samsung/toro" />
  <remove-project name="device/asus/deb" />
  <remove-project name="android_device_asus_flo" />
  <remove-project name="android_device_asus_grouper" />
  <remove-project name="android_device_asus_tilapia" />
  <remove-project name="android_device_lge_mako" />
  <remove-project name="android_device_samsung_maguro" />
  <remove-project name="android_device_samsung_manta" />
  <remove-project name="device/samsung/toroplus" />
  <remove-project name="device/samsung/tuna" />

</manifest>
no errors at repo sync.


. build/envsetup.sh
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/sony/mint/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
is it normal that there is samsung/ti stuff written?

this is the important output for errors, i think xD
at the beginning many warnings in build/core/ .mk files (old commands for target...ignored)
"brunch mint"--->
Code:
build/core/base_rules.mk:520: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden überschrieben
bootable/recovery/dosfstools/Android.mk:21: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden ignoriert
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden ignoriert
PRODUCT_COPY_FILES vendor/sony/mint/proprietary/lib/libsysmon_idd.so:system/lib/libsysmon_idd.so ignored.
No private recovery resources for TARGET_DEVICE mint
make  -C kernel/sony/msm8960 O=/home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/hubertus/android/omni/prebuilts/misc/linux-x86/ccache/ccache /home/hubertus/android/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
host C: acp <= build/tools/acp/acp.c
make[1]: Betrete Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
host StaticLib: libhost (/home/hubertus/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/hubertus/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/bin/bash: m4: Kommando nicht gefunden.
make: *** [/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf] Fehler 127
make: *** Datei »/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf« wird gelöscht
make: *** Warte auf noch nicht beendete Prozesse...
  GEN     /home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Verlasse Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
it ends with "exit directory '/home/hubertus/android/omni/kernel/sony/msm8960'

is there something wrong with my .mk files, or is it a path error? what can be the error 127?

i looked around xda, but i not found comprehensive posts.

how about my roomservice.xml/local_manifest.xml look? should be allright?

thanks for reading
sorry for the late response, but it seems you need the 'm4' binary. try;
sudo apt-get install m4
The Following User Says Thank You to thomas1991_12 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes