Skip to content
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

GCC 6.1.0 - curl: (35) SSL certificate problem - Failed to download resource "gcc--patch" #4136

Closed
matkara opened this issue Aug 22, 2016 · 3 comments

Comments

@matkara
Copy link

matkara commented Aug 22, 2016

Hello,

I have issues building gcc 6.1.0 without the multiline support to activate the OpenMP support as suggested when installing gcc 6.1.0 without this additional installation option.
Here it what I get:

[matkara@Tooslocal]$ sudo brew reinstall gcc --without-multilib
==> Reinstalling gcc with --without-multilib
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-6.1.0/gcc-6.1.0.tar.bz2
Already downloaded: /Users/matkara/Library/Caches/Homebrew/gcc-6.1.0.tar.bz2
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/c963247c6b/gcc/gcc-6.1.0_infinite_memory_snacking.patch

curl: (35) SSL certificate problem: Couldn't understand the server certificate format
Error: Failed to download resource "gcc--patch"
Download failed: https://raw.githubusercontent.com/Homebrew/formula-patches/c963247c6b/gcc/gcc-6.1.0_infinite_memory_snacking.patch

Does anyone encounter the same issue?
It is only a download/certificate issue, it is probably trivial to fix. I tried to follow recommendations from here: meteor/meteor#3770
But it has no effect.

The Gist-log:
https://gist.github.com/e6dd7f3cc88d9b2e19122a9382cbc60a

@MikeMcQuaid
Copy link
Member

Sorry but you have not followed the requested steps on the Troubleshooting page

Please follow (all of) these steps and post the information here so we can help you with your problem.

Thanks!

@MikeMcQuaid
Copy link
Member

Closing in favour of Homebrew/brew#796 which describes the problem.

@jamver
Copy link

jamver commented Sep 14, 2016

For anybody looking for a possible resolution to this issue...

I encountered this issue specifically after updating to macOS Sierra (10.12), with resolution coming from the workaround from this legacy-homebrew ticket:

cd ~
sudo wget http://curl.haxx.se/ca/cacert.pem
export CURL_CA_BUNDLE=~/cacert.pem

FWIW, this solved most, but not all issues. The others I resolved by manually downloading the packages using wget and placing them in the Homebrew Cache Dir.

I'd be interested to know the correct fix. e.g. Update system ca bundle? Apple patch required for system bundle?

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants