Error: command 'gcc' failed with exit status 1


#1

All worked fine until today when I have pulled update from git repo.

This is the error msg.:

/usr/bin/ld: BFD (GNU Binutils for Debian) 2.22 internal error, aborting at ../../bfd/reloc.c line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

hash@vps:~/git/letsencrypt$ uname -a; cat /etc/debian_version; dpkg -l | grep base-files
Linux vps 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 GNU/Linux
7.9
ii base-files 7.1wheezy9 amd64 Debian base system miscellaneous files

hash@vps:~/git/letsencrypt$ python --version
Python 2.7.3

hash@vps:~/git/letsencrypt$ cat /proc/meminfo
MemTotal: 4194304 kB
MemFree: 3904540 kB
Cached: 148108 kB
Buffers: 0 kB
Active: 171180 kB
Inactive: 39928 kB
Active(anon): 93360 kB
Inactive(anon): 5040 kB
Active(file): 77820 kB
Inactive(file): 34888 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 98400 kB
Shmem: 35400 kB
Slab: 78632 kB
SReclaimable: 70680 kB
SUnreclaim: 7952 kB

hash@vps:~/git/letsencrypt$ free
total used free shared buffers cached
Mem: 4194304 289788 3904516 0 0 148108
-/+ buffers/cache: 141680 4052624
Swap: 0 0 0

According to this post
hxxxs://community.letsencrypt.org/t/failed-with-tmp-pip-build-nisezn-cryptography/2957/3
I have deleted the .local/shared/letsencrypt directories and then run ./letsencrypt-auto -v -h with output below:

hash@vps:~/git/letsencrypt$ ./letsencrypt-auto -v -h
Bootstrapping dependencies for Debian-based OSes…
Hit hxxx://ftp.cz.debian.org wheezy Release.gpg
Hit hxxx://ftp.cz.debian.org wheezy-updates Release.gpg
Hit hxxx://ftp.cz.debian.org wheezy Release
Hit hxxx://ftp.cz.debian.org wheezy-updates Release
Hit hxxx://ftp.cz.debian.org wheezy/main Sources
Hit hxxx://ftp.cz.debian.org wheezy/main amd64 Packages
Hit hxxx://ftp.cz.debian.org wheezy/main i386 Packages
Hit hxxx://ftp.cz.debian.org wheezy/main Translation-en
Hit hxxx://ftp.cz.debian.org wheezy-updates/main Sources
Hit hxxx://ftp.cz.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit hxxx://ftp.cz.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit hxxx://ftp.cz.debian.org wheezy-updates/main Translation-en
Hit hxxx://security.debian.org wheezy/updates Release.gpg
Hit hxxx://security.debian.org wheezy/updates Release
Hit hxxx://security.debian.org wheezy/updates/main Sources
Hit hxxx://security.debian.org wheezy/updates/main amd64 Packages
Hit hxxx://packages.prosody.im wheezy Release.gpg
Hit hxxx://security.debian.org wheezy/updates/main i386 Packages
Hit hxxx://security.debian.org wheezy/updates/main Translation-en
Hit hxxx://packages.prosody.im wheezy Release
Hit hxxx://packages.prosody.im wheezy/main amd64 Packages
Hit hxxx://packages.prosody.im wheezy/main i386 Packages
Hit hxxx://nginx.org wheezy Release.gpg
Ign hxxx://packages.prosody.im wheezy/main Translation-en_GB
Ign hxxx://packages.prosody.im wheezy/main Translation-en
Hit hxxx://nginx.org wheezy Release
Hit hxxx://nginx.org wheezy/nginx Sources
Get:1 hxxx://hxxx.debian.net wheezy-backports Release.gpg [1,554 B]
Get:2 hxxx://hxxx.debian.net wheezy-backports Release [161 kB]
Get:3 hxxx://hxxx.debian.net wheezy-backports/main amd64 Packages/DiffIndex [4,654 B]
Hit hxxx://nginx.org wheezy/nginx amd64 Packages
Get:4 hxxx://hxxx.debian.net wheezy-backports/main i386 Packages/DiffIndex [6,250 B]
Get:5 hxxx://hxxx.debian.net wheezy-backports/main Translation-en/DiffIndex [1,504 B]
Hit hxxx://nginx.org wheezy/nginx i386 Packages
Ign hxxx://nginx.org wheezy/nginx Translation-en_GB
Ign hxxx://nginx.org wheezy/nginx Translation-en
Fetched 175 kB in 3s (56.9 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
ca-certificates is already the newest version.
dialog is already the newest version.
gcc is already the newest version.
libffi-dev is already the newest version.
python is already the newest version.
python-dev is already the newest version.
python-virtualenv is already the newest version.
libssl-dev is already the newest version.
augeas-lenses is already the newest version.
libaugeas0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Creating virtual environment…
Running virtualenv with interpreter /usr/bin/python2.7
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in /home/hash/.local/share/letsencrypt/bin/python2.7
Also creating executable in /home/hash/.local/share/letsencrypt/bin/python
Installing distribute…done.
Installing pip…done.
Updating letsencrypt and virtual environment dependencies…
Downloading/unpacking distribute from hxxxs://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
Downloading distribute-0.7.3.zip (145Kb): 145Kb downloaded
Running setup.py egg_info for package distribute

Downloading/unpacking setuptools>=0.7 (from distribute)
Downloading setuptools-20.0.tar.gz (641Kb): 641Kb downloaded
Running setup.py egg_info for package setuptools

warning: no files found matching '*' under directory 'setuptools/_vendor'

Installing collected packages: distribute, setuptools
Found existing installation: distribute 0.6.24
Uninstalling distribute:
Successfully uninstalled distribute
Running setup.py install for distribute

Running setup.py install for setuptools

warning: no files found matching '*' under directory 'setuptools/_vendor'
Installing easy_install script to /home/hash/.local/share/letsencrypt/bin
Installing easy_install-2.7 script to /home/hash/.local/share/letsencrypt/bin

Could not find .egg-info directory in install record for setuptools>=0.7 (from distribute)
Successfully installed distribute setuptools
Cleaning up…
Downloading/unpacking pip from hxxxs://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb
Downloading pip-8.0.2.tar.gz (1.1Mb): 1.1Mb downloaded
Running setup.py egg_info for package pip

warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'

Installing collected packages: pip
Found existing installation: pip 1.1
Uninstalling pip:
Successfully uninstalled pip
Running setup.py install for pip

warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Installing pip script to /home/hash/.local/share/letsencrypt/bin
Installing pip2.7 script to /home/hash/.local/share/letsencrypt/bin
Installing pip2 script to /home/hash/.local/share/letsencrypt/bin

Could not find .egg-info directory in install record for pip from hxxxs://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb in /home/hash/.local/share/letsencrypt/lib/python2.7/site-packages/pip-1.1-py2.7.egg
Successfully installed pip
Cleaning up…
Collecting letsencrypt
Using cached letsencrypt-0.3.0-py2-none-any.whl
Collecting letsencrypt-apache
Using cached letsencrypt_apache-0.3.0-py2-none-any.whl
Collecting zope.interface (from letsencrypt)
Using cached zope.interface-4.1.3.tar.gz
Requirement already up-to-date: setuptools in /home/hash/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Collecting python2-pythondialog>=3.2.2rc1 (from letsencrypt)
Using cached python2-pythondialog-3.3.0.tar.bz2
Collecting PyOpenSSL (from letsencrypt)
Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Collecting acme==0.3.0 (from letsencrypt)
Using cached acme-0.3.0-py2.py3-none-any.whl
Collecting ConfigArgParse>=0.9.3 (from letsencrypt)
Using cached ConfigArgParse-0.10.0.tar.gz
Collecting parsedatetime (from letsencrypt)
Using cached parsedatetime-1.5-py2-none-any.whl
Collecting configobj (from letsencrypt)
Using cached configobj-5.0.6.tar.gz
Collecting pytz (from letsencrypt)
Using cached pytz-2015.7-py2.py3-none-any.whl
Collecting psutil>=2.1.0 (from letsencrypt)
Using cached psutil-3.4.2.tar.gz
Collecting six (from letsencrypt)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting cryptography>=0.7 (from letsencrypt)
Using cached cryptography-1.2.2.tar.gz
Collecting zope.component (from letsencrypt)
Using cached zope.component-4.2.2.tar.gz
Collecting mock (from letsencrypt)
/home/hash/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see hxxxs://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/hash/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see hxxxs://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached mock-1.3.0-py2.py3-none-any.whl
Collecting pyrfc3339 (from letsencrypt)
Using cached pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas (from letsencrypt-apache)
Using cached python-augeas-0.5.0.tar.gz
Collecting requests (from acme==0.3.0->letsencrypt)
Using cached requests-2.9.1-py2.py3-none-any.whl
Collecting pyasn1 (from acme==0.3.0->letsencrypt)
Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting ndg-hxxxsclient (from acme==0.3.0->letsencrypt)
Using cached ndg_httpsclient-0.4.0.tar.gz
Collecting werkzeug (from acme==0.3.0->letsencrypt)
Using cached Werkzeug-0.11.3-py2.py3-none-any.whl
Collecting idna>=2.0 (from cryptography>=0.7->letsencrypt)
Using cached idna-2.0-py2.py3-none-any.whl
Collecting enum34 (from cryptography>=0.7->letsencrypt)
Using cached enum34-1.1.2.tar.gz
Collecting ipaddress (from cryptography>=0.7->letsencrypt)
Using cached ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=0.7->letsencrypt)
Using cached cffi-1.5.0.tar.gz
Collecting zope.event (from zope.component->letsencrypt)
Using cached zope.event-4.1.0.tar.gz
Collecting funcsigs (from mock->letsencrypt)
Using cached funcsigs-0.4-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock->letsencrypt)
Using cached pbr-1.8.1-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.4.1->cryptography>=0.7->letsencrypt)
Using cached pycparser-2.14.tar.gz
Installing collected packages: zope.interface, python2-pythondialog, six, idna, pyasn1, enum34, ipaddress, pycparser, cffi, cryptography, PyOpenSSL, pytz, requests, ndg-httpsclient, werkzeug, funcsigs, pbr, mock, pyrfc3339, acme, ConfigArgParse, parsedatetime, configobj, psutil, zope.event, zope.component, letsencrypt, python-augeas, letsencrypt-apache
Running setup.py install for zope.interface … done
Running setup.py install for python2-pythondialog … done
Running setup.py install for enum34 … done
Running setup.py install for pycparser … done
Running setup.py install for cffi … error
Complete output from command /home/hash/.local/share/letsencrypt/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-F3UH9k/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-K0FFZz-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/hash/.local/share/letsencrypt/include/site/python2.7/cffi:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/init.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi
running build_ext
building ‘_cffi_backend’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/c
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/c/_cffi_backend.o -lffi -o build/lib.linux-x86_64-2.7/_cffi_backend.so
/usr/bin/ld: BFD (GNU Binutils for Debian) 2.22 internal error, aborting at …/…/bfd/reloc.c line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

----------------------------------------

Command “/home/hash/.local/share/letsencrypt/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-F3UH9k/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-K0FFZz-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/hash/.local/share/letsencrypt/include/site/python2.7/cffi” failed with error code 1 in /tmp/pip-build-F3UH9k/cffi
/home/hash/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see hxxxs://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning