yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kaymmm:
building slim on os x 10.8

Over the past couple of days, I've been trying to move away from building in a linux VM to building natively on OS X, following these directions: http://xdaforums.com/showthread.php?t=2087318 (which might be a good addition to the OP)

Building CM10.1 works great. That's not my problem, and is why I'm not posting in that thread for help.

My problem is that I'm trying to get slim to build. I can get it to build without incident on my Ubuntu 13.04 VM. But when I do the same thing in my OS X environment, I consistently end up with the same error:

I suspect the issue is with the build tools and the xcode version of ld, which according to the manpage doesn't seem to support -Ox optimization options.

I've tried using a homebrew version of gcc-4.7 as well as gcc-4.2 packaged with xcode (llvm-gcc-4.2). I tried installing the homebrew version of binutils, but it doesn't install the gnu version of ld.

Does anyone have an idea about how I can either get the make process to use a different linker or modify the appropriate makefiles to remove the -O3 option? I have no idea where to start looking since I didn't see anything that looked relevant in the Android.mk file in system/core/mkbootimg/, which I'm assuming was where it broke? or maybe the next call after that, but no clue how to track that down...
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] BMP7777:
[MENTION=382473]cvd[/MENTION] - Glad to see you are up and running. The other two posts can be altered by me for the time being, if that's what you need. BTW, I am beginning a Project Rookie II thread in the Sprint LG Optimus G forum; wish me luck! If anybody has any ideas, thoughts, criticisms, etc, please let me know....be cool everybody! I hope my new thread will be as well-received as this one was. ;)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] dakpluto:
eww. why did you go to Sprint?

I don't blame on the Optimus G, I think it's a good phone. But Sprint is just so icky! hehe.

I'm really interested in the Optimus G 2 this fall. So far the leaks look really exciting.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] BMP7777:
I have to concur in the most extreme way possible. Unfortunately, Sprint is about 80 dollars a month cheaper for a three-line family plan and has better 'unlimited' text and data. I wish money wasn't such an important thing to me, but whatareyagonnado........:crying:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] dakpluto:
Yeah, I can understand that. Glad you put the unlimited in quotes ;) believe me, it may be no cap, but lord knows their data can be pretty limited, lol. Well, at least the phone is really good :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
Few questions is the kernel your compiling O3? Did you set them? Slim has an option for this that can be set on device BoardConfig.mk for O3. We never use it because it requires work (and we are lazy lol). If it's the kernel go through the kernel log to verify. However of the kernel dev has set o3 that's a noticeable performance increase, assuming it's stable, so I wouldn't revert those commits. I know great deal of people compile. As source is however it should compile fine with CM, marla and moretz kernel (depending on which you set as a dependency), however default is marla.

https://github.com/SlimRoms/android_build/commit/df26436c8c15cd7f76f80a11b11f04858efb76c7
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] car vs driver:
When you get a moment, can you verify the slim build instructions in the OP (at least eyeball it)?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
I don't use mka and I've heard it can cause issues. I use "make - j# bacon) # relative to machine I'm using and speed. As for repo sync j16 I wouldn't as it will make avg pc useless while it syncs. Repo sync will usually use as much threads as it can without it affecting other processes. Afaik

[MENTION=4685003]car vs driver[/MENTION] second post added.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kaymmm:
Thanks for the info re: the optimization options in BoardConfig.mk. I couldn't figure out where the -O3 call was originating but I now have a feeling that it might be from a conflict with one of my CM deps. When I get home I'm going to try tweaking my roomservice.xml and possibly boardconfig.mk or envsetup.sh to see if I can figure this one out.

EDIT: Question for prbassplayer: I'm looking at the commit you sent and I'm confused by the edit to core/combo/select.mk at line 49, it tests the O3 and if it's false it uses O3? Shouldn't that "ifneq" be an "ifeq"? And also, it says "TARGET_USE_03" with a "zero", where I'm pretty sure it's supposed to be an "O"...or is this intentional?

+ifneq ($(TARGET_USE_03),true)
$(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar
$(combo_target)RELEASE_CFLAGS := -O3 -g -fno-strict-aliasing
else
$(combo_target)GLOBAL_CFLAGS := O2 -g -fno-strict-aliasing
$(combo_target)RELEASE_CFLAGS :=
endif

I use make -j(cores+1) and not mka as well, and it works every time. Had issues with mka a while back while compiling pacman rom, and switched my build scripts to just use make instead. Haven't looked back since.

I don't have problems with repo sync -j16 killing my computer, but it takes about the same amount of time as repo sync when doing the initial pull, i.e. forever. So the OP can take it or leave it...

The lunch command for slim should be "slim_skyrocket-userdebug" and not "slimbean_..."

And it might be helpful to include a roomservice.xml along with the various kernel options.

AOKP section should be edited to change "local_mainfest.xml" to "local_manifests/roomservice.xml", and pacman section should have this as well.

Finally, to my previous request to add the link to building on OS X (http://xdaforums.com/showthread.php?t=2087318) I'd like to add this script to automagically setup an OS X build environment (haven't tried it personally): http://xdaforums.com/showthread.php?p=36346945
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kaymmm:
Woohoo! I finally got slim to build on OS X 10.8. The problem was indeed the typo in core/combo/select.mk so I submitted a pull request on git.

Also, I later discovered that I needed to include CyanogenMod/android_prebuilt in my roomservice.xml and delete the slim version from manifest.xml because the slim repo only has the toolchains for linux and not darwin.

Oh and because slim defaults to the Marla kernel I also had to install lzop.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] BMP7777:
Just wanted to give you your 2500th thanks. Be cool :cool:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] car vs driver:
Thank you sir!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] car vs driver:
Any chance you can pm me a tutorial for setting up a mac build environment? I was never able to get it working myself.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
OK this post will be used to post a logcat hopefully to help figure out why pa is not booting. Yes I finally got it to a point where it will logcat. Will post in a while.

http://pastebin.com/2NYUSXCz

link posted
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onlychevys:
Dang, I lost my phone and had to resort to my old htc magic for backup. Gingerbread is all that thing will run and what a little tiny screen! I finally found another hercules and I'm back. Built slim 5.7 and went to east texas with no service but no problems! Thank you car vs driver for taking over and keeping this thread going! And of course bmp7777
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
Your missing something in sydtem/bin. Try pulling the file missing from cm rom. As to why it's missing could be a bad hardware folder, outdated vendor folder (?), missing commits in frameworks av or native or android build. At least from quick glance.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
Thanks for the response lol. At this point it could be any of those qcom is not well supported in pa's sources so I'm fighting like crazy. Successful compiles on my computer run 4 hrs so you can imagine my headaches.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
Well pull CM's and look at frameworks av/native for qcom specifics. Same for build. I wouldn't know anything more specific without trying to compile it.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
If you wish to keep your sanity I wouldn't suggest it lmfao.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] roger_n:
Call For Flashoholics Revolt ROM 4.3 "AOKP/CM10.1/PA"

Here you go flashoholics another All-In-One ROM AOKP/CM10.1/PA

Got bored today and decided to see if could build something new. This ROM has a little bit of everything "PIE, PA Settings, Ribbions, This, That, and the other Thing lol. Too much to mention check the link below and give it a spin.

See the Developers thread for features, screen-shots, and installation instructions. Install at your own risk it's running great on my Skyrocket.

http://xdaforums.com/showthread.php?t=2092960

Skyrocket DL: http://d-h.st/p90

Enjoy! :cool:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] jd1639:
Were do you find the time! Thanks
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] roger_n:
lol Got bored today long 4 day weekend for me I just added two screen-shots.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Care to take a stab at porting miui v5 it's being a real pain...
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] roger_n:
I've never tried miui, I just did a quick search and was surprised that miui does not provide access to source code that is a big NO NO in my book. Sorry I can't help I've never ported a rom I just build them from source. If you would like me to try another ROM (with source code) that hasn't been built for out device I can try?

Long Live OpenSource! :cool:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bps119:
Any major differences between this and toyes's version other than build date?

Sent from my Slimmed out Skyrocket
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
A wip is being posted as we speak. It boots but then there are FC's pre-setup. It's a kernel issue that I have already logcatted and is being addressed very soon. Evo4gNoob ported it and is posting now

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
I see you are using an s4. Is said wip for one of the us galaxy s2 variants?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
It is for the skyrocket. We are on 4.2.2 on the s4 and currently only the nexus has Miui on 4.2.2. It's a closed beta and sources won't be released until it comes out of the "testing" phase.

I also have the skyrocket and it was my primary device before this. I still lurk the Skyrocket forums from time to time :)

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Starymari:
I've heard lots of good things about Xylon but I don't know much about the coding, open source or not? Just figured I'd suggest it. Downloading your Revolt ROM now! Thanks!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] roger_n:
Hmm I didn't know this was already built for our device or I would of searched for something else lol. I did a search and found toyes build on xda as far as I can tell it's the same except I built using gcc 4.4.3 because the current CM kernel appears not to like being compiled with gcc 4.6 (reboots and lockups) which is the default. I briefly read through the thread other than that and all of the updates from CM as of today it's probably the same all the bugs that were originally reported have been fixed upstream Camera FC, Torch, etc...

---------- Post added at 09:13 PM ---------- Previous post was at 08:37 PM ----------

[MENTION=4804639]Starymari[/MENTION] as soon as get a chance I'll do a little research and try to to build if it hasn't been done already, and toyes doesn't beat me to it lol. I hope you enjoy the build. I'm usually strictly a hardcore CM user but I've been running this rom for the last couple of hours and I like it.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] toyes:
Hmm.. I did build xylon a couple months ago....
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] hatememarkz:
Hmm really I would love to c that ported to the Gs2

linaro cm10.1

uber 1.1

like a rokc ;) :thumbs up:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] roger_n:
Why don't you spin up a new updated build I see you have at least 2 willing testers?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] toyes:
I would but that was on my old computer so I don't have the code on my new system.... yet. I am syncing now but might take a bit to get it up and going again.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Starymari:
Yes, I would love to test! Great idea [MENTION=2982375]roger_n[/MENTION] :p
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] blwjr:
Same here would love to test also.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Can't wait to see this show up, I tried to port it myself (along with others on the Hercules forum) and the furthest I got was a boot in massive FCs.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Still working on it right now. Tried another modified boot.img and swapped out the updater script. Doing various things to troubleshoot and constantly pulling logcats. I'll let you guys know when progress is made

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ktempleton:
Another couple of interesting looking ROMs are jb sorcery and vanir
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Hey, CVD is the Captain! lol:good:

I'm calling this stable. Or as stable as slim has been since build 4.2. I f you wan to try it click below my sig. Build 5.8. There are a few starter apps in there too.

-supersu

-no frills OC app

-small voltage app

-titanium backup

-gpu oc

-improved touch sensitivity

-moretz kernel

-mod. slimbootanimation

-sdCard speed app
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] dakpluto:
Only problem with finding something new to build is just asking yourself, how many different combinations of "A little CM, a little AOKP, a little PA" can you have? These really are the top 3 now and everything else just feels like pulling what they want from the 3, toss in some light themeing, and slapping a name on it.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] chinthekng:
Lol ive always thought that its like an oligopoly in the rom market :laugh:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
No, no. The real problem is that you forgot SLIM! lol The perfect lightweight marriage of AOKP and CM.

CM-basic

AOKP-lag +features

PA-meh

Slim- perfect

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

I was wondering what else I could nose into..... :-/
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
Your opinion gave me cancer. PA has been innovating like crazy and I am offended. Also I didn't care for slim so perfect isn't possible as that would imply a one size fits all.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
Although I maintain slim for a few devices and like the rom to say PA meh is a insult. Great ideas and innovations from molasses. The rom per say isn't my cup of tea but it has great features. ;)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
I didn't know what I had to say carried so much weight! lol Not sure what lately means but I compiled PA about 2-3 months ago and 'meh' was my opinion and that was that. I then went back to see about getting Slim to build for SR.

See, no cancer. All OK.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
No offense lol
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Ok, guys, WHOA.

Just MY opinion. I am allowed to have it....GO EASY!

It doesn't mean the rom sucks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
You are in a public forum where we can have an opinion of your lack of tact about your opinion lol.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Try trolling a tut thread looking for something to flash...meh haha
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ktempleton:
But you See guys that's what I love about open source every one can find something they like
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
This is true I just don't broadcast negativity towards developers works. People sure but never devs.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
No more FC's at boot on miui v5. Keyboard is messed up and got black screen after setup, but was able to access notification bar and dev settings.

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
I think I read somewhere about the black screen. Think it said it had to do with a adding some shelld lines to the kernel and init.d. could be wrong tho.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
Agreed. Hmm, nah , I wouldn't even go that far. We've managed to keep this thread way, way nicer then that
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Hope that info helps....I read a lot on it but I cant seem to get it to work myself.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
I let my friend know and he says that it wasn't the cause, but rather an error he made in WebKit. If he can't get it to work then the info may come in handy. Never hurts to know more or have more trouble shooting measures

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Just trying to do what I can to get v5 off the ground. Been dying to use it. Just hoping it won't cause too many issues being flashed on the Hercules.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Thanks for the ideas. The sprint gs3 miui team is on it. Evo4gNoob was the first one to get miui v5 booting on the s3 and others he devs with are also helping out on the skyrocket build. Progress is being made

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Does he plan on being the device maintainer for miui on the att & tmob s2's?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
He isn't sure atm. Well see how things come along

Sent from my AT&T Galaxy S4 Running Slim Bean
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Just curious what version of v5 did he port?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Notorious:
3.5.17 its really hard to find a decent miui ROM to port from that matches this display. Currently porting from nexus s which I don't think is the best for v5 like it was on v4
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Man I know I shouldn't ask, but are you close to a release? Please forgive my impatience, I have been beating my head against a wall trying to port it so I'm a little antsy for a build. Sorry.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Notorious:
Honestly no idea. I still have to fix this WebKit issue that causes the launcher not to load. Also I don't own this phone and never have so its not so important to work on compared to my phone
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Thanks for the reply, I'd offer to test for you, and I can if you want but I can't do much more than logcat.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Somcom3X:
There are so many issues with git atm.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
I along with others would be most grateful if you could find some time to fix it and post the ROM. :D
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Notorious:
Project is dropped for now. 4.2.2 miui v5 is being released today so I'm spending all my time working in that for my phone
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
Can't fault you for working on your own device. Any chance you might be willing to give [MENTION=1983496]playingeetar247[/MENTION] some help getting v5 going on the Hercules?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ianhouser:
mka & brunch: no command found

Hey guys, this is my first build. Thanks for this thread, it's been helpful so far, but I'm getting an error because of the 'mka' command.

I'm building Slim 4.2.2 build 6.0 for a SGS2 Hercules, on Ubuntu 13.04. I issue the build command:

. build/envsetup.sh; lunch slim_hercules-userdebug && mka bacon

I then get:

including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/hercules/vendorsetup.sh
including vendor/slim/vendorsetup.sh
including sdk/bash_completion/adb.bash
Looking for dependencies

It then spits out a bunch of build info (this post is already long, so I'll leave it out), and then my error:

No command 'mka' found, did you mean:
Command 'm-a' from package 'module-assistant' (universe)
Command 'mkfa' from package 'julius' (multiverse)
Command 'moka' from package 'alliance' (universe)
mka: command not found

I followed this guide step by step & even redid everything to make sure I did it right.

I tried the "make" command and it works, since I read "mka" is just a supercharged version of make.

Any insights into what's going on?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] prbassplayer:
Don't use mka. Use make -j4 bacon. Use how many threads you want on your pc by changing j4 to whatever (j2, j4,j6 up too j16)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ianhouser:
How are you so helpful in so many threads? Geez man.

Building 6.0 now.

Thanks a million.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Notorious:
Any skyrocket users that are available for testing for most of the morning and afternoon please send me a PM. Must know how to logcat
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wantowan2:
It's 4.2.2 miui v5 I take it? Can you provide a few details? Are you looking for a PM contact or have a link?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] gregcapps:
He didn't get enough response from the skyrocket forum so now he's ported it for the Hercules. Yeah it's miui v5 but still 4.1.2.... For now :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] m4570d0n:
I'm so confused by this. As best I can tell, my computer no longer likes my phone after yesterday. When I plug it in I get a popup error stating "USB Device Not Recognized. The USB device attached to this computer has malfunctioned and Windows does not recognize it." In device manager, it shows up as unknown under Other devices and opening up the properties it states "Windows has stopped this device because it has reported problems. (Code 43)." I haven't touched anything with the drivers in months. I switched back over to my Linux partition and I can't get Eclipse/ADB to see my phone on here either. I thought perhaps it might be an issue with the removal of USB Mass Storage from the USB options menu in Settings, but it's been working fine until yesterday (or at most sometime this past weekend) and changing over to MTS didn't make a difference. The only thing I've done recently that I can think of is flash a new build of PAC-man that I built on 05/31-06/01. And of course, I've done all the usual things like trying different USB ports, different cables, etc. It still charges the phone, but that's it.

Any ideas?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ktempleton:
I've been hearing similar reports across several ROMs maybe something has changed in the base code that is causing it
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mtdew:
On Linux run lsusb I know some month or two ago the USB rules changed for me so I had to add a new line to 51android.rules or whatever it was.