[SOLVED] How to compile chromium using Alien's script ?
Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi !
I'm trying to build it on ARM, but I haven't found a way to remove the invocation of -msse2 -mfpmath=sse -mmmx -msse2 -mfpmath=sse -mmmx so the build obviously fails.
There is nothing in that slackbuild for those flags. Most likely its in your system flags. You can view them maybe
Code:
env
or
Code:
echo "$CFLAGS"
change CFLAGS to other you want to view, off the top of my head I can't remember all of them ( it looks like it is pulling in CRFLAGS). I am not at home to verify anything. Also I believe that they are set in /etc/profile, but I may be mistaken. You can set your own flags to use for while compiling chromium, or modify the slackbuild. Hopefully this is start in right direction, but I havent done too much with slackbuilds yet
Hi !
I'm trying to build it on ARM, but I haven't found a way to remove the invocation of -msse2 -mfpmath=sse -mmmx -msse2 -mfpmath=sse -mmmx so the build obviously fails.
At a minimum you should patch that build script. The following sets it for hard float.
If you are using soft float, change the CFLAGS to -O2 -march=armv5te
I don't know if Chromium would build on soft float but you could try!
Code:
root@platano:/tmp/build# diff -u chromium.SlackBuild.orig chromium.SlackBuild
--- chromium.SlackBuild.orig 2016-08-30 13:04:05.488717574 +0100
+++ chromium.SlackBuild 2016-08-30 13:04:40.138717590 +0100
@@ -364,8 +364,6 @@
if [ -z "$ARCH" ]; then
case "$MARCH" in
i?86) export ARCH=i486 ;;
- armv7hl) export ARCH=$MARCH ;;
- armv6hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$MARCH ;;
@@ -386,14 +384,7 @@
#DSSE="0"
DSSE="1"
;;
- armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
- SLKLDFLAGS=""; LIBDIRSUFFIX=""
- TARGETARCH="arm"
- DSSE="1"
- # Widevine not supported (no binary library available):
- USE_CDM=0
- ;;
- armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard"
+ arm) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
SLKLDFLAGS=""; LIBDIRSUFFIX=""
TARGETARCH="arm"
DSSE="1"
I started compilation on a odroid xu4, but this little piece of crap crash when pushed hard on CPU (exynos).
I plan to compile on a real ARM processor (OMAP5) in the next few days. I'll post here the result.
This one had 2G RAM and zero swap. I only added 740MB swap, I'll add more if needed.
That's something I like with ARM machines: no noise, no heat, low current consumption. I can let it compile with serenity :^) .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.