mamba
mamba copied to clipboard
can't find files in mamba/build/ when build from source
Hi, I am trying to build the mamba from the source with pip install --no-build-isolation -e . and it fails bc it can't find files in mamba/build/. I have no idea why.
g++ -pthread -B /home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/zp70/anaconda3/envs/prot_lm_scaling/lib -Wl,-rpath-link,/home/zp70/anaconda3/envs/prot_lm_scaling/lib -L/home/zp70/anaconda3/envs/prot_lm_scaling/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/zp70/anaconda3/envs/prot_lm_scaling/lib -Wl,-rpath-link,/home/zp70/anaconda3/envs/prot_lm_scaling/lib -L/home/zp70/anaconda3/envs/prot_lm_scaling/lib /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_bf16_complex.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_bf16_real.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp16_complex.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp16_real.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp32_complex.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp32_real.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_bf16.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_fp16.o /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_fp32.o -L/home/zp70/anaconda3/envs/prot_lm_scaling/lib/python3.10/site-packages/torch/lib -L/usr/local/cuda-11.4/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-cpython-310/selective_scan_cuda.cpython-310-x86_64-linux-gnu.so
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_bf16_complex.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_bf16_real.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp16_complex.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp16_real.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp32_complex.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_bwd_fp32_real.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_bf16.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_fp16.o: No such file or directory
/home/zp70/anaconda3/envs/prot_lm_scaling/compiler_compat/ld: cannot find /home/zp70/github_projs/PTM_data_analysis/protein-lm-scaling/protein_lm/modeling/models/mamba/build/temp.linux-x86_64-cpython-310/csrc/selective_scan/selective_scan_fwd_fp32.o: No such file or directory
collect2: error: ld returned 1 exit status
error: command '/usr/bin/g++' failed with exit code 1
I have the same problem in WSL, but I didn't encounter this issue in Nvidia Docker, where it works normally.