Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


On 24/08/18 20:02, Luke Benes wrote:
When I build with clang/linux I'm now seeing the following error:

Building lxml version 4.1.1.
Building without Cython.
Using build configuration of libxslt 1.1.32
Building against libxml2/libxslt in the following directory: /usr/lib
...
clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DCYTHON_CLINE_IN_TRACEBACK=1 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.linux-x86_64-3.7/src/lxml/etree.o -w
clang-8: error: unknown argument: '-flto-partition=none'

external/lxml/ExternalProject_lxml.mk is somewhat special in that it (by accident?) uses $$CFLAGS (i.e., whathever the CFLAGS env var is set to in the shell run by `make`) instead of $(CFLAGS) (i.e., what configure determined and potentially stored in config_host.mk; the value typically used in other external/*/ExternalProject_*.mk). Maybe that is the source of your "-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" arguments?

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.