Skip to content

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

Description

@chargr

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'],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions