Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chargr opened this issue Nov 27, 2024 · 1 comment
Open

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

chargr opened this issue Nov 27, 2024 · 1 comment

Comments

@chargr
Copy link

chargr commented Nov 27, 2024

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'],
@TheWitness
Copy link

Pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants