lsf-python-api icon indicating copy to clipboard operation
lsf-python-api copied to clipboard

aarch64 - gcc: error: unrecognized command-line option ‘-m64’

Open chargr opened this issue 1 year ago • 2 comments

when compiling on aarch64, gcc does not have an "-m64" option.

gcc: error: unrecognized command-line option ‘-m64’

removing from compile and link options fixes this error, not sure if this is safe for other systems.

diff --git a/setup.py b/setup.py
index 57992b7..32866ba 100755
--- a/setup.py
+++ b/setup.py
@@ -134,14 +134,14 @@ setup(name='lsf-pythonapi',
                                        #   '-DLSF_SIMULATOR',
                                           '-DOS_HAS_THREAD -D_REENTRANT',
                                             gccflag_keyvaluet, gccflag_lsfversion],
-                               extra_compile_args=['-m64',
+                               extra_compile_args=[
                                     '-I' + LSF_LIBDIR + '/../../include/lsf/',
                                     '-Wno-strict-prototypes', gccflag_keyvaluet,
                                     gccflag_lsfversion,
                                     '-DOS_HAS_THREAD -D_REENTRANT', #For multi-thread lib, lserrno
                                     '-Wp,-U_FORTIFY_SOURCE', #The flag needs -O option. Undefine it for warning.
                                     '-O0'],
-                               extra_link_args=['-m64'],
+                               extra_link_args=[],
                                extra_objects=lsf_static_lib,
                                libraries=lsf_dynamic_lib)],
       py_modules=['pythonlsf.lsf'],

chargr avatar Nov 27 '24 18:11 chargr

Pull request?

TheWitness avatar Nov 27 '24 20:11 TheWitness

This appears to have been resolved/merged in https://github.com/IBMSpectrumComputing/lsf-python-api/pull/79

mlavin avatar Sep 15 '25 19:09 mlavin