LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 08-05-2017, 07:20 AM   #1
njathan
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
Chromium compilation guide for slackware-arm?


Hi,

I am trying to compile chromium browser on slackware-arm (current) on my raspberry pi 3 using sbopkg. However i am getting an error.. see below. The only dependency (ninja) is already installed.. and i confirmed no further dependencies by ninja:

Code:
chromium-53.0.2785.143/chromeos/third_party/android_bionic_libc/kernel/uapi/linux/binder.h
chromium-53.0.2785.143/chromeos/third_party/android_bionic_libc/README.chromium
chmod: cannot operate on dangling symlink './third_party/mesa/src/src/gallium/state_trackers/d3d1x/w32api'
chmod: cannot operate on dangling symlink './third_party/libxslt/config.guess'
chmod: cannot operate on dangling symlink './third_party/libxslt/COPYING'
chmod: cannot operate on dangling symlink './third_party/libxslt/compile'
chmod: cannot operate on dangling symlink './third_party/libxslt/depcomp'
chmod: cannot operate on dangling symlink './third_party/libxslt/config.sub'
chmod: cannot operate on dangling symlink './third_party/libxslt/install-sh'
chmod: cannot operate on dangling symlink './third_party/libxslt/missing'
chmod: cannot operate on dangling symlink './third_party/skia/tools/gyp'
chmod: cannot operate on dangling symlink './third_party/webrtc/examples/objc/.clang-format'
chmod: cannot operate on dangling symlink './third_party/webrtc/tools/e2e_quality/audio/perf'
patching file third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
Updating projects from gyp files...
ninja: Entering directory `out/Release'
[1/20469] CXX obj/v8/src/base/v8_libbase.accounting-allocator.o
...
...
...<snip>...
...
...
[6/20469] CXX obj/v8/src/base/v8_libbase.bits.o
FAILED: obj/v8/src/base/v8_libbase.bits.o
c++ -MMD -MF obj/v8/src/base/v8_libbase.bits.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=274142-1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_NOTIFICATIONS -DUSE_UDEV -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DV8_TARGET_ARCH_IA32 -DV8_I18N_SUPPORT -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../v8 -Igen -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wno-extra -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -msse2 -mfpmath=sse -mmmx -msse2 -mfpmath=sse -mmmx -m32 -m32 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -Wno-unused-local-typedefs -fdata-sections -ffunction-sections -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -std=gnu++11 -Wno-narrowing  -c ../../v8/src/base/bits.cc -o obj/v8/src/base/v8_libbase.bits.o
c++: error: unrecognized command line option ‘-msse2’
c++: error: unrecognized command line option ‘-mfpmath=sse’
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse2’
c++: error: unrecognized command line option ‘-mfpmath=sse’
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-m32’
c++: error: unrecognized command line option ‘-m32’
ninja: build stopped: subcommand failed.

chromium:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
Also while referring to this blog post, Eric says i got to key in api keys for full functionality...

Is there any guideline on how to compile chromium on slackware-arm?
 
Old 08-05-2017, 12:56 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 533

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by njathan View Post
Hi,


Code:
c++: error: unrecognized command line option ‘-msse2’
c++: error: unrecognized command line option ‘-mfpmath=sse’
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse2’
c++: error: unrecognized command line option ‘-mfpmath=sse’
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-m32’
c++: error: unrecognized command line option ‘-m32’
The build script is buggy - it detects the ARM architecture, but for the toolchain flags it defaults to assuming ia32 architecture.

Try changing the toolchain flag block to:
Code:
if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  SLKLDFLAGS=""
  LIBDIRSUFFIX=""
  TARGETARCH="ia32"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  SLKLDFLAGS=""
  LIBDIRSUFFIX=""
  TARGETARCH="ia32"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  SLKLDFLAGS="-L/usr/lib64"
  LIBDIRSUFFIX="64"
  TARGETARCH="x64"
elif [ "$ARCH" = "arm" ]; then
  SLKCFLAGS="-O2"
  SLKLDFLAGS=""
  LIBDIRSUFFIX=""
  TARGETARCH="arm"
else
  SLKCFLAGS="-O2"
  SLKLDFLAGS=""
  LIBDIRSUFFIX=""
  TARGETARCH="ia32" 
fi
If that doesn't work, you'll need to look what other "arm" targets there are in the source -- there might be an "armv7" one, for example.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The Slackware ARM Question of the day: why xf86-video-s3-0.6.5-arm-4.tgz ?!? Darth Vader Slackware 2 09-15-2013 09:23 PM
[GUIDE] Keeping Chromium up to date klickback Slackware 3 10-07-2011 04:27 PM
Chromium compilation woes Riley Linux - General 1 02-16-2003 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration