conda-forge / cuda-nvcc-feedstock

A conda-smithy repository for cuda-nvcc.
BSD 3-Clause "New" or "Revised" License
1 stars 11 forks source link

CUDA_LDFLAGS don't play well with `-Werror,-Wunused-command-line-argument` and clang. #44

Closed lezcano closed 1 week ago

lezcano commented 4 months ago

Solution to issue cannot be found in the documentation.

Issue

I'm getting the following errors when trying to build a library with -Werror,-Wunused-command-line-argument and a locally build clang.

      clang++: error: argument unused during compilation: '-L/home/lezcano/.conda/envs/pytorch-dev/targets/x86_64-linux/lib' [-Werror,-Wunused-command-line-argument]                                                
      clang++: error: argument unused during compilation: '-L/home/lezcano/.conda/envs/pytorch-dev/targets/x86_64-linux/lib/stubs' [-Werror,-Wunused-command-line-argument] 

@isuruf mentions that this might indicate a small bug within conda-forge.

Installed packages

# packages in environment at /home/lezcano/.conda/envs/pytorch-dev:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
_sysroot_linux-64_curr_repodata_hack 3                   h69a702a_13    conda-forge
absl-py                   2.1.0                    pypi_0    pypi
aiohttp                   3.9.3            py38h01eb140_0    conda-forge
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
alabaster                 0.7.13             pyhd8ed1ab_0    conda-forge
ast-decompiler            0.7.0                    pypi_0    pypi
astor                     0.8.1                    pypi_0    pypi
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
async-timeout             4.0.3              pyhd8ed1ab_0    conda-forge
attrs                     23.2.0             pyh71513ae_0    conda-forge
babel                     2.14.0             pyhd8ed1ab_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                pyhd8ed1ab_3    conda-forge
backports.zoneinfo        0.2.1            py38h01eb140_8    conda-forge
binutils_impl_linux-64    2.40                 hf600244_0    conda-forge
binutils_linux-64         2.40                 hbdbef99_2    conda-forge
black                     23.12.1                  pypi_0    pypi
boto                      2.49.0                   pypi_0    pypi
botorch                   0.8.5                    pypi_0    pypi
brotli-python             1.1.0            py38h17151c0_1    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.26.0               hd590300_0    conda-forge
ca-certificates           2024.2.2             hbcca054_0    conda-forge
cachetools                5.3.3                    pypi_0    pypi
ccache                    4.9.1                h1fcd64f_0    conda-forge
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0           py38h6d47a40_0    conda-forge
cfgv                      3.3.1              pyhd8ed1ab_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
cloudpickle               3.0.0                    pypi_0    pypi
cmake                     3.28.3               hcfe8598_0    conda-forge
cmakelint                 1.4.1                    pypi_0    pypi
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
commonmark                0.9.1                    pypi_0    pypi
conda-gcc-specs           12.3.0               h83fac38_5    conda-forge
contourpy                 1.1.1                    pypi_0    pypi
cuda-cccl                 12.1.109             ha770c72_0    conda-forge
cuda-cccl-impl            2.0.1                ha770c72_1    conda-forge
cuda-cccl_linux-64        12.1.109             ha770c72_0    conda-forge
cuda-cudart               12.1.105             hd3aeb46_0    conda-forge
cuda-cudart-dev           12.1.105             hd3aeb46_0    conda-forge
cuda-cudart-dev_linux-64  12.1.105             h59595ed_0    conda-forge
cuda-cudart-static        12.1.105             hd3aeb46_0    conda-forge
cuda-cudart-static_linux-64 12.1.105             h59595ed_0    conda-forge
cuda-cudart_linux-64      12.1.105             h59595ed_0    conda-forge
cuda-cupti                12.1.105             h59595ed_0    conda-forge
cuda-driver-dev           12.1.105             hd3aeb46_0    conda-forge
cuda-driver-dev_linux-64  12.1.105             h59595ed_0    conda-forge
cuda-gdb                  12.1.105             hd47b8d6_0    conda-forge
cuda-libraries-dev        12.1.1               ha770c72_0    conda-forge
cuda-nvcc                 12.1.105             hcdd1206_1    conda-forge
cuda-nvcc-dev_linux-64    12.1.105             ha770c72_0    conda-forge
cuda-nvcc-impl            12.1.105             hd3aeb46_0    conda-forge
cuda-nvcc-tools           12.1.105             hd3aeb46_0    conda-forge
cuda-nvcc_linux-64        12.1.105             h8a487aa_1    conda-forge
cuda-nvml-dev             12.1.105             h59595ed_0    conda-forge
cuda-nvrtc                12.1.105             hd3aeb46_0    conda-forge
cuda-nvrtc-dev            12.1.105             hd3aeb46_0    conda-forge
cuda-nvtx                 12.1.105             h59595ed_0    conda-forge
cuda-nvtx-dev             12.1.105             ha770c72_0    conda-forge
cuda-opencl               12.1.105             h59595ed_0    conda-forge
cuda-opencl-dev           12.1.105             h59595ed_0    conda-forge
cuda-profiler-api         12.1.105             ha770c72_0    conda-forge
cuda-version              12.1                 h1d6eff3_2    conda-forge
cudnn                     8.8.0.121            h264754d_4    conda-forge
cycler                    0.12.1                   pypi_0    pypi
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
distlib                   0.3.8              pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
dnspython                 2.6.1                    pypi_0    pypi
docutils                  0.18.1                   pypi_0    pypi
exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
execnet                   2.0.2              pyhd8ed1ab_0    conda-forge
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
expecttest                0.1.6                    pypi_0    pypi
farama-notifications      0.0.4                    pypi_0    pypi
filelock                  3.13.1             pyhd8ed1ab_0    conda-forge
flake8                    6.1.0                    pypi_0    pypi
flake8-bugbear            23.3.23                  pypi_0    pypi
flake8-comprehensions     3.12.0                   pypi_0    pypi
flake8-executable         2.1.3                    pypi_0    pypi
flake8-logging-format     0.9.0                    pypi_0    pypi
flake8-pyi                23.3.1                   pypi_0    pypi
flake8-simplify           0.19.3                   pypi_0    pypi
fonttools                 4.49.0                   pypi_0    pypi
frozenlist                1.4.1            py38h01eb140_0    conda-forge
fsspec                    2024.2.0           pyhca7485f_0    conda-forge
future                    0.18.3                   pypi_0    pypi
gcc                       12.3.0               h8d2909c_2    conda-forge
gcc_impl_linux-64         12.3.0               he2b93b0_5    conda-forge
gcc_linux-64              12.3.0               h76fc315_2    conda-forge
gdb                       14.1             py38hc0042fb_0    conda-forge
ghstack                   0.8.0              pyhd8ed1ab_0    conda-forge
git-delta                 0.16.5               h2ca70b0_0    conda-forge
gmp                       6.3.0                h59595ed_0    conda-forge
gmpy2                     2.1.2            py38h793c122_1    conda-forge
google-auth               2.28.2                   pypi_0    pypi
google-auth-oauthlib      0.4.6                    pypi_0    pypi
gpytorch                  1.10                     pypi_0    pypi
grpcio                    1.62.1                   pypi_0    pypi
gxx                       12.3.0               h8d2909c_2    conda-forge
gxx_impl_linux-64         12.3.0               he2b93b0_5    conda-forge
gxx_linux-64              12.3.0               h8a814eb_2    conda-forge
gymnasium                 0.29.1                   pypi_0    pypi
hypothesis                6.98.4             pyha770c72_0    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
identify                  2.5.34             pyhd8ed1ab_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
imagesize                 1.4.1              pyhd8ed1ab_0    conda-forge
importlib-metadata        7.0.2              pyha770c72_0    conda-forge
importlib-resources       6.1.3                    pypi_0    pypi
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
ipython                   8.12.2             pyh41d4057_0    conda-forge
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.3              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2                    pypi_0    pypi
junitparser               2.1.1                    pypi_0    pypi
kernel-headers_linux-64   3.10.0              h4a8ded7_13    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
kiwisolver                1.4.5                    pypi_0    pypi
krb5                      1.21.2               h659d440_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libblas                   3.9.0           20_linux64_openblas    conda-forge
libcblas                  3.9.0           20_linux64_openblas    conda-forge
libcst                    1.1.0                    pypi_0    pypi
libcublas                 12.1.3.1             hd3aeb46_0    conda-forge
libcublas-dev             12.1.3.1             hd3aeb46_0    conda-forge
libcufft                  11.0.2.54            hd3aeb46_0    conda-forge
libcufft-dev              11.0.2.54            hd3aeb46_0    conda-forge
libcufile                 1.6.1.9              hd3aeb46_0    conda-forge
libcufile-dev             1.6.1.9              hd3aeb46_0    conda-forge
libcurand                 10.3.2.106           hd3aeb46_0    conda-forge
libcurand-dev             10.3.2.106           hd3aeb46_0    conda-forge
libcurl                   8.5.0                hca28451_0    conda-forge
libcusolver               11.4.5.107           hd3aeb46_0    conda-forge
libcusolver-dev           11.4.5.107           hd3aeb46_0    conda-forge
libcusparse               12.1.0.106           hd3aeb46_0    conda-forge
libcusparse-dev           12.1.0.106           hd3aeb46_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-devel_linux-64     12.3.0             h8bca6fd_105    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgfortran-ng            13.2.0               h69a702a_5    conda-forge
libgfortran5              13.2.0               ha4646dd_5    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libhiredis                1.0.2                h2cc385e_0    conda-forge
libhwloc                  2.9.3           default_h554bfaf_1009    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
liblapack                 3.9.0           20_linux64_openblas    conda-forge
libmagma                  2.7.2                h173bb3b_2    conda-forge
libmagma_sparse           2.7.2                h173bb3b_2    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnpp                    12.1.0.40            hd3aeb46_0    conda-forge
libnpp-dev                12.1.0.40            hd3aeb46_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libnvjitlink              12.1.105             hd3aeb46_0    conda-forge
libnvjitlink-dev          12.1.105             hd3aeb46_0    conda-forge
libnvjpeg                 12.2.0.2             h59595ed_0    conda-forge
libnvjpeg-dev             12.2.0.2             ha770c72_0    conda-forge
libopenblas               0.3.25          pthreads_h413a1c8_0    conda-forge
libsanitizer              12.3.0               h0f45ef3_5    conda-forge
libsqlite                 3.45.1               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-devel_linux-64  12.3.0             h8bca6fd_105    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.46.0               hd590300_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.5               h232c23b_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
linear-operator           0.4.0                    pypi_0    pypi
lintrunner                0.12.2                   pypi_0    pypi
lit                       17.0.6             pyh1a96a4e_1    conda-forge
llvm-openmp               17.0.6               h4dfa4b3_0    conda-forge
magma                     2.7.2                h51420fd_2    conda-forge
markdown                  3.5.2                    pypi_0    pypi
markdown-it-py            2.2.0                    pypi_0    pypi
markupsafe                2.1.5            py38h01eb140_0    conda-forge
matplotlib                3.6.0                    pypi_0    pypi
matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
mccabe                    0.7.0              pyhd8ed1ab_0    conda-forge
mdit-py-plugins           0.3.5                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
mkl                       2024.0.0         ha957f24_49657    conda-forge
mkl-include               2024.0.0         ha957f24_49657    conda-forge
moreorless                0.4.0                    pypi_0    pypi
mpc                       1.3.1                hfe3b2da_0    conda-forge
mpfr                      4.2.1                h9458935_0    conda-forge
mpmath                    1.3.0              pyhd8ed1ab_0    conda-forge
multidict                 6.0.5            py38h01eb140_0    conda-forge
multipledispatch          1.0.0                    pypi_0    pypi
mypy                      1.9.0                    pypi_0    pypi
mypy-extensions           1.0.0                    pypi_0    pypi
myst-parser               0.18.1                   pypi_0    pypi
ncurses                   6.4                  h59595ed_2    conda-forge
networkx                  3.1                pyhd8ed1ab_0    conda-forge
ninja                     1.11.1               h924138e_0    conda-forge
nodeenv                   1.8.0              pyhd8ed1ab_0    conda-forge
nodejs                    20.9.0               hb753e55_0    conda-forge
numpy                     1.24.3                   pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
ocl-icd                   2.3.1                h7f98852_0    conda-forge
openssl                   3.2.1                hd590300_1    conda-forge
opt-einsum                3.3.0                    pypi_0    pypi
optree                    0.11.0                   pypi_0    pypi
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pandas                    2.0.3            py38h01efb38_1    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pathspec                  0.12.1                   pypi_0    pypi
pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.2.0                   pypi_0    pypi
pip                       24.0               pyhd8ed1ab_0    conda-forge
platformdirs              4.2.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.4.0              pyhd8ed1ab_0    conda-forge
pooch                     1.8.0              pyhd8ed1ab_0    conda-forge
pre-commit                3.5.0              pyha770c72_0    conda-forge
prompt-toolkit            3.0.42             pyha770c72_0    conda-forge
prompt_toolkit            3.0.42               hd8ed1ab_0    conda-forge
protobuf                  3.19.6                   pypi_0    pypi
psutil                    5.9.8            py38h01eb140_0    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pyasn1                    0.5.1                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pycodestyle               2.11.1             pyhd8ed1ab_0    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyflakes                  3.1.0                    pypi_0    pypi
pygments                  2.17.2             pyhd8ed1ab_0    conda-forge
pyparsing                 3.1.2                    pypi_0    pypi
pyro-api                  0.1.2                    pypi_0    pypi
pyro-ppl                  1.9.1                    pypi_0    pypi
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
pytest                    8.0.0              pyhd8ed1ab_0    conda-forge
pytest-sugar              1.0.0              pyhd8ed1ab_0    conda-forge
pytest-xdist              3.5.0              pyhd8ed1ab_0    conda-forge
python                    3.8.18          hd12c33a_1_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-etcd               0.4.5                    pypi_0    pypi
python-tzdata             2023.4             pyhd8ed1ab_0    conda-forge
python_abi                3.8                      4_cp38    conda-forge
pytorch-sphinx-theme      0.0.24                    dev_0    <develop>
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.1            py38h01eb140_1    conda-forge
readline                  8.2                  h8228510_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
requests-oauthlib         1.4.0                    pypi_0    pypi
rhash                     1.4.4                hd590300_0    conda-forge
rich                      10.9.0                   pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
ruamel-yaml               0.17.4                   pypi_0    pypi
ruamel-yaml-clib          0.2.8                    pypi_0    pypi
ruff                      0.4.8                    pypi_0    pypi
scikit-build              0.17.6             pyh4af843d_0    conda-forge
scikit-learn              1.3.2                    pypi_0    pypi
scipy                     1.10.1           py38h59b608b_3    conda-forge
setuptools                69.0.3             pyhd8ed1ab_0    conda-forge
shellcheck-py             0.7.2.1                  pypi_0    pypi
simsimd                   4.2.1                    pypi_0    pypi
six                       1.16.0             pyh6c4a22f_0    conda-forge
snowballstemmer           2.2.0              pyhd8ed1ab_0    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
sphinx                    5.0.0                    pypi_0    pypi
sphinx-copybutton         0.5.0                    pypi_0    pypi
sphinx-panels             0.4.1                    pypi_0    pypi
sphinxcontrib-applehelp   1.0.4              pyhd8ed1ab_0    conda-forge
sphinxcontrib-devhelp     1.0.2                      py_0    conda-forge
sphinxcontrib-htmlhelp    2.0.1              pyhd8ed1ab_0    conda-forge
sphinxcontrib-jsmath      1.0.1              pyhd8ed1ab_0    conda-forge
sphinxcontrib-katex       0.8.6                    pypi_0    pypi
sphinxcontrib-qthelp      1.0.3                      py_0    conda-forge
sphinxcontrib-serializinghtml 1.1.5              pyhd8ed1ab_2    conda-forge
stable-baselines3         2.2.1                    pypi_0    pypi
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
stdlibs                   2024.1.28                pypi_0    pypi
sympy                     1.11.1                   pypi_0    pypi
sysroot_linux-64          2.17                h4a8ded7_13    conda-forge
tabulate                  0.9.0              pyhd8ed1ab_1    conda-forge
tbb                       2021.11.0            h00ab1b0_1    conda-forge
tensorboard               2.10.0                   pypi_0    pypi
tensorboard-data-server   0.6.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.1                    pypi_0    pypi
termcolor                 2.4.0              pyhd8ed1ab_0    conda-forge
threadpoolctl             3.5.0                    pypi_0    pypi
tk                        8.6.13          noxft_h4845f30_101    conda-forge
toml                      0.10.2                   pypi_0    pypi
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.12.3                   pypi_0    pypi
torch                     2.4.0a0+gitc1dbc7e           dev_0    <develop>
torchfix                  0.2.0                    pypi_0    pypi
tqdm                      4.66.4                   pypi_0    pypi
trailrunner               1.4.0                    pypi_0    pypi
traitlets                 5.14.1             pyhd8ed1ab_0    conda-forge
triton                    3.0.0                    pypi_0    pypi
types-colorama            0.4.6                    pypi_0    pypi
types-jinja2              2.11.9                   pypi_0    pypi
types-markupsafe          1.1.10                   pypi_0    pypi
types-pkg-resources       0.1.3                    pypi_0    pypi
types-protobuf            3.19.18                  pypi_0    pypi
types-pyyaml              6.0.7                    pypi_0    pypi
types-requests            2.27.25                  pypi_0    pypi
types-tabulate            0.8.8                    pypi_0    pypi
types-urllib3             1.26.25.14               pypi_0    pypi
typing                    3.10.0.0           pyhd8ed1ab_0    conda-forge
typing-extensions         4.9.0                hd8ed1ab_0    conda-forge
typing-inspect            0.9.0                    pypi_0    pypi
typing_extensions         4.9.0              pyha770c72_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
ufmt                      2.1.0                    pypi_0    pypi
ukkonen                   1.0.1            py38h7f3f72f_4    conda-forge
urllib3                   2.2.0              pyhd8ed1ab_0    conda-forge
usort                     1.0.6                    pypi_0    pypi
virtualenv                20.25.0            pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
werkzeug                  3.0.1                    pypi_0    pypi
wheel                     0.42.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yarl                      1.9.4            py38h01eb140_0    conda-forge
z3-solver                 4.13.0.0                 pypi_0    pypi
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge

Environment info

active environment : pytorch-dev
    active env location : /home/lezcano/.conda/envs/pytorch-dev
            shell level : 2
       user config file : /home/lezcano/.condarc
 populated config files : /etc/conda/condarc
                          /home/lezcano/.condarc
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.8.18.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen2
                          __conda=23.11.0=0
                          __cuda=12.3=0
                          __glibc=2.35=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /home/lezcano/miniconda3  (writable)
      conda av data dir : /home/lezcano/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/lezcano/.conda/pkgs
       envs directories : /home/lezcano/.conda/envs
                          /home/lezcano/miniconda3/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.8.18 Linux/5.15.0-97-generic ubuntu/22.04.2 glibc/2.35 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5
                UID:GID : 1046:1049
             netrc file : None
           offline mode : False
isuruf commented 4 months ago

The issue is that linker flags like -L $PREFIX/lib are added to $CFLAGS which is wrong. They should only be added to $LDFLAGS

leofang commented 3 months ago

What Isuru said above makes sense to me.

vyasr commented 3 months ago

I agree, only compiler flags in CFLAGS and linker flags in LDFLAGS without intermixing.