-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
env_vars.sh
Outdated
# Environment variables for build | ||
MACOSX_DEPLOYMENT_TARGET=10.9 | ||
# CFLAGS override for https://github.com/pandas-dev/pandas/issues/34114 | ||
CFLAGS="-std=c99 -Wno-error=maybe-uninitialized -Wno-error=sign-compare" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem with maybe-uninitialized
if it gets things through, but I think sign-compare
is a pretty serious issue that can easily show up for end users so not something we should ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but I don't actually know how to do that. The wheel-building repo feels like the wrong place to ensure that we're writing clean C code.
Once I get a build passing here, I'll try to add a CI job on pandas-dev/pandas that at least compiles things with the manylinux1 docker image.
@WillAyd the latest failures are when compiling the C++ files
Because we're passing
|
In errors with
|
Hmm are you sure that was the problem? We only use the |
Just as an FYI I think ansi is equivalent to c89 so this is probably making things more strict. |
Ah thanks. Hopefully pandas-dev/pandas#34409 fixes this upstream in pandas... |
CFLAGS="-ansi -Wno-error=maybe-uninitialized -Wno-error=sign-compare -Wno-error=return-type" | ||
fi | ||
# Macos's linker doesn't support stripping symbols | ||
if [ "$(uname)" != "Darwin" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this just an attempt to reduce the binary size? Feature instead of fixing an issue?
Just copied from NumPy.
…On Wed, May 27, 2020 at 10:54 AM William Ayd ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In env_vars.sh
<#85 (comment)>
:
> @@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# Environment variables for build
+MACOSX_DEPLOYMENT_TARGET=10.9
+# CFLAGS override for pandas-dev/pandas#34114
+if [ "$(uname)" == "Linux" ]; then
+ CFLAGS="-ansi -Wno-error=maybe-uninitialized -Wno-error=sign-compare -Wno-error=return-type"
+fi
+# Macos's linker doesn't support stripping symbols
+if [ "$(uname)" != "Darwin" ]; then
Is this just an attempt to reduce the binary size? Feature instead of
fixing an issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#85 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAOIQE2VBUOQXYK3MTSU3RTUZUNANCNFSM4NG64N5A>
.
|
Going to try to fix all these in pandas itself. The 32-bit build is failing with a signed / unsigned-comparison. |
xref pandas-dev/pandas#34114