Xiroo opened a new issue, #32672:
URL: https://github.com/apache/airflow/issues/32672

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   When we build Airflow, we have build erros when installing pymssql library 
which contained in constraints on ARM architecture.  This issue has been 
[reported](https://github.com/pymssql/pymssql/issues/826) to pymssql, but no 
idea how it will take to fix. I suggest comment out this library temporary to 
prevent build failure.
   
   ```
   Defaulting to user installation because normal site-packages is not writeable
   Collecting pymssql
     Using cached pymssql-2.2.7.tar.gz (170 kB)
     Installing build dependencies ... done
     Getting requirements to build wheel ... done
     Preparing metadata (pyproject.toml) ... done
   Building wheels for collected packages: pymssql
     Building wheel for pymssql (pyproject.toml) ... error
     error: subprocess-exited-with-error
     
     × Building wheel for pymssql (pyproject.toml) did not run successfully.
     │ exit code: 1
     ╰─> [119 lines of output]
         setup.py: platform.system() => Linux
         setup.py: platform.architecture() => ('64bit', 'ELF')
         setup.py: platform.libc_ver() => ('glibc', '2.31')
         setup.py: include_dirs => []
         setup.py: library_dirs => []
         running bdist_wheel
         running build
         running build_py
         creating build
         creating build/lib.linux-aarch64-cpython-39
         creating build/lib.linux-aarch64-cpython-39/pymssql
         copying src/pymssql/__init__.py -> 
build/lib.linux-aarch64-cpython-39/pymssql
         running build_ext
         warning: src/pymssql/_mssql.pyx:27:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:28:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:29:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:30:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:31:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:32:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:35:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:36:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:38:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:82:0: The 'IF' statement is deprecated 
and will be removed in a future Cython version. Consider using runtime 
conditions or C macros instead. See https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:230:0: The 'DEF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
global variables, constants, and in-place literals instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:264:4: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:333:4: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:831:8: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:919:8: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:1005:12: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:1379:16: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         warning: src/pymssql/_mssql.pyx:1713:8: The 'IF' statement is 
deprecated and will be removed in a future Cython version. Consider using 
runtime conditions or C macros instead. See 
https://github.com/cython/cython/issues/4310
         
         Error compiling Cython file:
         ------------------------------------------------------------
         ...
         
         cdef void init_mssql():
             if dbinit() == FAIL:
                 raise MSSQLDriverException("dbinit() failed")
         
             dberrhandle(err_handler)
                         ^
         ------------------------------------------------------------
         
         src/pymssql/_mssql.pyx:2173:16: Cannot assign type 'int (DBPROCESS *, 
int, int, int, char *, char *) except? -1 nogil' to 'EHANDLEFUNC'
         
         Error compiling Cython file:
         ------------------------------------------------------------
         ...
         cdef void init_mssql():
             if dbinit() == FAIL:
                 raise MSSQLDriverException("dbinit() failed")
         
             dberrhandle(err_handler)
             dbmsghandle(msg_handler)
                         ^
         ------------------------------------------------------------
         
         src/pymssql/_mssql.pyx:2174:16: Cannot assign type 'int (DBPROCESS *, 
DBINT, int, int, char *, char *, char *, LINE_T) except? -1 nogil' to 
'MHANDLEFUNC'
         Compiling src/pymssql/_mssql.pyx because it changed.
         [1/1] Cythonizing src/pymssql/_mssql.pyx
         Traceback (most recent call last):
           File 
"/home/vscode/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 353, in <module>
             main()
           File 
"/home/vscode/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 335, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
           File 
"/home/vscode/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 251, in build_wheel
             return _build_backend().build_wheel(wheel_directory, 
config_settings,
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py",
 line 416, in build_wheel
             return self._build_with_temp_dir(['bdist_wheel'], '.whl',
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py",
 line 401, in _build_with_temp_dir
             self.run_setup()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py",
 line 487, in run_setup
             super(_BuildMetaLegacyBackend,
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/build_meta.py",
 line 338, in run_setup
             exec(code, locals())
           File "<string>", line 289, in <module>
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/__init__.py",
 line 107, in setup
             return distutils.core.setup(**attrs)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py",
 line 185, in setup
             return run_commands(dist)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py",
 line 201, in run_commands
             dist.run_commands()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py",
 line 969, in run_commands
             self.run_command(cmd)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/dist.py",
 line 1234, in run_command
             super().run_command(command)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py",
 line 988, in run_command
             cmd_obj.run()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py",
 line 343, in run
             self.run_command("build")
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py",
 line 318, in run_command
             self.distribution.run_command(command)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/dist.py",
 line 1234, in run_command
             super().run_command(command)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py",
 line 988, in run_command
             cmd_obj.run()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py",
 line 131, in run
             self.run_command(cmd_name)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py",
 line 318, in run_command
             self.distribution.run_command(command)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/dist.py",
 line 1234, in run_command
             super().run_command(command)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py",
 line 988, in run_command
             cmd_obj.run()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py",
 line 345, in run
             self.build_extensions()
           File "<string>", line 181, in build_extensions
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py",
 line 467, in build_extensions
             self._build_extensions_serial()
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py",
 line 493, in _build_extensions_serial
             self.build_extension(ext)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/Cython/Distutils/build_ext.py",
 line 122, in build_extension
             new_ext = cythonize(
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py",
 line 1134, in cythonize
             cythonize_one(*args)
           File 
"/tmp/pip-build-env-zf2sa7bh/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py",
 line 1301, in cythonize_one
             raise CompileError(None, pyx_file)
         Cython.Compiler.Errors.CompileError: src/pymssql/_mssql.pyx
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
     ERROR: Failed building wheel for pymssql
   Failed to build pymssql
   ERROR: Could not build wheels for pymssql, which is required to install 
pyproject.toml-based projects
   ```
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   Build any version of Airflow including pymssql module on ARM architecture.
   
   ### Operating System
   
   mac os 13.0
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to