Error while building Chromium Browser for ChromeOS

385 views
Skip to first unread message

Patel, Chintan M

unread,
Feb 14, 2019, 1:37:17 PM2/14/19
to Chromium-dev

Hello,

 

I am building chromium browser first time and following this https://chromium.googlesource.com/chromium/src/+/master/docs/chromeos_build_instructions.md 

 

I am see this error when start compiling with autoninja:

 

(sdk amd64-generic R74-11668.0.0-rc1) cmpatel:src: ((HEAD detached from e6da498bd593))autoninja -C out_${SDK_BOARD}/Release chrome chrome_sandbox nacl_helper

/home/cmpatel/depot_tools/ninja -C out_amd64-generic/Release chrome chrome_sandbox nacl_helper

ninja: Entering directory `out_amd64-generic/Release'

[52/44759] ACTION //mojo/public/js:bindings_lite(//build/toolchain/cros:target)

FAILED: gen/mojo/public/js/mojo_bindings_lite.js

python ../../third_party/closure_compiler/js_binary.py --compiler ../../third_party/closure_compiler/compiler/compiler.jar --output gen/mojo/public/js/mojo_bindings_lite.js --deps gen/mojo/public/js/bindings_lite_sources.js_library --sources ../../mojo/public/js/bindings_lite.js --flags jscomp_error=accessControls jscomp_error=ambiguousFunctionDecl jscomp_error=checkTypes jscomp_error=checkVars jscomp_error=constantProperty jscomp_error=deprecated jscomp_error=externsValidation jscomp_error=globalThis jscomp_error=invalidCasts jscomp_error=missingProperties jscomp_error=missingReturn jscomp_error=nonStandardJsDocs jscomp_error=suspiciousCode jscomp_error=undefinedNames jscomp_error=undefinedVars jscomp_error=unknownDefines jscomp_error=uselessCode jscomp_error=visibility compilation_level=ADVANCED_OPTIMIZATIONS language_in=ECMASCRIPT_2017 language_out=ECMASCRIPT5_STRICT generate_exports --externs ../../third_party/closure_compiler/externs/chrome.js ../../third_party/closure_compiler/externs/polymer-1.0.js ../../third_party/closure_compiler/externs/mojo_core.js ../../third_party/closure_compiler/externs/pending.js

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 52.0

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:808)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:64)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:430)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:323)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:363)

        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

 

[141/44759] CXX obj/skia/skia_core_and_effects/SkArithmeticImageFilter.o

ninja: build stopped: subcommand failed.

Traceback (most recent call last):

  File "/home/cmpatel/depot_tools/ninjalog_uploader_wrapper.py", line 118, in <module>

    sys.exit(main())

  File "/home/cmpatel/depot_tools/ninjalog_uploader_wrapper.py", line 76, in main

    config = LoadConfig()

  File "/home/cmpatel/depot_tools/ninjalog_uploader_wrapper.py", line 31, in LoadConfig

    'chromium-build-stats.appspot.com'),

  File "/home/cmpatel/depot_tools/ninjalog_uploader.py", line 45, in IsGoogler

    _, content = h.request('https://'+server+'/should-upload', 'GET')

  File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1694, in request

    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)

  File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1434, in _request

    (response, content) = self._conn_request(conn, request_uri, method, body, headers)

  File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1354, in _conn_request

    conn.connect()

  File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1089, in connect

    sock.setproxy(proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, proxy_pass, proxy_headers)

TypeError: setproxy() takes at most 7 arguments (8 given)

 

 

Its complaining about to things here:

1.     Unsupported major.minor version 52.0

2.     TypeError: setproxy() takes at most 7 arguments (8 given)

 

Not sure if both this errors are related, Any idea what could be wrong?

 

Thanks,

Chintan

 

 

Thanks,

Chintan Patel

 

Takuto Ikuta

unread,
Feb 14, 2019, 6:22:35 PM2/14/19
to chintan...@intel.com, Chromium-dev
This error is owned by me.
I'm not sure why httplib2 failed to import its socks module.

But you won't see the error if you left ninjalog.cfg in depot_tools with following content.
`{"is-googler": false, "countdown": 0, "version": 2, "opt-in": false}`
 

 

Its complaining about to things here:

1.     Unsupported major.minor version 52.0

2.     TypeError: setproxy() takes at most 7 arguments (8 given)

 

Not sure if both this errors are related, Any idea what could be wrong?

 

Thanks,

Chintan

 

 

Thanks,

Chintan Patel

 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/074180B186AC2945B61C466FE6C478306A4E1089%40ORSMSX103.amr.corp.intel.com.

Patel, Chintan M

unread,
Feb 14, 2019, 6:46:35 PM2/14/19
to Takuto Ikuta, Chromium-dev

Thank you it worked!

Raphael Kubo da Costa

unread,
Feb 15, 2019, 6:56:14 AM2/15/19
to Takuto Ikuta, chintan...@intel.com, Chromium-dev
Takuto Ikuta <tik...@chromium.org> writes:

> On Fri, Feb 15, 2019 at 3:36 AM Patel, Chintan M <chintan...@intel.com> wrote:
[...]
>   File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1694, in request
>     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
>   File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1434, in _request
>     (response, content) = self._conn_request(conn, request_uri, method, body, headers)
>   File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1354, in _conn_request
>     conn.connect()
>   File "/home/cmpatel/depot_tools/third_party/httplib2/__init__.py", line 1089, in connect
>     sock.setproxy(proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, proxy_pass, proxy_headers)
> TypeError: setproxy() takes at most 7 arguments (8 given)
>
> This error is owned by me.
> I'm not sure why httplib2 failed to import its socks module.
> https://chromium.googlesource.com/chromium/tools/depot_tools/+/refs/heads/master/third_party/httplib2/__init__.py#1089
> https://chromium.googlesource.com/chromium/tools/depot_tools/+/refs/heads/master/third_party/httplib2/socks.py#180

https://bugs.chromium.org/p/chromium/issues/detail?id=891505 seems to
be related. I'm guessing in both cases people are running Ubuntu with an
older system-wide httplib2 installed that does not include

https://github.com/httplib2/httplib2/commit/5ccd260911e2db802fa97498ae92558fac8c8057

which would be all LTS versions at the moment. Perhaps httplib2 in
depot_tools ends up importing the |socks| module from the system
httplib2?
Reply all
Reply to author
Forward
0 new messages