On a Mac, encountering clang: error: unknown argument: '-mno-fused-madd' → Use ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

mac
2014-04-27 18:53 (10 years ago) ytyng
$ pip install reportlab

After running this command

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

I encountered this error.

It seems to occur during the installation of a dependency package (pillow?).

Fix 'clang: unknown argument' error after updating to Xcode 5.1

http://kaspermunck.github.io/2014/03/fixing-clang-error/

Referring to this page

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install reportlab
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011