Skip to content

Dirac doesn't compile properly in 64 bit linux (with a solution) #42

@pepperpepperpepper

Description

@pepperpepperpepper

The setup.py script for dirac needs to detect whether the OS is running 64 or 32 bit linux.
I couldn't figure out why it wouldn't compile on my 64bit arch system, but when I changed
-lDirac
to
-lDirac64 (both binaries are built in lib/)
it worked fine.

Maybe there are other similar issues with 32-bit/64-bit compatibility elsewhere in the project, but everything seems to be fine for me using g++-multilib.

Basically the setup.py script should use some way to determine whether the rest of the libs are for 64 bit architectures, (maybe if it's 64bit python, etc), if it is, use
libraries = ['Dirac64'],
instead of
libraries = ['Dirac'],

Did not have this problem at all building for Darwin.
awesome project, and thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions