Source: chromium-browser
Version: 50.0.2661.75
Severity: normal

Some of the __NR_ syscall numbers, are no longer available, i.e. open and 
access.
The idea is to use openat and accessat instead.

Adding

-D__ARCH_WANT_SYSCALL_NO_AT

or #define __ARCH_WANT_SYSCALL_NO_AT 1

in the linux_sanbox.cc

solves this compilation error:


make[1]: Entering directory '/home/pine64user/chromium-browser-50.0.2661.75'
ninja -j4 -C out/Release chrome chrome_sandbox chromedriver
ninja: Entering directory `out/Release'
[7/5175] CXX obj/mojo/shell/runner/host/mojo_runner_host_lib.linux_sandbox.o
FAILED: c++ -MMD -MF 
obj/mojo/shell/runner/host/mojo_runner_host_lib.linux_sandbox.o.d 
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC 
-DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=261368-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_CONFIGURATION_POLICY 
-DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -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_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 
-DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 
-DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_U
 SE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD 
-DSAFE_BROWSING_DB_LOCAL -DMOJO_USE_SYSTEM_IMPL -DU_USING_ICU_NAMESPACE=0 
-DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 
-DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DNDEBUG -DNVALGRIND 
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../.. 
-I../../third_party/icu/source/common -I../../third_party/icu/source/i18n 
-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 -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -O2 
-fno-ident -fdata-sections -ffunction-sections -funwind-tables -Wdate-time 
-D_FORTIFY_SOURCE=2 -fuse-ld=gold -fuse-ld=gold -fno-exceptions -fno-rtti 
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated 
-std=gnu++11 -Wno-narrowing  -c ../../mojo/shell/runner/host/linux_sandbox.cc 
-o obj/mojo/shell/runner/host/m
 ojo_runner_host_lib.linux_sandbox.o
../../mojo/shell/runner/host/linux_sandbox.cc: In function ‘intptr_t 
mojo::shell::{anonymous}::SandboxSIGSYSHandler(const 
sandbox::arch_seccomp_data&, void*)’:
../../mojo/shell/runner/host/linux_sandbox.cc:43:10: error: ‘__NR_access’ was 
not declared in this scope
     case __NR_access:
          ^
../../mojo/shell/runner/host/linux_sandbox.cc:46:10: error: ‘__NR_open’ was not 
declared in this scope
     case __NR_open:
          ^
../../mojo/shell/runner/host/linux_sandbox.cc: In member function ‘virtual 
sandbox::bpf_dsl::ResultExpr 
mojo::shell::{anonymous}::SandboxPolicy::EvaluateSyscall(int) const’:
../../mojo/shell/runner/host/linux_sandbox.cc:81:12: error: ‘__NR_access’ was 
not declared in this scope
       case __NR_access:
            ^
../../mojo/shell/runner/host/linux_sandbox.cc:82:12: error: ‘__NR_open’ was not 
declared in this scope
       case __NR_open:
            ^
[7/5175] CXX obj/content/public/common/content_common.common_param_traits.o
ninja: build stopped: subcommand failed.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 3.10.65-5-pine64-longsleep (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to