Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000601 [ALGLIB] General major always 2014-03-08 01:50 2015-04-04 16:16
Reporter MOBle View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0000601: Cannot build-unix in cpython version
Description The build-unix script relies on an executable "../aenv", which does not exist. Also, at least my compiler chokes on lines like

    #include <ae_types.h>
    #include <stdafx.h>

They should probably be

    #include "ae_types.h"
    #include "stdafx.h"

I think the latter would work on any system.

Finally, as a note, the whole build process should be trivial on any platform if you change to the following:

    from distutils.core import setup, Extension
    import os
    import glob
        name = 'alglib',
        description = 'ALGLIB for Python: numerical library',
        author = 'ALGLIB Project',
        url = '',
        license = "GPL 2+ (commercial license available for purchase)",
        py_modules = ['xalglib'],
        # data_files = [('', [targetname])]
        ext_modules = [
                      depends = glob.glob("core{0}src{0}*.h".format(os.sep)),
                      extra_link_args=['-fPIC', '-Wl,-undefined,error'],
Additional Information This is in version 3.8.2.cpython. I am running Mac OS X 10.9. The compiler that choked on the `#include`s is clang -- specifically:

    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Programming language Unspecified
Attached Files

- Relationships

-  Notes
MOBle (reporter)
2014-03-08 01:56

Sorry. In the `Extension` code block above, `_alglib` should just be `alglib`.
MOBle (reporter)
2014-03-08 02:04

Ah, now I've found the aenv executable, but it errors as follows:

> aenv gcc --compiler
clang: error: unable to make temporary file: ___tmp/aconf: can't make unique filename: No such file or directory
dontsov (reporter)
2015-04-04 16:16

There is a problem with bash command "cd $TMP", so if you commented this lines and add $TMP to files paths in script, you got success.

I write patch file. See my blog:

- Issue History
Date Modified Username Field Change
2014-03-08 01:50 MOBle New Issue
2014-03-08 01:50 MOBle Programming language => Unspecified
2014-03-08 01:56 MOBle Note Added: 0000065
2014-03-08 02:04 MOBle Note Added: 0000066
2015-04-04 16:16 dontsov Note Added: 0000068

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker