Related
ok so i'm trying to compile dropbox..
i have installed build essentials, gcc, and c++. when i run ./configure i get
"configure:3169: error: C compiler cannot create executables"
i've searched the web for the last hour and can't find a working solution. the best guess i have is that the motorola modified packages that i locked down with the webtop scripts are causing problems. here's a chunk of the config.log, i don't really know what this means
Code:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2274: checking for a BSD-compatible install
configure:2342: result: /usr/bin/install -c
configure:2353: checking whether build environment is sane
configure:2403: result: yes
configure:2544: checking for a thread-safe mkdir -p
configure:2583: result: ./install-sh -c -d
configure:2596: checking for gawk
configure:2612: found /usr/bin/gawk
configure:2623: result: gawk
configure:2634: checking whether make sets $(MAKE)
configure:2656: result: yes
configure:2798: checking for gcc
configure:2814: found /usr/bin/gcc
configure:2825: result: gcc
configure:3054: checking for C compiler version
configure:3063: gcc --version >&5
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3074: $? = 0
configure:3063: gcc -v >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --disable-sjlj-exceptions --with-arch=armv5t --with-tune=cortex-a8 --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
configure:3074: $? = 0
configure:3063: gcc -V >&5
gcc: '-V' option must have argument
configure:3074: $? = 1
configure:3063: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3074: $? = 1
configure:3096: checking for C compiler default output file name
configure:3118: gcc conftest.c >&5
/osh/usr/bin/../lib/gcc/arm-linux-gnueabi/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:3122: $? = 1
configure:3159: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "nautilus-dropbox"
| #define PACKAGE_TARNAME "nautilus-dropbox"
| #define PACKAGE_VERSION "0.7.1"
| #define PACKAGE_STRING "nautilus-dropbox 0.7.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "nautilus-dropbox"
| #define VERSION "0.7.1"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3165: error: in `/data/home/adas/nautilus-dropbox-0.7.1':
configure:3169: error: C compiler cannot create executables
See `config.log' for more details.
bump?
nobody? i tried reinstalling build-essential, gcc, c++, g++ in synaptic and it errors before finishing.. i think its cause it can't update some of the pkgs the scripts locked. i'm going start over not locking the pkgs and see if i can set up a sane build environment. =) other wise.. i mean, wtf? webtop is useless
I would suppose your problem is described in the following line:
Code:
/osh/usr/bin/../lib/gcc/arm-linux-gnueabi/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
Searching for that file, or where it should be (/usr/lib) brings up nothing.
If you open Synaptic and search there are a couple of libmpfr packages, try upgrading/installing them. I don't want to because I don't care about compiling this and the last time I went around randomly upgrading packages it broke my webtop and I just got it where I want it.
Don't forget that in Ubuntu/Debian that you need to install the -dev packages for many libraries if you want to compile.
I was able to compile a simple hello-world.c program after installing libmpfr-dev, which then installed/upgraded other packages.
To compile Ice Cream Sandwich on Ubuntu I'm going to first give you steps to set up your computer to get this thing rolling.
This will NOT make a fully functional ROM, but will give you a place to start. Also I CANNOT fix every error you run into.
Note: The source download is approximately 6GB in size. You will need 25GB free to complete a single build, and up to 80GB (or more) for a full set of builds.
Thanks dastin1015 - For base instruction for compile
1) You need the following:
- JDK 6 if you wish to build Ice Cream Sandwich
You can download it from oracle.com. Or:
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
for a Ubintu 11.10
sudo add-apt-repository "deb http://archive.canonical.com/ orcelot partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
- Python 2.4 -- 2.7
You can download from python.org. Or:
Code:
sudo apt-get install python
- Git 1.7 or newer
You can find it at git-scm.com. Or:
Code:
sudo apt-get install git-core
2) Install required packages:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils
On newer versions of Ubuntu such as 11.10 you may need to do the following:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
3) Configure your USB:
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of this blank text file insert:
Code:
#Acer
SUBSYSTEM==usb, SYSFS{idVendor}==0502, MODE=0666
#ASUS
SUBSYSTEM==usb, SYSFS{idVendor}==0b05, MODE=0666
#Dell
SUBSYSTEM==usb, SYSFS{idVendor}==413c, MODE=0666
#Foxconn
SUBSYSTEM==usb, SYSFS{idVendor}==0489, MODE=0666
#Garmin-Asus
SUBSYSTEM==usb, SYSFS{idVendor}==091E, MODE=0666
#Google
SUBSYSTEM==usb, SYSFS{idVendor}==18d1, MODE=0666
#HTC
SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666
#Huawei
SUBSYSTEM==usb, SYSFS{idVendor}==12d1, MODE=0666
#K-Touch
SUBSYSTEM==usb, SYSFS{idVendor}==24e3, MODE=0666
#KT Tech
SUBSYSTEM==usb, SYSFS{idVendor}==2116, MODE=0666
#Kyocera
SUBSYSTEM==usb, SYSFS{idVendor}==0482, MODE=0666
#Lenevo
SUBSYSTEM==usb, SYSFS{idVendor}==17EF, MODE=0666
#LG
SUBSYSTEM==usb, SYSFS{idVendor}==1004, MODE=0666
#Motorola
SUBSYSTEM==usb, SYSFS{idVendor}==22b8, MODE=0666
#NEC
SUBSYSTEM==usb, SYSFS{idVendor}==0409, MODE=0666
#Nook
SUBSYSTEM==usb, SYSFS{idVendor}==2080, MODE=0666
#Nvidia
SUBSYSTEM==usb, SYSFS{idVendor}==0955, MODE=0666
#OTGV
SUBSYSTEM==usb, SYSFS{idVendor}==2257, MODE=0666
#Pantech
SUBSYSTEM==usb, SYSFS{idVendor}==10A9, MODE=0666
#Philips
SUBSYSTEM==usb, SYSFS{idVendor}==0471, MODE=0666
#PMC-Sierra
SUBSYSTEM==usb, SYSFS{idVendor}==04da, MODE=0666
#Qualcomm
SUBSYSTEM==usb, SYSFS{idVendor}==05c6, MODE=0666
#SK Telesys
SUBSYSTEM==usb, SYSFS{idVendor}==1f53, MODE=0666
#Samsung
SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666
#Sharp
SUBSYSTEM==usb, SYSFS{idVendor}==04dd, MODE=0666
#Sony Ericsson
SUBSYSTEM==usb, SYSFS{idVendor}==0fce, MODE=0666
#Toshiba
SUBSYSTEM==usb, SYSFS{idVendor}==0930, MODE=0666
#ZTE
SUBSYSTEM==usb, SYSFS{idVendor}==19D2, MODE=0666
4) Save the file and close it and then issue this command:
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
5) Install the repo:
Code:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
6) Reboot PC:
7) Initialize the repo:
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
- For AOSP
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1
- For CM9
repo init -u git://github.com/CyanogenMod/android.git -b ics
- For AOKP
repo init -u git://github.com/AOKP/platform_manifest.git -b master
- For IceColdSandwitch
repo init -u git://github.com/IceColdSandwich/android.git -b ics
8) When prompted, enter your real name and email address.
9) Gather the files:
Code:
repo sync
10) Compiling:
Code:
source build/envsetup.sh
Or:
. build/envsetup.sh
11) Issue:
Code:
lunch
12) Pick your poison.
13) Now issue:
Code:
make -j4
Build for Sony Ericsson device
1) Download sources for ARMv6
Code:
cd ~/WORKING_DIRECTORY/
repo init -u git://github.com/MSM7x27-Xperia/android.git -b ics
repo sync -j4 or low if you have bad internet
2) Compile:
Code:
source build/envsetup.sh
Or:
. build/envsetup.sh
4) Get your list of devices:
Code:
lunch
5) Pick your poison.
6) Now compile:
Code:
make -j4
- Or for a flashable zip:
Code:
make -j4 otapackage
NOTE
If you are running into issues such as:
Code:
Which would you like? [full-eng] 5
build/core/product_config.mk:209: *** No matches for product "full_shooter". Stop.
Device shooter not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for shooter not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:209: *** No matches for product "full_shooter". Stop.
** Don't have a product spec for: 'full_shooter'
** Do you have the right repo manifest?
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_shooter.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.
Supplement, if something is missing
Nice tutorial thanks.
Sent from my GT-N7000
Great for sharing this howto with us
MiKa
In future versions of udev, "SYSFS" will be deprecated and has to be replaced by "ATTR". So it depends on what version of udev is installed in your distribution.
Cheers,
ff0000.it
is this tutorial compatible with another Smartphones?
ocovarr112 said:
is this tutorial compatible with another Smartphones?
Click to expand...
Click to collapse
Yes, you just need propietary files, but is almost the same process
PD: Paul, im setting up my dev enviroment, soon ill help you a bit on framework, and maybe I learn C and help you on libs
PD2: Ubuntu 11.10 original unity interface sux.. i like Gnome
EDIT: 15 mins and after i thought it was ok, then
device/semc/msm7x27-common/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
Freaking classic on android -.-, Ill try again 2morrow
Good Luck!
D4rKn3sSyS said:
Yes, you just need propietary files, but is almost the same process
PD: Paul, im setting up my dev enviroment, soon ill help you a bit on framework, and maybe I learn C and help you on libs
PD2: Ubuntu 11.10 original unity interface sux.. i like Gnome
EDIT: 15 mins and after i thought it was ok, then
device/semc/msm7x27-common/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
Freaking classic on android -.-, Ill try again 2morrow
Click to expand...
Click to collapse
Great to see u man!! hope both of u get fully working ics soon All the best!
D4rKn3sSyS said:
Yes, you just need propietary files, but is almost the same process
PD: Paul, im setting up my dev enviroment, soon ill help you a bit on framework, and maybe I learn C and help you on libs
PD2: Ubuntu 11.10 original unity interface sux.. i like Gnome
EDIT: 15 mins and after i thought it was ok, then
device/semc/msm7x27-common/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
Freaking classic on android -.-, Ill try again 2morrow
Click to expand...
Click to collapse
gralloc from 2.3 rom. remove he and contune.
D4rKn3sSyS
With new sources i have here error
Code:
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLib.cpp
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLibUI.cpp
hardware/qcom/display/liboverlay/overlayLib.cpp:122:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLib.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
hardware/qcom/display/liboverlay/overlayLibUI.cpp:20:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLibUI.h:23,
from hardware/qcom/display/liboverlay/overlayLibUI.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
host Java: android-mock-generatorlib (out/host/common/obj/JAVA_LIBRARIES/android-mock-generatorlib_intermediates/classes)
hardware/qcom/display/liboverlay/overlayLib.cpp: In function 'int overlay::get_mdp_format(int)':
hardware/qcom/display/liboverlay/overlayLib.cpp:57: error: 'MDP_Y_CRCB_H2V2_TILE' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In function 'int overlay::get_rot_output_format(int)':
hardware/qcom/display/liboverlay/overlayLib.cpp:90: error: 'MDP_Y_CRCB_H2V2_TILE' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLibUI.h: In constructor 'overlay::OverlayUI::OverlayUI()':
hardware/qcom/display/liboverlay/overlayLibUI.h:101: warning: 'overlay::OverlayUI::mFBNum' will be initialized after
hardware/qcom/display/liboverlay/overlayLibUI.h:99: warning: 'int overlay::OverlayUI::mZorder'
hardware/qcom/display/liboverlay/overlayLibUI.cpp:226: warning: when initialized here
host C++: colladadom <= external/collada/src/dae/dae.cpp
host C++: colladadom <= external/collada/src/dae/daeArray.cpp
hardware/qcom/display/liboverlay/overlayLibUI.cpp: In member function 'overlay::status_t overlay::OverlayUI::closeOVSession()':
hardware/qcom/display/liboverlay/overlayLibUI.cpp:409: warning: suggest parentheses around assignment used as truth value
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setOverlayInformation(const overlay_buffer_info&, int, int, int, bool, int)':
hardware/qcom/display/liboverlay/overlayLib.cpp:958: error: 'MDP_Y_CRCB_H2V2_TILE' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::startOVRotatorSessions(const overlay_buffer_info&, int, int)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1013: error: 'MDP_Y_CRCB_H2V2_TILE' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setPosition(int, int, uint32_t, uint32_t)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1165: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1166: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1172: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1172: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setTransform(int, bool)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1244: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayDataChannel::mapRotatorMemory(int, bool, int)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1512: error: 'struct msmfb_data' has no member named 'flags'
make: *** [out/target/product/mimmi/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayLib.o] Ошибка 1
make: *** Ожидание завершения заданий...
host C++: colladadom <= external/collada/src/dae/daeAtomicType.cpp
Note: external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[email protected]:~/android/system$
You need to set:
TARGET_SPECIFIC_HEADER_PATH := device/semc/<device>/include
and populate this with include files you need, e.g:
include/linux/msm_mdp.h
added instruction for build with new mimmi source
hi
i got this error:
build/core/product_config.mk:205: *** No matches for product "full_p970". Stop.
** Don't have a product spec for: 'full_p970'
** Do you have the right repo manifest
any ideas?
donjamal said:
hi
i got this error:
build/core/product_config.mk:205: *** No matches for product "full_p970". Stop.
** Don't have a product spec for: 'full_p970'
** Do you have the right repo manifest
any ideas?
Click to expand...
Click to collapse
give me link to your repo i look here
paul-xxx said:
give me link to your repo i look here
Click to expand...
Click to collapse
https://github.com/koush/proprietary_vendor_lge/tree/ics/p970
https://github.com/CyanogenMod/android_device_lge_p970
its 2.3 we dont have any ics rom..so im trying it from zero
donjamal said:
https://github.com/koush/proprietary_vendor_lge/tree/ics/p970
https://github.com/CyanogenMod/android_device_lge_p970
its 2.3 we dont have any ics rom..so im trying it from zero
Click to expand...
Click to collapse
from proprietary remove camera libs
and in android_device_lge_p970
make cm.mk
and add here
Code:
## Specify phone tech before including full_phone
$(call inherit-product, vendor/cm/config/gsm.mk)
# Release name
PRODUCT_RELEASE_NAME := P970
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Inherit device configuration
$(call inherit-product, device/semc/mimmi/device_p970.mk)
# Setup device configuration
PRODUCT_DEVICE := p970
PRODUCT_NAME := cm_p970
PRODUCT_BRAND := lge
PRODUCT_MODEL := Optimus Black
PRODUCT_MANUFACTURER := LG
# Release name and versioning
PRODUCT_VERSION_DEVICE_SPECIFIC :=
TARGET_NO_LIVEWALLPAPERS := false
#Set build fingerprint / ID / Product Name ect.
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=p970 BUILD_ID=ITL41F BUILD_DISPLAY_ID=ITL41F BUILD_FINGERPRINT="google/yakju/maguro:4.0.1/ITL41F/228551:user/release-keys" PRIVATE_BUILD_DESC="yakju-user 4.0.1 ITL41F 228551 release-keys"
then rename p970.mk to device_p970.mk
and try
paul-xxx said:
from proprietary remove camera libs
and in android_device_lge_p970
make cm.mk
and add here
Code:
## Specify phone tech before including full_phone
$(call inherit-product, vendor/cm/config/gsm.mk)
# Release name
PRODUCT_RELEASE_NAME := P970
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Inherit device configuration
$(call inherit-product, device/semc/mimmi/device_p970.mk)
# Setup device configuration
PRODUCT_DEVICE := p970
PRODUCT_NAME := cm_p970
PRODUCT_BRAND := lge
PRODUCT_MODEL := Optimus Black
PRODUCT_MANUFACTURER := LG
# Release name and versioning
PRODUCT_VERSION_DEVICE_SPECIFIC :=
TARGET_NO_LIVEWALLPAPERS := false
#Set build fingerprint / ID / Product Name ect.
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=p970 BUILD_ID=ITL41F BUILD_DISPLAY_ID=ITL41F BUILD_FINGERPRINT="google/yakju/maguro:4.0.1/ITL41F/228551:user/release-keys" PRIVATE_BUILD_DESC="yakju-user 4.0.1 ITL41F 228551 release-keys"
then rename p970.mk to device_p970.mk
and try
Click to expand...
Click to collapse
got this
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/lge/p970/p970.mk]]: "device/lge/p970/p970.mk" does not exist. Stop.
** Don't have a product spec for: 'p970'
** Do you have the right repo manifest?
---------- Post added at 10:39 AM ---------- Previous post was at 10:19 AM ----------
donjamal said:
got this
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/lge/p970/p970.mk]]: "device/lge/p970/p970.mk" does not exist. Stop.
** Don't have a product spec for: 'p970'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
somehow after about million copy paste it worked
but with make -j1 otapackage run this
============================================
find: "omapmmlib/java": Nincs ilyen fájl vagy könyvtár
find: "omapmmlib/java": Nincs ilyen fájl vagy könyvtár
build/core/base_rules.mk:78: *** Module name: dspexec
build/core/base_rules.mk:79: *** Makefile location: hardware/ti/omap3/dspbridge/dspexec
build/core/base_rules.mk:80: *
build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:83: *
build/core/base_rules.mk:84: * optional, debug, eng, tests, samples
build/core/base_rules.mk:85: *
build/core/base_rules.mk:86: * If the module is expected to be in all builds
build/core/base_rules.mk:87: * of a product, then it should use the
build/core/base_rules.mk:88: * "optional" tag:
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:91: * Android.mk for the affected module, and add
build/core/base_rules.mk:92: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:94: * makefile(s) where it's necessary, if
build/core/base_rules.mk:95: * appropriate.
build/core/base_rules.mk:96: *
build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:100: * build/target/product/core.mk
build/core/base_rules.mk:101: *
build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
but if u are boring u could build one for me
but with make -j1 otapackage run this
Click to expand...
Click to collapse
im no tried
stuck
hey paul im stuck by
Build for mimmi with new sources
1) Download patched webrtc for ARMv6
but my device is a lg optimus black P970 so which files do i need=
kaassaus said:
hey paul im stuck by
Build for mimmi with new sources
1) Download patched webrtc for ARMv6
but my device is a lg optimus black P970 so which files do i need=
Click to expand...
Click to collapse
patched webrtc no need
only compatiable repo with ICS sources
Hello guys. I'm trying to build pac for s3 mini. I have this error:
HTML:
external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
build/core/base_rules.mk:130: *** kernel/samsung/golden/arch/arm/boot: MODULE.TARGET.EXECUTABLES.zImage already defined by kernel/samsung/golden/arch/arm/boot. Stop.
How I can repair this? I need your help.
Thanks.
I know, this is an old thread, but for history:
2 ways to fix it properly,
1. Device tree:
Code:
From 76814b1c430e21bacb1499aadeae8b74f8f34ae5 Mon Sep 17 00:00:00 2001
From: Andreas Blaesius <[email protected]>
Date: Thu, 22 Oct 2015 19:50:13 +0200
Subject: [PATCH] golden: remove TARGET_USE_ST_ERICSSON_KERNEL
Samsung placed an Android.mk file inside our kernel repo which get
used if TARGET_USE_ST_ERICSSON_KERNEL := true is defined to build the
kernel as a part of Android Build.
The make file was symlinking to the original source location, causing
the android build system to count the Android.mk in the kernel source twice.
It is causing a build error if "make clean" or "make clobber" aren't used
before rebuilding the rom/kernel:
build/core/base_rules.mk:154: *** kernel/samsung/golden/arch/arm/boot: MODULE.TARGET.EXECUTABLES.zImage already defined by kernel/samsung/golden/arch/arm/boot. Stop.
Change-Id: If1b1757dcac755eb0d431ad8774fdf93dd6543c2
---
BoardConfig.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/BoardConfig.mk b/BoardConfig.mk
index de86511..d049066 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -66,7 +66,6 @@ TARGET_KERNEL_SOURCE := kernel/samsung/golden
endif
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/golden/shbootimg.mk
BOARD_KERNEL_CMDLINE := "androidboot.selinux=permissive"
-TARGET_USE_ST_ERICSSON_KERNEL := true
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000
2. Inside kernel source:
Code:
From ad98c3fe42c640d17d09430e03e99c26aef29f40 Mon Sep 17 00:00:00 2001
From: Andreas Blaesius <[email protected]>
Date: Thu, 22 Oct 2015 20:00:38 +0200
Subject: [PATCH] golden: remove Android.mk from Kernelsource
Samsung placed an Android.mk file inside our kernel repo which get
used if TARGET_USE_ST_ERICSSON_KERNEL := true is defined to build the
kernel as a part of Android Build.
The make file was symlinking to the original source location, causing
the android build system to count the Android.mk in the kernel source twice.
It is causing a build error if "make clean" or "make clobber" aren't used
before rebuilding the rom/kernel:
build/core/base_rules.mk:154: *** kernel/samsung/golden/arch/arm/boot: MODULE.TARGET.EXECUTABLES.zImage already defined by kernel/samsung/golden/arch/arm/boot. Stop.
Also revert "fix: MODULE.TARGET.EXECUTABLES.zImage already defined".
Change-Id: Ia6bcd1a4829ab3aa120620f0d4a93d63bfefbc07
---
Android.mk | 150 -------------------------------------------------------------
Makefile | 2 +-
2 files changed, 1 insertion(+), 151 deletions(-)
delete mode 100644 Android.mk
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 7926e52..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,150 +0,0 @@
-#Android makefile to build kernel as a part of Android Build
-ifeq ($(TARGET_USE_ST_ERICSSON_KERNEL),true)
-
-# Give other modules a nice, symbolic name to use as a dependent
-# Yes, there are modules that cannot build unless the kernel has
-# been built. Typical (only?) example: loadable kernel modules.
-.PHONY: build-kernel clean-kernel
-
-PRIVATE_KERNEL_ARGS := -C kernel ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) LOCALVERSION=$(LOCALVERSION)
-
-PRIVATE_OUT := $(abspath $(PRODUCT_OUT)/root)
-
-PRODUCT_ICS_UPG := janicexx codinaxx gavinixx
-
-# only do this if we are buidling out of tree
-ifneq ($(KERNEL_OUTPUT),)
-ifneq ($(KERNEL_OUTPUT), $(abspath $(TOP)/kernel))
-PRIVATE_KERNEL_ARGS += O=$(KERNEL_OUTPUT)
-endif
-else
-KERNEL_OUTPUT := $(call my-dir)
-endif
-
-build-kernel: $(PRODUCT_OUT)/zImage
-
-# Include kernel in the Android build system
-include $(CLEAR_VARS)
-
-KERNEL_LIBPATH := $(KERNEL_OUTPUT)/arch/arm/boot
-LOCAL_PATH := $(KERNEL_LIBPATH)
-LOCAL_SRC_FILES := zImage
-LOCAL_MODULE := $(LOCAL_SRC_FILES)
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_MODULE_PATH := $(PRODUCT_OUT)
-
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-KERNEL_LIBPATH := $(KERNEL_OUTPUT)
-LOCAL_PATH := $(KERNEL_LIBPATH)
-LOCAL_SRC_FILES := vmlinux
-LOCAL_MODULE := $(LOCAL_SRC_FILES)
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_MODULE_PATH := $(PRODUCT_OUT)
-$(KERNEL_LIBPATH)/$(LOCAL_SRC_FILES): build-kernel
-include $(BUILD_PREBUILT)
-# Configures, builds and installs the kernel. KERNEL_DEFCONFIG usually
-# comes from the BoardConfig.mk file, but can be overridden on the
-# command line or by an environment variable.
-# If KERNEL_DEFCONFIG is set to 'local', configuration is skipped.
-# This is useful if you want to play with your own, custom configuration.
-
-#iifeq ($(ONE_SHOT_MAKEFILE),)
-#$(KERNEL_OUTPUT)/arch/arm/boot/uImage: $(UBOOT_OUTPUT)/tools/mkimage FORCE
-#else
-$(KERNEL_OUTPUT)/arch/arm/boot/zImage: FORCE
-#endif
-
-# only do this if we are buidling out of tree
-ifneq ($(KERNEL_OUTPUT),)
-ifneq ($(KERNEL_OUTPUT), $(abspath $(TOP)/kernel))
- @mkdir -p $(KERNEL_OUTPUT)
-endif
-endif
-
-ifeq ($(KERNEL_DEFCONFIG),local)
- @echo Skipping kernel configuration, KERNEL_DEFCONFIG set to local
-else
- $(MAKE) $(PRIVATE_KERNEL_ARGS) $(KERNEL_DEFCONFIG)
-endif
-
-ifeq ($(SEC_PRODUCT_SHIP),true)
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --enable CONFIG_SAMSUNG_PRODUCT_SHIP
-endif
-
-ifeq ($(SEC_DEBUG_LEVEL),high)
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --set-val CONFIG_SEC_DEBUG_LEVEL 2
-else
-ifeq ($(SEC_DEBUG_LEVEL),low)
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --set-val CONFIG_SEC_DEBUG_LEVEL 0
-endif
-endif
-# Disable SHRM Signature verification feature from here
-ifeq ($(SHRM_ENABLE_FEATURE_SIGNATURE_VERIFICATION),false)
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --disable CONFIG_U8500_SHRM_ENABLE_FEATURE_SIGNATURE_VERIFICATION
-endif
-
-ifneq ($(findstring $(TARGET_PRODUCT), $(PRODUCT_ICS_UPG)),)
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --set-str CONFIG_INITRAMFS_SOURCE "$(abspath $(TOP)/$(TARGET_ROOT_OUT))" \
- --set-val CONFIG_INITRAMFS_ROOT_UID 0 \
- --set-val CONFIG_INITRAMFS_ROOT_GID 0 \
- --enable CONFIG_INITRAMFS_COMPRESSION_NONE \
- --disable CONFIG_INITRAMFS_COMPRESSION_GZIP
-endif
- $(MAKE) $(PRIVATE_KERNEL_ARGS) zImage
-ifeq ($(KERNEL_NO_MODULES),)
- $(MAKE) $(PRIVATE_KERNEL_ARGS) modules
- $(MAKE) $(PRIVATE_KERNEL_ARGS) INSTALL_MOD_PATH:=$(PRIVATE_OUT) modules_install
-else
- @echo Skipping building of kernel modules, KERNEL_NO_MODULES set
-endif
- cp -u $(KERNEL_OUTPUT)/vmlinux $(PRODUCT_OUT)
-
-build-kernel2: build-kernel init-symlinks
- $(MAKE) bootimage
- $(MAKE) recoveryimage
-
-build-kernel3: build-kernel ramdisk init-symlinks recoveryimage
- kernel/scripts/config --file $(KERNEL_OUTPUT)/.config \
- --set-str CONFIG_INITRAMFS_SOURCE "$(abspath $(TOP)/$(TARGET_ROOT_OUT))" \
- --set-val CONFIG_INITRAMFS_ROOT_UID 0 \
- --set-val CONFIG_INITRAMFS_ROOT_GID 0 \
- --enable CONFIG_INITRAMFS_COMPRESSION_NONE \
- --disable CONFIG_INITRAMFS_COMPRESSION_GZIP
- $(MAKE) $(PRIVATE_KERNEL_ARGS) zImage
- cd $(KERNEL_OUTPUT)/arch/arm/boot; \
- cp -f zImage kernel.bin; \
- cp -f zImage $(abspath $(PRODUCT_OUT)); \
- cp -f zImage $(abspath $(PRODUCT_OUT))/kernel.bin; \
- cp -f zImage $(abspath $(PRODUCT_OUT))/kernel2.bin; \
- tar cvf $(abspath $(PRODUCT_OUT))/kernel.tar kernel.bin
-
-# Configures and runs menuconfig on the kernel based on
-# KERNEL_DEFCONFIG given on commandline or in BoardConfig.mk.
-# The build after running menuconfig must be run with
-# KERNEL_DEFCONFIG=local to not override the configuration modification done.
-
-menuconfig-kernel:
-# only do this if we are buidling out of tree
-ifneq ($(KERNEL_OUTPUT),)
-ifneq ($(KERNEL_OUTPUT), $(abspath $(TOP)/kernel))
- @mkdir -p $(KERNEL_OUTPUT)
-endif
-endif
-
- $(MAKE) $(PRIVATE_KERNEL_ARGS) $(KERNEL_DEFCONFIG)
- $(MAKE) $(PRIVATE_KERNEL_ARGS) menuconfig
-
-clean clobber : clean-kernel
-
-clean-kernel:
- $(MAKE) $(PRIVATE_KERNEL_ARGS) clean
-endif
diff --git a/Makefile b/Makefile
index 29e7091..7a26272 100644
--- a/Makefile
+++ b/Makefile
@@ -422,7 +422,7 @@ PHONY += outputmakefile
# output directory.
outputmakefile:
ifneq ($(KBUILD_SRC),)
-# $(Q)ln -fsn $(srctree) source
+ $(Q)ln -fsn $(srctree) source
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
$(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
endif
Hi everyone,
I've been an XDA reader for a few years and up until now just flashed new roms every month or two to keep my S2 alive.
I just registered on XDA after deciding to try building roms from source. I have a i9100 and thought the easiest thing to try first was to compile an ordinary Lineage 14.1 rom without modification.
So, I installed ubuntu 16.04 LTS as the OS(not VM), then as per the instructions on the Lineage page, installed the SDK, build packages, and JDK. Then I executed the repo binary and put ~/bin in the correct path and updated the environment. After this I did repo init and repo sync. I tried breakfast at this stage which failed, but after extracting proprietry blobs from the device, breakfast succeeded.
After this I used croot and brunch, but I get these errors:
Code:
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/Clyde00/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/base_rules.mk:183: *** vendor/samsung/galaxys2-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libUMP already defined by hardware/samsung/exynos4/hal/libUMP.
build/core/ninja.mk:166: recipe for target '/home/Clyde00/android/lineage/out/build-lineage_i9100.ninja' failed
make: *** [/home/Clyde00/android/lineage/out/build-lineage_i9100.ninja] Error 1
make: Leaving directory '/home/Clyde00/android/lineage'
#### make failed to build some targets (11 seconds) ####
At this point I am stuck. I'm sure there is something simple I'm missing; I've been searching for answers for the last few days and haven't been able to come up with anything to fix these errors. I'm thinking something needs to be added to roomservice.xml or something. I'm a bit lost. Any help would be much appreciated.
Clyde00 said:
Hi everyone,
I've been an XDA reader for a few years and up until now just flashed new roms every month or two to keep my S2 alive.
I just registered on XDA after deciding to try building roms from source. I have a i9100 and thought the easiest thing to try first was to compile an ordinary Lineage 14.1 rom without modification.
So, I installed ubuntu 16.04 LTS as the OS(not VM), then as per the instructions on the Lineage page, installed the SDK, build packages, and JDK. Then I executed the repo binary and put ~/bin in the correct path and updated the environment. After this I did repo init and repo sync. I tried breakfast at this stage which failed, but after extracting proprietry blobs from the device, breakfast succeeded.
After this I used croot and brunch, but I get these errors:
At this point I am stuck. I'm sure there is something simple I'm missing; I've been searching for answers for the last few days and haven't been able to come up with anything to fix these errors. I'm thinking something needs to be added to roomservice.xml or something. I'm a bit lost. Any help would be much appreciated.
Click to expand...
Click to collapse
I'm at work atm... I know how to solve the libUMP problem... I will reply later today...
Sub_Zero2 said:
I'm at work atm... I know how to solve the libUMP problem... I will reply later today...
Click to expand...
Click to collapse
Thanks for the reply. I already did a search for this issue and found someone who suggested to delete one of the libUMP folders, but this only gave a different error. I would be grateful for any advise for this. I still haven't got any further with these errors. :fingers-crossed:
Clyde00 said:
Thanks for the reply. I already did a search for this issue and found someone who suggested to delete one of the libUMP folders, but this only gave a different error. I would be grateful for any advise for this. I still haven't got any further with these errors. :fingers-crossed:
Click to expand...
Click to collapse
Iirc, you have to delete/comment out two lines in a file. But atm i can not remember the filename of this file. I will have a look at it when I get home, in 3-4 hours.
You have to edit this file: vendor/samsung/galaxys2-common/proprietary/Android.mk
Uncomment these lines with a # om each line:
include $(CLEAR_VARS)
LOCAL_MODULE := libUMP
LOCAL_MODULE_OWNER := samsung
LOCAL_SRC_FILES := system/lib/libUMP.so
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib
include $(BUILD_PREBUILT)
There... Now you should be able to brunch successfully
@Sub_Zero2
Thank you very much for your input. I tried brunch again and got much further, but now I have OOM problems(8gb ram) stopping the build from succeeding. Now I'm doing some searching to solve this issue.
I need to figure out how(and whether to) change JACK_SERVER_VM_ARGUMENTS or change jack.server.max-service= to a lower value.
EDIT: I got a successful build! For anyone having similar out of memory errors, I ran these commands before starting brunch:
Code:
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
Clyde00 said:
@Sub_Zero2
Thank you very much for your input. I tried brunch again and got much further, but now I have OOM problems(8gb ram) stopping the build from succeeding. Now I'm doing some searching to solve this issue.
I need to figure out how(and whether to) change JACK_SERVER_VM_ARGUMENTS or change jack.server.max-service= to a lower value.
EDIT: I got a successful build! For anyone having similar out of memory errors, I ran these commands before starting brunch:
Click to expand...
Click to collapse
There you go!
Good luck!
[GUIDE] Build LineageOS 14.1
See my posts in this thread. This guide works for all lineage-13.0 and 14.1 devices. On that note, feel free to try my i9100 builds and the latest bootloader and modem, links in my signature.
anyone know how to solve this
1 error generated. [ 0% 32/81917] target thumb C++: libinit_m... <= device/asus/Z010D/init/init_msm8916.cpp FAILED: /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/asus/msm8916-common/include -I system/core/init -I external/selinux/libselinux/include -I device/asus/Z010D/init -I /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates -I /home/christo/los/out/target/product/Z010D/gen/STATIC_LIBRARIES/libinit_msm8916_intermediates -I libnativehelper/include/nativehelper \$(cat /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/christo/los/out/target/product/Z010D/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -Wall -DANDROID_TARGET=\\\"msm8916\\\" -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.d -o /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.o device/asus/Z010D/init/init_msm8916.cpp" device/asus/Z010D/init/init_msm8916.cpp:54:7: error: using declaration requires a qualified name using property_set; ^ 1 error generated. [ 0% 40/81917] target C++: libsdcard <= system/core/sdcard/fuse.cpp ninja: build stopped: subcommand failed. 06:53:31 ninja failed with: exit status 1 make: *** [build/core/main.mk:21: run_soong_ui] Error 1 make: Leaving directory '/home/christo/los' #### make failed to build some targets (01:08 (mm:ss)) #### [email protected]:~/los$
Sony just posted a guide in their site to build AOSP 9.0 for our devices.
https://developer.sony.com/develop/...build-instructions/build-aosp-android-p-9-0-0
I try to build this next week stay tuned
VinBenzin810 said:
I try to build this next week stay tuned
Click to expand...
Click to collapse
That's great! Thanks a lot!
Sent from my [device_name] using XDA-Developers Legacy app
VinBenzin810 said:
I try to build this next week stay tuned
Click to expand...
Click to collapse
TriboDoP said:
That's great! Thanks a lot!
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Redcalibur said:
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Click to expand...
Click to collapse
Thanks for trying anyway! Being new to sony i also don't want to breake the camera (altough thankfully there is a custom kernel + twrp + camera-fix) so i am uncertain if i should wait for official android 9 or AOSP android 9 (customroms would be even better).
On my other devices (samsung,oneplus) i use only customroms but at the moment there is very little choice here.
But i love the xz1 with the 835 it is fast as lightning!
Regards!
Sent from my [device_name] using XDA-Developers Legacy app
Redcalibur said:
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Click to expand...
Click to collapse
Which Error you get ? Write me an pn
VinBenzin810 said:
Which Error you get ? Write me an pn
Click to expand...
Click to collapse
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Redcalibur said:
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Click to expand...
Click to collapse
I send you an PM look there
Redcalibur said:
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Click to expand...
Click to collapse
Except
- repo_update.sh hardware/qcom/gps
- vendor-qcom-opensource-location
Poplar xperiadev pie is "today build-able" but doesn't boot yet; good news are xperiadev moves to kernel 4.9; will probably have to wait for SoftwareBinairies v16 Pie specifics...
Will upload poplar_Pie as soon as it will boot...
btw: I've uploaded latest twrp 3.2.3 with OEM.img flash support (and BusyBox) https://androidfilehost.com/?fid=1322778262903981152
Any news about the build?
Getting below error .. doesn't seem like kernel is syncing. Any ideas?
[ 66% 2/3] glob frameworks/base/core/java/**/*.java
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-poplar', needed by 'out/target/product/poplar/kernel', missing and no known rule to make it
16:01:44 ninja failed with: exit status 1
#### failed to build some targets (07:25 (mm:ss)) ####
rsabluebulls said:
Getting below error .. doesn't seem like kernel is syncing. Any ideas?
[ 66% 2/3] glob frameworks/base/core/java/**/*.java
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-poplar', needed by 'out/target/product/poplar/kernel', missing and no known rule to make it
16:01:44 ninja failed with: exit status 1
#### failed to build some targets (07:25 (mm:ss)) ####
Click to expand...
Click to collapse
Just delete kernel/sony/msm-4.9/common-kernel directory and your build will go through a complete rebuild of dbt and kernel.
But without Sony Pie OEm vendor image release, the phone will hang on logo...
Thank you oF2pks - I managed to get further with the compile. This is the next error... any help please?
Copying resources from program jar [/Volumes/Mac_Drive/android-pe/out/target/common/obj/APPS/messaging_intermediates/classes.jar]
[ 60% 52636/87279] build out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52851/87279] build out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52893/87279] build out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52978/87279] Yacc: ss <= external/iproute2/misc/ssfilter.y
external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce
[ 61% 53613/87279] target C: libext4 <= out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c
FAILED: out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.o
/bin/bash -c "prebuilts/misc/darwin-x86/ccache/ccache prebuilts/clang/host/darwin-x86/clang-4691093/bin/clang -I external/iptables/extensions/../include/ -I external/iptables/extensions/.. -I out/target/product/poplar/gen/STATIC_LIBRARIES/libext4_intermediates -I external/iptables/extensions -I external/iptables/extensions -I out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates -I out/target/product/poplar/gen/STATIC_LIBRARIES/libext4_intermediates -I libnativehelper/include_jni \$(cat out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/poplar/obj/include -isystem kernel/sony/msm-4.9/common-headers/kernel-headers -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -march=armv8-a -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -std=gnu99 -DNO_SHARED_LIBS=1 -DXTABLES_INTERNAL -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DENABLE_IPV4 -DENABLE_IPV6 -D__ANDROID__ -Wall -Werror -Wno-format -Wno-missing-field-initializers -Wno-pointer-arith -Wno-pointer-bool-conversion -Wno-sign-compare -Wno-tautological-pointer-compare -Wno-unused-parameter -fPIC -D_USING_LIBCXX -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.d -o out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.o out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c"
In file included from out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c:11:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 61% 53616/87279] target StaticLib: libv8 (out/target/product/poplar/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
18:47:24 ninja failed with: exit status 1
#### failed to build some targets (05:24:19 (hh:mm:ss)) ####
rsabluebulls said:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 61% 53616/87279] target StaticLib: libv8 (out/target/product/poplar/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
18:47:24 ninja failed with: exit status 1
#### failed to build some targets (05:24:19 (hh:mm:ss)) ####
Click to expand...
Click to collapse
Noob here. Does this (https://medium.com/@christopherney/building-android-o-with-a-mac-da07e8bd94f9) help?
christopherney said:
If the following error is raised during the Android building process:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
Please check the filename user or lower case. Remember that the Android building process is case-sensitive.
Click to expand...
Click to collapse
Does anyone tried any Android Pie Treble GSI roms on our device? is it working fine?
Anyone able to assist with the missing separator error in Android.mk which I'm receiving now?
many thanks
--------------------------
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_g8341
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.009
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/poplar/clean_steps.mk) was changed, regenerating...
out/build-aosp_g8341.ninja is missing, regenerating...
[2/947] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[119/947] including device/sony/common/Android.mk ...
hardware/qcom/gps/sdm845/android/Android.mk:48: error: missing separator.
19:53:11 ckati failed with: exit status 1
#### failed to build some targets (57 seconds) ####
arslancn said:
Does anyone tried any Android Pie Treble GSI roms on our device? is it working fine?
Click to expand...
Click to collapse
I tested some ROMs, but I will restart them in Sony LOGO. I don't know if anyone is successful. Maybe I still need to flash something.
Anyone come across a StaticLib: libv8src_32 related compiling issue like mine shown in the log below?
Many thanks - got up to 64% clean build...
make[3]: *** Waiting for unfinished jobs....
INSTALL usr/include/scsi/ufs/ (2 files)
INSTALL usr/include/linux/caif/ (2 files)
INSTALL usr/include/linux/byteorder/ (2 files)
INSTALL usr/include/linux/can/ (5 files)
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
make[4]: *** [usr/include/linux/byteorder/.install] Error 1
make[4]: *** [usr/include/linux/caif/.install] Error 1
make[4]: *** [usr/include/linux/can/.install] Error 1
make[4]: *** [usr/include/scsi/ufs/.install] Error 1
make[3]: *** [can] Error 2
make[3]: *** [caif] Error 2
make[3]: *** [byteorder] Error 2
make[3]: *** [ufs] Error 2
make[2]: *** [linux] Error 2
make[2]: *** [scsi] Error 2
make[1]: *** [headers_install] Error 2
make: *** [sub-make] Error 2
[ 64% 56247/87336] target StaticLib: libv8src_32 (out/target/product/poplar/obj_arm/STATIC_LIBRARIES/libv8src_intermediates/libv8src.a)
ninja: build stopped: subcommand failed.
15:16:21 ninja failed with: exit status 1
#### failed to build some targets (49:07 (mm:ss)) ####
Hi all, anyone perhaps have an idea on the below error or perhaps came across it before? (PS. 8.1 ASOP Sony builds without any issues, latest SEP release), this is for Android Pie latest asop
[ 63% 55359/87336] Building Kernel Headers
FAILED: /Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.headers_install_stamp
/bin/bash -c "(if [ ! -z "aosp_yoshino_poplar_defconfig" ]; then rm -f ..//Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" aosp_yoshino_poplar_defconfig; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" headers_install; fi ) && (if [ "aosp_yoshino_poplar_defconfig" != "aosp_yoshino_poplar_defconfig" ]; then echo "Used a different defconfig for header generation"; rm -f ..//Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" aosp_yoshino_poplar_defconfig; fi ) && (if [ ! -z "" ]; then echo "Overriding kernel config with ''"; echo >> /Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" oldconfig; fi )"
GEN ./Makefile
#
# configuration written to .config
#
https://developer.sony.com/file/dow...-for-aosp-pie-android-9-0-kernel-4-9-yoshino/ this link maybe useful for you guys