New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support FreeBSD #155

Merged
merged 1 commit into from Dec 18, 2017

Conversation

Projects
None yet
1 participant
@MaskRay
Member

MaskRay commented Dec 17, 2017

This commit fixes issue on cquery's side. Its dependencies loguru and
sparsepp should also be ported to FreeBSD:

With local hacks on loguru and sparsepp, it works on my FreeBSD 11.1

@MaskRay

This comment has been minimized.

Show comment
Hide comment
@MaskRay

MaskRay Dec 17, 2017

Member

We should rename src/platform_linux.cc to src/platform_posix.cc later

Renamed.

Member

MaskRay commented Dec 17, 2017

We should rename src/platform_linux.cc to src/platform_posix.cc later

Renamed.

@MaskRay

This comment has been minimized.

Show comment
Hide comment
@MaskRay

MaskRay Dec 18, 2017

Member

Let's switch to https://releases.llvm.org/ (HTTP -> HTTPS) later on.

Some Xcode travis config cannot download bundled clang+llvm through HTTPS. https://travis-ci.org/jacobdufault/cquery/jobs/317854793

Downloading tarball

   destination: build/clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz

   source:      https://releases.llvm.org/4.0.0/clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz

Traceback (most recent call last):

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 118, in waf_entry_point

    run_commands()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 178, in run_commands

    ctx=run_command(cmd_name)

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 169, in run_command

    ctx.execute()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Configure.py", line 85, in execute

    super(ConfigurationContext,self).execute()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Context.py", line 84, in execute

    self.recurse([os.path.dirname(g_module.root_path)])

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Context.py", line 125, in recurse

    user_function(self)

  File "/Users/travis/build/jacobdufault/cquery/wscript", line 200, in configure

    download_and_extract(CLANG_DIRECTORY, CLANG_TARBALL_URL, CLANG_TARBALL_EXT)

  File "/Users/travis/build/jacobdufault/cquery/wscript", line 98, in download_and_extract

    response = urlopen(url)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen

    return opener.open(url, data, timeout)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open

    response = self._open(req, data)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open

    '_open', req)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain

    result = func(*args)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open

    context=self._context)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open

    raise URLError(err)

URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>
Member

MaskRay commented Dec 18, 2017

Let's switch to https://releases.llvm.org/ (HTTP -> HTTPS) later on.

Some Xcode travis config cannot download bundled clang+llvm through HTTPS. https://travis-ci.org/jacobdufault/cquery/jobs/317854793

Downloading tarball

   destination: build/clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz

   source:      https://releases.llvm.org/4.0.0/clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz

Traceback (most recent call last):

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 118, in waf_entry_point

    run_commands()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 178, in run_commands

    ctx=run_command(cmd_name)

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Scripting.py", line 169, in run_command

    ctx.execute()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Configure.py", line 85, in execute

    super(ConfigurationContext,self).execute()

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Context.py", line 84, in execute

    self.recurse([os.path.dirname(g_module.root_path)])

  File "/Users/travis/build/jacobdufault/cquery/.waf-2.0.2-b8fa647d13364cbe0c1c8ec06042b54d/waflib/Context.py", line 125, in recurse

    user_function(self)

  File "/Users/travis/build/jacobdufault/cquery/wscript", line 200, in configure

    download_and_extract(CLANG_DIRECTORY, CLANG_TARBALL_URL, CLANG_TARBALL_EXT)

  File "/Users/travis/build/jacobdufault/cquery/wscript", line 98, in download_and_extract

    response = urlopen(url)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen

    return opener.open(url, data, timeout)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open

    response = self._open(req, data)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open

    '_open', req)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain

    result = func(*args)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open

    context=self._context)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open

    raise URLError(err)

URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>
Support FreeBSD
This commit fixes issue on cquery's side. Its dependencies loguru and
sparsepp should also be ported to FreeBSD:

* emilk/loguru#46
* sysinfo(2) called by sparsepp https://github.com/greg7mdp/sparsepp/blob/master/sparsepp/spp_memory.h#L32

@MaskRay MaskRay merged commit 435ec77 into cquery-project:master Dec 18, 2017

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details

@MaskRay MaskRay deleted the MaskRay:freebsd branch Dec 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment