• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Build CyanogenMod7 from source | Development area

The build ran last night with zero errors. I loaded the file on my phone and will flash it in to test tonight. Thanks again for the help.

*edit* couldn't wait until tonight... Flashed my build and everything is working perfectly so far. I still need to test Wifi tether with my tablet. BIG THANKS to all the people that helped me. and also to Issac for bringing this to light for the newb devs out there. I think the next thing is to theme the ROM and fire out another one.

*edit2* tested Wifi tether and all works flawlessly. Fantastic work guys.

-Mike
 
I resolved my build issue from page 5, brought about by grsecurity killing the mksnapshot program.

I've successfully built CM7 since then and I have it loaded on my phone. I read tickerguy's original post for his CM7 ROM and he mentioned the BT/wifi interrupt storm. Does anyone know what causes it, or have there been any advances on that front since it was released?

I'm an experienced Linux user, but the Android platform is rather foreign to me from a hardware perspective.
 
I resolved my build issue from page 5, brought about by grsecurity killing the mksnapshot program.

I've successfully built CM7 since then and I have it loaded on my phone. I read tickerguy's original post for his CM7 ROM and he mentioned the BT/wifi interrupt storm. Does anyone know what causes it, or have there been any advances on that front since it was released?

I'm an experienced Linux user, but the Android platform is rather foreign to me from a hardware perspective

Tickerguys build stated that wifi tether was questionable, but on my build it works great. His build is a little older than my current build. There may have been a fix issued.
 
I resolved my build issue from page 5, brought about by grsecurity killing the mksnapshot program.

I've successfully built CM7 since then and I have it loaded on my phone. I read tickerguy's original post for his CM7 ROM and he mentioned the BT/wifi interrupt storm. Does anyone know what causes it, or have there been any advances on that front since it was released?

I'm an experienced Linux user, but the Android platform is rather foreign to me from a hardware perspective.

I noticed the file /system/bin/btwlancoex that could be a clue to how stock ROMs don't have this problem...
 
new problem. fetch error?
Code:
Fetching projects:  93% (293/314)  fatal: The remote end hung up unexpectedly
Fetching projects:  99% (311/314)  fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
hmmmmmm. Is this on their end, or mine?

-Mike
 
new problem. fetch error?
Code:
Fetching projects:  93% (293/314)  fatal: The remote end hung up unexpectedly
Fetching projects:  99% (311/314)  fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt
 
error: Exited sync due to fetch errors
hmmmmmm. Is this on their end, or mine?

-Mike

Both. Go into the the .repo folder in your repo location

<your repo location>\.repo\manifests\ and edit the default.xml file. Change all of the git:// in the top section to https://:

Code:
  <remote  name="aosp"
           fetch="[URL]https://android.googlesource.com/[/URL]" />
  <remote  name="github"
           fetch="[URL]https://github.com/[/URL]" 
           review="review.cyanogenmod.com" />
  <remote  name="ikaros"
           fetch="[URL]https://github.com/ikarosdev/[/URL]" />
  <default revision="refs/heads/ics"
           remote="github"
           sync-j="4" />

Then do the same thing in the .repo\manifests.git\config file.
 
Both. Go into the the .repo folder in your repo location

<your repo location>\.repo\manifests\ and edit the default.xml file. Change all of the git:// in the top section to https://:

Code:
  <remote  name="aosp"
           fetch="[URL]https://android.googlesource.com/[/URL]" />
  <remote  name="github"
           fetch="[URL]https://github.com/[/URL]" 
           review="review.cyanogenmod.com" />
  <remote  name="ikaros"
           fetch="[URL]https://github.com/ikarosdev/[/URL]" />
  <default revision="refs/heads/ics"
           remote="github"
           sync-j="4" />
Then do the same thing in the .repo\manifests.git\config file.

Wonder if we can comment out some of the projects in manifest.xml since they're clearly not related to the MT. It should help speed up repo syncs. Or in my case my first init & sync took around 20 hrs on a 1.5 Mbps connection.
 
Both. Go into the the .repo folder in your repo location

<your repo location>\.repo\manifests\ and edit the default.xml file. Change all of the git:// in the top section to https://:

Code:
  <remote  name="aosp"
           fetch="[URL]https://android.googlesource.com/[/URL]" />
  <remote  name="github"
           fetch="[URL]https://github.com/[/URL]" 
           review="review.cyanogenmod.com" />
  <remote  name="ikaros"
           fetch="[URL]https://github.com/ikarosdev/[/URL]" />
  <default revision="refs/heads/ics"
           remote="github"
           sync-j="4" />
Then do the same thing in the .repo\manifests.git\config file.
BINGO!!! Thanks Mantera. Everything worked fine the first few times on the desktop, but on the laptop I have issues. Weird. Now it's finishing up the download.:cool:
 
Trying to build CM7, but I keep getting a error beginning like this 'build/core/product_config.mk:194: ***'

and ending like this 'don't have product spec for: ''
 
Wonder if we can comment out some of the projects in manifest.xml since they're clearly not related to the MT. It should help speed up repo syncs. Or in my case my first init & sync took around 20 hrs on a 1.5 Mbps connection.
On Broadband, running anywhere from 1.3-2 Mbps I can run a download using
Code:
repo sync -j4
in about 2 hours.
 
Trying to build CM7, but I keep getting a error beginning like this 'build/core/product_config.mk:194: ***'

and ending like this 'don't have product spec for: ''
I think we may have the same/similar problem...
Code:
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory
build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current .  Stop.
This is the error I got when running the . build command. Followed the instructions to the letter. Seems odd to me, but I'm not surprised. Any info would be greatly appreciated.

-Mike
 
I think we may have the same/similar problem...
Code:
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory
build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current .  Stop.
This is the error I got when running the . build command. Followed the instructions to the letter. Seems odd to me, but I'm not surprised. Any info would be greatly appreciated.

-Mike

Seems like it's complaining about missing prebuilt files. Do you have a path like:

~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3

if not, then one of the repo syncs to the 'pre-built' project failed & you didn't pickup the necessary files.
 
Seems like it's complaining about missing prebuilt files. Do you have a path like:

~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3

if not, then one of the repo syncs to the 'pre-built' project failed & you didn't pickup the necessary files.

OK, I'll check it out tonight and get back. Thanks Whyzor.
 
Seems like it's complaining about missing prebuilt files. Do you have a path like:

~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3

if not, then one of the repo syncs to the 'pre-built' project failed & you didn't pickup the necessary files.

OK, I checked the files, the folder is missing. I've synced about 3 times, and the folder is still missing. Can you upload the folder and its contents in a zip for me?

**edit** I wiped out everything and restarted from scratch. I think it may have borked somehow due to the problems I had downloading previously. We'll see where it ends up after my "new" sync.
 
OK, I checked the files, the folder is missing. I've synced about 3 times, and the folder is still missing. Can you upload the folder and its contents in a zip for me?

**edit** I wiped out everything and restarted from scratch. I think it may have borked somehow due to the problems I had downloading previously. We'll see where it ends up after my "new" sync.

There's a problem with fetching the prebuilt dir from github. discussion about a workaround here:

https://github.com/CyanogenMod/android/commit/86da05c57f010fb717ea9d027a374f497bc597ba#comments

But I think it's still not fetching everything since I used a https repo sync last night and didn't get everything like my old prebuilt dir (it's over 700 MB compressed).
 
Made a full sync... FINALLY! My laptop tried to build and I got a strange result:
Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string &#65533;&#65533; cd .. Up and name - cd ../name Down and name
                                  ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string &#65533;&#65533; cd .. Up and name - cd ../name Down and name
                                   ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string &#65533;&#65533; cd to root
                                           ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string &#65533;&#65533; cd to root
                                            ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol
symbol  : method noEndofBody()
location: interface javax.obex.Operation
            op.noEndofBody();
              ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings
make: *** [out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar] Error 41
mike@mike-Ghost:~/android/system$
Any ideas as to why? It looks like something from the Bluetooth file is missing. Can I "clone" these needed files from the git?
 
Made a full sync... FINALLY! My laptop tried to build and I got a strange result:
Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string &#65533;&#65533; cd .. Up and name - cd ../name Down and name
                                  ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string &#65533;&#65533; cd .. Up and name - cd ../name Down and name
                                   ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string &#65533;&#65533; cd to root
                                           ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string &#65533;&#65533; cd to root
                                            ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol
symbol  : method noEndofBody()
location: interface javax.obex.Operation
            op.noEndofBody();
              ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings
make: *** [out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar] Error 41
mike@mike-Ghost:~/android/system$
Any ideas as to why? It looks like something from the Bluetooth file is missing. Can I "clone" these needed files from the git?

There is a space after the / and Bluetooth for some reason. Its better to do git pull instead of clone, so it merges new changes into existing one, which may contain fixes/updates for the MT.
 
There is a space after the / and Bluetooth for some reason. Its better to do git pull instead of clone, so it merges new changes into existing one, which may contain fixes/updates for the MT.
Ok, but stupid question, how would I word the command in terminal?
 
no question is ever stupid

it would go like this... :D

Code:
git pull "the git url of choce, w/ out quotes of course"
Thanks ziggy, I'm looking for the Bluetooth files in my repo. Where would I go to get those? Is it in the Cyanogen repo?

ziggy or Whyzor, can you guys upload a file for me? It's in ~/android/system/packages/apps/Bluetooth/src/com/android/map... (whew)... BluetoothMasObex.java This file has a bad line in it and I can't seem to figure out how to fix it. The line is: "op.noEndofBody();" there is some kind of issue there that prevents the build of the file for the ROM. Something like this:
Code:
target Java: Bluetooth (out/target/common/obj/APPS/Bluetooth_intermediates/classes)
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: ';' expected
            op noEndofBody();
                          ^
1 error
Hopefully I can fix this mess and eventually move on to ICS (eventually)

Thanks guys
-Mike
 
here's the whole map dir tar & gzipped. map.tgz

Not sure if you'll have other problems, this seems odd. Maybe it's becaues of using http instead of git, git is supposed to be more reliable.
 
Back
Top Bottom