Android OS Forum banner
21 - 40 of 78 Posts

·
Registered
Joined
·
2 Posts
Thanks I couldn't figure out that last package I needed to get it to downgrade! Helped a bunch.

For anyone else having issues. You should be able to find these packages in your cache /var/cache/pacman/pkg

Here are mine:
http://dl.dropbox.co...6_64.pkg.tar.xz
http://dl.dropbox.co...6_64.pkg.tar.xz
http://dl.dropbox.co...6_64.pkg.tar.xz
http://dl.dropbox.co...6_64.pkg.tar.xz
Also, you may need to edit the package files in each package so pacman does not upgrade them everytime you do system update (pacman -Syu)
 

·
Android Apprentice
Joined
·
122 Posts
Does anybody know how to fix this compile error?

http://pastebin.com/8VeUSGjm

I've already rolled back the gcc-libs and multilibs talked about over the last few posts. That didn't fix my issues though. I'm guessing it's the jdk causing my issues. However, I don't know how to fix it. Openjdk6 (openjdk6-6.b24) gives that error as does the jdk6 b31 from AUR (https://aur.archlinu...es.php?ID=51907).

So right now I'm at a complete loss.
 

·
Android Apprentice
Joined
·
122 Posts
Not sure why this happens, but a search for " javax annotation nullable" lead to promising results :)

Sent from my HTC One S
Thanks for that. That led me to http://code.google.c...uava-libraries/

After doing a new compile after a make clobber I noticed that this jar is being called: guava_intermediates/classes-jarjar.jar. So something in my java install that must be screwed up or missing?

Also I updated my other post...I must have set my pastebin to expire after a day.
 

·
Android Beginner
Joined
·
3 Posts
I just thought I'd mention that Arch 64 builds CyanogenMod 9 without much trouble these days. The base install still defaults to python2, so all you have to do is symlink python2 -> python, but other than that there's nothing else.

CyanogenMod 7 needs one extra tweak as of this writing: remove the "-P" from the $preprocessor variable in external/webkit/WebCore/dom/make_names.pl.
 

·
? - ???
Joined
·
1,158 Posts
Thanks for that. That led me to http://code.google.c...uava-libraries/

After doing a new compile after a make clobber I noticed that this jar is being called: guava_intermediates/classes-jarjar.jar. So something in my java install that must be screwed up or missing?

Also I updated my other post...I must have set my pastebin to expire after a day.
Thought I subscribed to this. Yet I didn't.
I haven't fired up my virtualbox install I use for dev'n in awhile forgot the passwd I used. XD.
Minus the forgetfullness the reason I use vbox is I do not update it unless its necessary.
Over the weekend I'll see if I can help if you still have a problem.
Too busy sleeping or working till then.
Also need to digup my passwd xS.

Sent from my Galaxy Nexus using RootzWiki
 

·
Android Beginner
Joined
·
109 Posts
it would be nice if we could bring this topic back into the light and continue this discussion about compiling cm9 on arch!

So far this has helped quite a bit! I was having a bunch of issues then realized my mutli-lib repo was inactive & after using gcc-multilib i'm having much more luck.

Big thanks to everyone who's contributed so far, lets continue! Perhaps an update to the OP for cm9 times could help other users.
 

·
Noob Developer
Joined
·
568 Posts
Just wondering is anyone having this problem for "pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libus"?
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
error: target not found: lib32-libusb
 

·
? - ???
Joined
·
1,158 Posts
Just wondering is anyone having this problem for "pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libus"?
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
error: target not found: lib32-libusb
Pick thru this dev's rom-kitchen
http://rootzwiki.com...0s-rom-kitchen/

Or just use it to setup your build environment.
He has an option for Arch Linux build enviornment.
It works I used it in virtualbox to test.
When I have free time I'll pick thru and see what the work around it uses for forcing no Java checks and make a new write-up.

*Note*
Once you have a working environment do not update or flag no-updates for the things that shouldn't update.
To avoid future troubles.
This is why I use Arch64 in VirtualBox as my build environment and not a desktop I use daily and keep updated.

@masterchung7
Make sure your mirrorslist is up to date.

lib32-usb is now in AUR and is named lib32-libusb

[[email protected] ~]$ yaourt -Ss lib32-libusb
aur/lib32-libusb 1.0.9-1 [installed] (46)
Library to enable user space application programs to communicate with USB devices. (32-bit)

aur/lib32-libusb-compat 0.1.4-1 [installed] (28)
Library to enable user space application programs to communicate with USB devices (32 bit)

as is lib32-libusb-compat has been renamed in the AUR

Sent from my Galaxy Nexus using Tapatalk 2
 

·
? - ???
Joined
·
1,158 Posts
The kitchens environment build script
pretty much the same as my original post with the updated java version that works.

the section you want.
Code:
<br />
<br />
	if ( find /etc/arch-release &> /dev/null ); then<br />
		echo "You are running Arch Linux!"<br />
		echo "Installing packages needed, please enter your password"<br />
		sudo pacman -Sy abs base-devel<br />
		sudo pacman -S openjdk6 perl git gnupg flex bison gperf zip unzip sdl wxgtk \<br />
		squashfs-tools ncurses libpng zlib libusb libusb-compat readline<br />
<br />
		mkdir -p $LOCAL/../archbuilds<br />
<br />
		wget [URL=http://swordrune10.net/files/archlinux/make-3.81]http://swordrune10.net/files/archlinux/make-3.81[/URL].tar<br />
		tar xvf make-3.81.tar<br />
		cd make-3.8.1<br />
		makepkg -cfs PKGBUILD<br />
		sudo pacman -U make-3.81-*-x86_64.pkg.tar.xz<br />
<br />
		cd ..<br />
		wget [URL=http://swordrune10.net/files/archlinux/git-1.7.6]http://swordrune10.net/files/archlinux/git-1.7.6[/URL].tar<br />
		tar xvf git-1.7.6.tar<br />
		cd git-1.7.6<br />
		makepkg -cfs PKGBUILD<br />
		sudo pacman -U git-1.7.6-*-x86_64.pkg.tar.xz<br />
<br />
		cd ..<br />
		wget [URL=http://swordrune10.net/files/archlinux/perl-5.10.1]http://swordrune10.net/files/archlinux/perl-5.10.1[/URL].tar<br />
		tar xvf perl-5.10.1.tar<br />
		cd perl-5.10.1<br />
		makepkg -cfs PKGBUILD<br />
		sudo pacman -U perl-5.10.1-*-x86_64.pkg.tar.xz<br />
<br />
		cd ..<br />
		[URL=https://aur.archlinux.org/packages/package-query-git/package-query-git.tar]https://aur.archlinux.org/packages/package-query-git/package-query-git.tar[/URL].gz<br />
		tar xvf package-query-git.tar.gz<br />
		cd package-query-git<br />
		makepkg -cfs PKGBUILD<br />
		sudo pacman -U package-query-git-*-x86_64.pkg.tar.xz<br />
<br />
		cd ..<br />
		 [URL=https://aur.archlinux.org/packages/yaourt-git/yaourt-git.tar]https://aur.archlinux.org/packages/yaourt-git/yaourt-git.tar[/URL].gz<br />
		tar xvf yaourt-git.tar.gz<br />
		cd yaourt-git<br />
		makepkg -cfs PKGBUILD<br />
		sudo pacman -U package-query-git-*-x86_64.pkg.tar.xz<br />
<br />
		sudo yaourt -Sy esdl pngcrush schedtool repo<br />
<br />
		sudo sed -i 's/#Include = \/etc\/pacman.d\/mirrorlist/Include = \/etc\/pacman.d\/mirrorlist/g' /etc/pacman.conf<br />
<br />
		sudo pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb \<br />
		lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib<br />
<br />
		if ( python -V | grep -q "Python 3"); then<br />
			sudo mv /usr/bin/python /usr/bin/python.bak<br />
			sudo ln -s /usr/bin/python2 /usr/bin/python<br />
		fi<br />
<br />
		rm -rf $LOCAL/../archbuilds<br />
<br />
		echo "Installing java will take a while, to do this legally the Kitchen app will use exerpts from flexion.org oab-java script"<br />
		echo "Press Enter to continue"<br />
		read -p "Press Enter to continue: " done<br />
		# Exerpts from the much smarter (as u can see from the code) flexion.org oab-java script<br />
		# slightly edited to remove unneeded code<br />
<br />
		wget [URL=https://github.com/rraptorr/sun-java6/raw/master/debian/changelog]https://github.com/rraptorr/sun-java6/raw/master/debian/changelog[/URL] -O $LOCAL/../archbuilds/changelog.tmp<br />
<br />
		# Cet the current Debian package version<br />
		DEB_VERSION=`head -n1 $LOCAL/../archbuilds/changelog.tmp | cut -d'(' -f2 | cut -d')' -f1 | cut -d'~' -f1`<br />
<br />
		# Determine the currently supported Java version and update<br />
		JAVA_VER=`echo ${DEB_VERSION} | cut -d'.' -f1`<br />
		JAVA_UPD=`echo ${DEB_VERSION} | cut -d'.' -f2 | cut -d'-' -f1`<br />
<br />
		# Try and dynamic find the JDK downloads<br />
		echo " [x] Getting Java SE download page"<br />
		wget "http://www.oracle.com/technetwork/java/javase/downloads/index.html" -O /tmp/oab-index.html<br />
<br />
		# See if the Java version is on the download frontpage, otherwise look for it in<br />
		# the previous releases page.<br />
		DOWNLOAD_INDEX=`grep -P -o "/technetwork/java/javase/downloads/jdk-${JAVA_VER}u${JAVA_UPD}-downloads-\d+\.html" /tmp/oab-index.html | uniq`<br />
<br />
		if [ -n "${DOWNLOAD_INDEX}" ]; then<br />
			echo " [x] Getting current release download page "<br />
			wget [URL=http://www.oracle]http://www.oracle[/URL].com/${DOWNLOAD_INDEX} -O /tmp/oab-download.html<br />
		else<br />
			echo " [x] Getting previous releases download page "<br />
			wget [URL=http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html]http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html[/URL] -O /tmp/oab-download.html<br />
		fi<br />
<br />
		for JAVA_BIN in jdk-${JAVA_VER}u${JAVA_UPD}-linux-x64.bin<br />
		do<br />
			# Get the download URL and size<br />
			DOWNLOAD_URL=`grep ${JAVA_BIN} /tmp/oab-download.html | cut -d'{' -f2 | cut -d',' -f3 | cut -d'"' -f4`<br />
			DOWNLOAD_SIZE=`grep ${JAVA_BIN} /tmp/oab-download.html | cut -d'{' -f2 | cut -d',' -f2 | cut -d':' -f2 | sed 's/"//g'`<br />
			# Cookies required for download<br />
			COOKIES="oraclelicensejdk-${JAVA_VER}u${JAVA_UPD}-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"<br />
<br />
			echo " [x] Downloading ${JAVA_BIN} : ${DOWNLOAD_SIZE} "<br />
			wget --no-check-certificate --header="Cookie: ${COOKIES}" -c "${DOWNLOAD_URL}" -O $LOCAL/../archbuilds/${JAVA_BIN}<br />
<br />
		done<br />
<br />
		chmod +x $LOCAL/../archbuilds/${JAVA_BIN}<br />
<br />
		rm -rf $LOCAL/../archbuilds<br />
		sudo mv ${JAVA_BIN} /opt<br />
<br />
		sudo cd /opt<br />
		sudo ./${JAVA_BIN}<br />
		sudo rm ${JAVA_BIN}<br />
<br />
		cd jdk*/bin<br />
		jdk=$( pwd )<br />
<br />
		cd ../jre/bin<br />
		jre=$( pwd )<br />
<br />
		sed -i -e "/PATH=/ a \<br />
PATH="\$PATH:$jdk:$jre"" /etc/profile<br />
<br />
		echo ""<br />
		echo "Finished!"<br />
		export envir=true<br />
		read -p "Press Enter to continue: " done<br />
	fi<br />
fi<br />
 

·
Noob Developer
Joined
·
568 Posts
@masterchung7
Make sure your mirrorslist is up to date.

lib32-usb is now in AUR and is named lib32-libusb

[[email protected] ~]$ yaourt -Ss lib32-libusb
aur/lib32-libusb 1.0.9-1 [installed] (46)
Library to enable user space application programs to communicate with USB devices. (32-bit)

aur/lib32-libusb-compat 0.1.4-1 [installed] (28)
Library to enable user space application programs to communicate with USB devices (32 bit)

as is lib32-libusb-compat has been renamed in the AUR

Sent from my Galaxy Nexus using Tapatalk 2
Thanks
@MickereDD Are you saying that the script sets up the build environment for you? Cuz then holy....
Sent from my DROIDX using RootzWiki
 

·
? - ???
Joined
·
1,158 Posts
Thanks
@MickereDD Are you saying that the script sets up the build environment for you? Cuz then holy....
Sent from my DROIDX using RootzWiki
Yes it will do it for you.
Grab it and let and give it a go.
He has a few repo's in it also. Aosp+busy&rooted, aokp, cm9, gummy, straight stock and something else.

Let us know if it works out for you.

I still have a problem with Java but think its from me. I installed several versions and had PATH= in different files. Global, a user and a chrooted user.
I will prolly scrap that vdi.disk and start over.
He scripted out the walklthru and added search and download of the latest or known working Java from oracle

Sent from my Galaxy Nexus using Tapatalk 2
 

·
? - ???
Joined
·
1,158 Posts
What I pasted in the code tags just above your comment is the arch environment setup.
I yanked it to share until I get around to a rewrite.
That dev doesn't use Arch btw but he will help and make changes needed if asked.

Sent from my Galaxy Nexus using Tapatalk 2
 

·
? - ???
Joined
·
1,158 Posts
I've started picking thru Arch's package repo searching for everything needed to get us on gcc-4.4.3
Not sure when android plans to upgrade gcc from 4.4, still it will just be going to 4.6
I'll grab that shit as well I guess for later.

When/If I can round it all up I'll setup a pkg-repo we can add to pacman.conf or /usr/local/etc/pacman.d/my-mirrorlist is what I use.

Will also hunt down the Java pkgbuild if its not been purged

Sent from my Galaxy Nexus using Tapatalk 2
 

·
Android Beginner
Joined
·
109 Posts
I've started picking thru Arch's package repo searching for everything needed to get us on gcc-4.4.3
Not sure when android plans to upgrade gcc from 4.4, still it will just be going to 4.6
I'll grab that shit as well I guess for later.

When/If I can round it all up I'll setup a pkg-repo we can add to pacman.conf or /usr/local/etc/pacman.d/my-mirrorlist is what I use.

Will also hunt down the Java pkgbuild if its not been purged

Sent from my Galaxy Nexus using Tapatalk 2
Thanks dude, i too haven't given up trying to compile without a script. Look forward to your findings
 

·
Noob Developer
Joined
·
568 Posts
Well, this is my error output from trying to build aokp for toro after running the script, not sure if the error is my fault though.

host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
host C++: libhost <= build/libs/host/pseudolocalize.cpp
In file included from /usr/include/features.h:382:0,
from /usr/include/stdio.h:28,
from system/core/mkbootimg/mkbootimg.c:18:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/features.h:382:0,
from /usr/include/inttypes.h:26,
from system/core/include/mincrypt/rsa.h:31,
from system/core/libmincrypt/rsa.c:28:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1
In file included from /usr/include/features.h:382:0,
from /usr/include/inttypes.h:26,
from system/core/include/mincrypt/sha.h:31,
from system/core/libmincrypt/sha.c:28:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
In file included from /usr/include/features.h:382:0,
from /usr/include/stdlib.h:25,
from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/sha.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
In file included from /usr/include/features.h:382:0,
from /usr/include/sys/stat.h:27,
from build/libs/host/include/host/CopyFile.h:5,
from build/libs/host/CopyFile.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
In file included from /usr/include/features.h:382:0,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/x86_64-unknown-linux-gnu/./bits/os_defines.h:40,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/x86_64-unknown-linux-gnu/./bits/c++config.h:414,
from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/string:40,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1

Edit updated with downgraded make. Did a google search and someone posted that glibc-devel was the cause.
 

·
Android Beginner
Joined
·
109 Posts
Perhaps your sync didn't go well? You should have this file, can you confirm if it's there or not?

[background=rgb(245, 245, 245)]/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: No such file or directory[/background]
 
21 - 40 of 78 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top