Skip to content

Conversation

@kxxt
Copy link

@kxxt kxxt commented May 3, 2023

Previously setup.py splits compiler flags by a single whitespace, which causes build failures when there are two space characters, causing an extra empty string being added to the compiler command line.

In my case, polymake-config --cflags returned a string with two space characters before the last compiler flag:

-DPOLYMAKE_VERSION=409 -fPIC -pipe -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/polymake/src=/usr/src/debug/polymake -flto=auto -std=c++14 -ftemplate-depth-200 -fno-strict-aliasing -fopenmp -Wshadow -Wlogical-op -Wconversion -Wzero-as-null-pointer-constant -Wno-parentheses -Wno-error=unused-function -Wno-stringop-overflow -Wno-array-bounds -Wno-maybe-uninitialized -Wno-free-nonheap-object -DPOLYMAKE_WITH_FLINT  -DPOLYMAKE_DEBUG=0

An extra empty string got passed to the compiler and it caused a cryptic error.

g++: warning: : linker input file unused because linking not done
g++: error: : linker input file not found: No such file or directory

Previously setup.py splits compiler flags by a single whitespace,
which causes build failures when there are two space characters causing
an extra empty string being added to the compiler command line.
kxxt added a commit to kxxt/archriscv-packages that referenced this pull request May 3, 2023
See the [upstreamed PR](sebasguts/JuPyMake#5) for more context.
kxxt added a commit to kxxt/archriscv-packages that referenced this pull request May 3, 2023
See the [upstreamed PR](sebasguts/JuPyMake#5) for more context.
felixonmars pushed a commit to felixonmars/archriscv-packages that referenced this pull request May 3, 2023
See the [upstreamed PR](sebasguts/JuPyMake#5) for more context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant