[Q] Building using Linaro toolchain?

Search This thread

veeman

Senior Member
Apr 7, 2012
9,494
1,467
Minnesota
I'm a bit confused about how to go about building using the Linaro toolchain. I've built a couple CM9 roms and I'm trying to use Linaro now.

Code:
$ mkdir ~/bin/
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ export PATH=$HOME/bin:$PATH
$ chmod a+x ~/bin/repo
$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_4.0.4 -m {PRODUCT_MANIFEST}
$ repo sync

I'm not sure what the {PRODUCT_MANIFEST} is supposed to be. It says it's got some options but I'm not sure which to choose.

"Options for PRODUCT_MANIFEST are: {staging-panda.xml, landing-panda.xml,tracking-panda.xml, staging-snowball.xml, landing-snowball.xml, staging-iMX53.xml, staging-iMX6.xml, staging-origen.xml, staging-vexpress-a9.xml}"

Any help would be appreciated, thanks :)
 

lovejoy777

Inactive Recognized Developer
Dec 30, 2011
3,725
4,541
Nottingham
Sorry dude I know f&%k all about linaro.
But when I get my kindle I'm on it.
I'm sure by then you will have it sorted & can teach me:)

Sent from my Galaxy Nexus using xda premium
 

veeman

Senior Member
Apr 7, 2012
9,494
1,467
Minnesota
Yes, just add those two to your local_manifest and resync your repo. That should work.

Code:
<project path="build" name="loosethisskin/android_build" remote="github" revision="ics" />
<project path="prebuilt" name="loosethisskin/android_prebuilt/tree/ics-linaro" remote="github" revision="ics" />

Does that look right?
 

twa_priv

Senior Member
Feb 10, 2011
1,701
4,472
Like this:

Code:
<remove-project name="CyanogenMod/android_build" />
<remove-project name="CyanogenMod/android_prebuilt" />

<project path="build" name="loosethisskin/android_build" remote="github" revision="ics-linaro" />
<project path="prebuilt" name="loosethisskin/android_prebuilt" remote="github" revision="ics-linaro" />
 
  • Like
Reactions: veeman

veeman

Senior Member
Apr 7, 2012
9,494
1,467
Minnesota
Like this:

Code:
<remove-project name="CyanogenMod/android_build" />
<remove-project name="CyanogenMod/android_prebuilt" />

<project path="build" name="loosethisskin/android_build" remote="github" revision="ics-linaro" />
<project path="prebuilt" name="loosethisskin/android_prebuilt" remote="github" revision="ics-linaro" />

Ah I see. Thanks a lot!
 

lovejoy777

Inactive Recognized Developer
Dec 30, 2011
3,725
4,541
Nottingham
Nice.
Is it building?
On a side note. Entropy thinks over the weekend he may get a fix for my bricked kindle :)

Sent from my Galaxy Nexus using xda premium
 

lovejoy777

Inactive Recognized Developer
Dec 30, 2011
3,725
4,541
Nottingham
i have this error?


target thumb C++: libjavacore <= libcore/luni/src/main/native/Register.cpp
target thumb C++: libjavacore <= libcore/luni/src/main/native/cbigint.cpp
target thumb C++: libjavacore <= libcore/luni/src/main/native/java_io_Console.cpp
cc1plus: warnings being treated as errors
libcore/luni/src/main/native/cbigint.cpp: In function 'uint32_t simpleMultiplyHighPrecision(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:205: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:208: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:212: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'void simpleMultiplyAddHighPrecision(uint64_t*, int32_t, uint64_t, uint32_t*)':
libcore/luni/src/main/native/cbigint.cpp:232: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:237: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:242: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:243: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'uint32_t simpleAppendDecimalDigitHighPrecision(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:325: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:329: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:333: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'int32_t doubleExponent(jdouble)':
libcore/luni/src/main/native/cbigint.cpp:782: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'uint64_t simpleMultiplyHighPrecision64(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:835: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:846: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:848: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:858: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:860: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:862: error: dereferencing type-punned pointer might break strict-aliasing rules
make: *** [out/target/product/otter/obj/STATIC_LIBRARIES/libjavacore_intermediates/luni/src/main/native/cbigint.o] Error 1
make: *** Waiting for unfinished jobs....
steve@lovejoyubsea:~/otter/cm9$
 

twa_priv

Senior Member
Feb 10, 2011
1,701
4,472
i have this error?


target thumb C++: libjavacore <= libcore/luni/src/main/native/Register.cpp
target thumb C++: libjavacore <= libcore/luni/src/main/native/cbigint.cpp
target thumb C++: libjavacore <= libcore/luni/src/main/native/java_io_Console.cpp
cc1plus: warnings being treated as errors
libcore/luni/src/main/native/cbigint.cpp: In function 'uint32_t simpleMultiplyHighPrecision(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:205: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:208: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:212: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'void simpleMultiplyAddHighPrecision(uint64_t*, int32_t, uint64_t, uint32_t*)':
libcore/luni/src/main/native/cbigint.cpp:232: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:237: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:242: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:243: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'uint32_t simpleAppendDecimalDigitHighPrecision(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:325: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:329: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:333: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'int32_t doubleExponent(jdouble)':
libcore/luni/src/main/native/cbigint.cpp:782: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp: In function 'uint64_t simpleMultiplyHighPrecision64(uint64_t*, int32_t, uint64_t)':
libcore/luni/src/main/native/cbigint.cpp:835: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:846: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:848: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:858: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:860: error: dereferencing type-punned pointer might break strict-aliasing rules
libcore/luni/src/main/native/cbigint.cpp:862: error: dereferencing type-punned pointer might break strict-aliasing rules
make: *** [out/target/product/otter/obj/STATIC_LIBRARIES/libjavacore_intermediates/luni/src/main/native/cbigint.o] Error 1
make: *** Waiting for unfinished jobs....
steve@lovejoyubsea:~/otter/cm9$
Remove -Werror from LOCAL_CFLAGS in libcore/NativeCode.mk
 
  • Like
Reactions: lovejoy777

lovejoy777

Inactive Recognized Developer
Dec 30, 2011
3,725
4,541
Nottingham
ok found the file and cflag
the word "-werror"
do i just delete this and then save?

thanks for your help
steve
 

lovejoy777

Inactive Recognized Developer
Dec 30, 2011
3,725
4,541
Nottingham
it got further
but now this


target thumb C++: libRS <= frameworks/base/libs/rs/rsAdapter.cpp
cc1plus: warnings being treated as errors
In file included from frameworks/base/libs/rs/rsUtils.h:25,
from frameworks/base/libs/rs/rsContext.h:20,
from frameworks/base/libs/rs/rsAdapter.cpp:18:
frameworks/base/libs/rs/rsStream.h: In member function 'void android::renderscript::OStream::addF(float)':
frameworks/base/libs/rs/rsStream.h:95: error: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [out/target/product/otter/obj/SHARED_LIBRARIES/libRS_intermediates/rsAdapter.o] Error 1
make: *** Waiting for unfinished jobs....
aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko
steve@lovejoyubsea:~/otter/cm9$
 

Top Liked Posts