Skip to content

package gives "unrecognized command line option -fstack-clash-protection" #5720

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

Closed
sammefford opened this issue Aug 20, 2018 · 4 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@sammefford
Copy link

sammefford commented Aug 20, 2018

Environment

  • pip version: 18.0
  • Python version: 3.4.6
  • OS: SLES 12 Patch 3 under Windows Subsystem for Linux

Description
Upon install of kerb-sts I get the same error as #5598 reported for duplicity and python-ldap:

gcc: error: unrecognized command line option ‘-fstack-clash-protection’

Expected behavior
The package should be installed.

How to Reproduce

sudo pip3 install kerb-sts

Output

# sudo pip3 install kerb-sts
Collecting kerb-sts
  Using cached https://files.pythonhosted.org/packages/4c/2b/e180052a768c3f636815375e0cf2cc22fcde5a8e4a98c99bab0f10a39ca4/kerb_sts-0.1.2-py2.py3-none-any.whl
Requirement already satisfied: boto3>=1.4.2 in /usr/lib/python3.4/site-packages (from kerb-sts) (1.7.80)
Requirement already satisfied: requests-ntlm>=0.3.0 in /usr/lib/python3.4/site-packages (from kerb-sts) (1.1.0)
Requirement already satisfied: ntlm-auth==1.0.2 in /usr/lib/python3.4/site-packages (from kerb-sts) (1.0.2)
Requirement already satisfied: configparser==3.5.0 in /usr/lib/python3.4/site-packages (from kerb-sts) (3.5.0)
Requirement already satisfied: boto>=2.43.0 in /usr/lib/python3.4/site-packages (from kerb-sts) (2.49.0)
Requirement already satisfied: botocore>=1.4.80 in /usr/lib/python3.4/site-packages (from kerb-sts) (1.10.80)
Requirement already satisfied: requests>=2.12.3 in /usr/lib/python3.4/site-packages (from kerb-sts) (2.19.1)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.4/site-packages (from kerb-sts) (1.11.0)
Requirement already satisfied: beautifulsoup4>=4.4.1 in /usr/lib/python3.4/site-packages (from kerb-sts) (4.6.3)
Collecting requests-kerberos>=0.11.0 (from kerb-sts)
  Using cached https://files.pythonhosted.org/packages/ee/a2/866f2b9a60f75055137b9ad127033e397963b2c4769d4b5fab1c3c7e8be3/requests_kerberos-0.12.0-py2.py3-none-any.whl
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/lib/python3.4/site-packages (from boto3>=1.4.2->kerb-sts) (0.9.3)
Requirement already satisfied: s3transfer<0.2.0,>=0.1.10 in /usr/lib/python3.4/site-packages (from boto3>=1.4.2->kerb-sts) (0.1.13)
Requirement already satisfied: cryptography>=1.3 in /usr/lib64/python3.4/site-packages (from requests-ntlm>=0.3.0->kerb-sts) (2.3.1)
Requirement already satisfied: ordereddict in /usr/lib/python3.4/site-packages (from ntlm-auth==1.0.2->kerb-sts) (1.1)
Requirement already satisfied: docutils>=0.10 in /usr/lib/python3.4/site-packages (from botocore>=1.4.80->kerb-sts) (0.14)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1; python_version >= "2.7" in /usr/lib/python3.4/site-packages (from botocore>=1.4.80->kerb-sts) (2.7.3)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/lib/python3.4/site-packages (from requests>=2.12.3->kerb-sts) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.4/site-packages (from requests>=2.12.3->kerb-sts) (2018.8.13)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.4/site-packages (from requests>=2.12.3->kerb-sts) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.4/site-packages (from requests>=2.12.3->kerb-sts) (2.7)
Collecting pykerberos<2.0.0,>=1.1.8; sys_platform != "win32" (from requests-kerberos>=0.11.0->kerb-sts)
  Using cached https://files.pythonhosted.org/packages/9a/b8/1ec56b6fa8a2e2a81420bd3d90e70b59fc83f6b857fb2c2c37accddc8be3/pykerberos-1.2.1.tar.gz
Requirement already satisfied: cffi!=1.11.3,>=1.7 in /usr/lib64/python3.4/site-packages (from cryptography>=1.3->requests-ntlm>=0.3.0->kerb-sts) (1.11.5)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python3.4/site-packages (from cryptography>=1.3->requests-ntlm>=0.3.0->kerb-sts) (0.24.0)
Requirement already satisfied: pycparser in /usr/lib/python3.4/site-packages (from cffi!=1.11.3,>=1.7->cryptography>=1.3->requests-ntlm>=0.3.0->kerb-sts) (2.18)
Installing collected packages: pykerberos, requests-kerberos, kerb-sts
  Running setup.py install for pykerberos ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-iqw2ynb2/pykerberos/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-sag5w1a7/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'kerberos' extension
    creating build
    creating build/temp.linux-x86_64-3.4
    creating build/temp.linux-x86_64-3.4/src
    gcc -pthread -Wno-unused-result -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fPIC -I/usr/include/python3.4m -c src/kerberos.c -o build/temp.linux-x86_64-3.4/src/kerberos.o
    gcc: error: unrecognized command line option ‘-fstack-clash-protection’
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-iqw2ynb2/pykerberos/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-sag5w1a7/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-iqw2ynb2/pykerberos/
@sammefford
Copy link
Author

This recommendation from #5598 didn't fix it for me:

zypper ref
zypper update

@iamwizard
Copy link

I have a similar issue trying to install cryptography package using command pip3 install cryptography on SUSE linux and python 3.4.6. Recommended solution is to upgrade the GCC version to 4.9 or 4.9+ though it didn't work in my case. You can give it a try!

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label Sep 12, 2018
@JumBe08
Copy link

JumBe08 commented Nov 15, 2018

Hi. Did you managed to solve the problem? I'm having the exact same problem, I'm trying to install pandas on Python 3.4.6, SLES 12 SP1

I also get gcc: error: unrecognized command line option ‘-fstack-clash-protection’
error: command 'gcc' failed with exit status 1

Have tried to install pandas on another OS with the same version of python and gcc, and it worked, so I'm guessing it is something in SLES that is causing the trouble, but I really have no idea where else to look

@chrahunt
Copy link
Member

The options passed to the compiler are wholly under the control of the package being installed, pip just delegates to the setup.py or PEP 517 build backend. We're tracking making this more obvious in our output in #6959.

I would recommend posting in a general user support forum (maybe specific to SLES since that appears to be the common denominator).

Since the underlying cause isn't pip I will close this, but anyone participating please feel free to drop a link to further discussion in a comment just in case others happen upon this issue.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Nov 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 25, 2019
@ghost ghost removed the S: needs triage Issues/PRs that need to be triaged label Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

5 participants