Skip to content

Binary incompatibility warning (Trac #2103) #563

Closed

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/2103 on 2012-04-12 by @fonnesbeck, assigned to unknown.

I have built numpy from the master branch source today (I make new builds every couple of weeks), and am seeing a new warning that I have not seen before:

In [1]: import numpy
/Library/Python/2.7/site-packages/numpy-1.7.0.dev_0c5f480_20120412-py2.7-macosx-10.7-x86_64.egg/numpy/random/__init__.py:91: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility
  from mtrand import *

I am using the same build script as I always do. I am on OS X 10.7.3, and am using the following env variables:

export MACOSX_DEPLOYMENT_TARGET=10.7
export CFLAGS="-arch x86_64"
export ARCHFLAGS="-arch x86_64"
export FFLAGS="-static -ff2c"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch x86_64"
export PYTHONPATH="/Library/Python/2.7/site-packages/"
export CC=gcc-4.2
export CXX=g++-4.2

Again, nothing has changed here since last I built the package, which did not have this message last time.

Activity

  1. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    @charris wrote on 2012-04-12

    Not a problem, it is a Cython artifact resulting from Numpy deprecating direct access to ndarray internals. See the Cython thread at [http://mail.python.org/pipermail/cython-devel/2012-January/001848.html]

  2. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    @rgommers wrote on 2012-04-14

    It's strange though that you get this warning when importing numpy itself. It should come from another package compiled against older numpy, that then sees a change in numpy.

  3. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    @charris wrote on 2012-04-14

    It is issued when importing the mtrand module.

  4. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    @rgommers wrote on 2012-04-15

    Okay, I see it now. We should filter it though, this warning is annoying. Especially because it's the exact same warning that signals ABI issues like the one that caused the removal of datetime in 1.4.1.

    I sent a PR: #252

  5. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    Milestone changed to NumPy 1.7 by @rgommers on 2012-04-15

  6. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

    @rgommers wrote on 2012-04-15

    PR merged in 9dfda59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions