LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Chromium compilation guide for slackware-arm? (https://www.linuxquestions.org/questions/slackware-arm-108/chromium-compilation-guide-for-slackware-arm-4175611364/)

njathan 08-05-2017 07:20 AM

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?

drmozes 08-05-2017 12:56 PM

Quote:

Originally Posted by njathan (Post 5744753)
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.


All times are GMT -5. The time now is 11:37 PM.