sourcemod
sourcemod copied to clipboard
Error occured when trying to build sourcemod
Help us help you
- [x] I have checked that my issue doesn't exist yet.
- [x] I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
- [ ] I can always reproduce the issue with the provided description below.
Environment
-
Operating System version:
OS: Arch Linux on Windows 10 x86_64 Kernel: 5.15.79.1-microsoft-standard-WSL2
-
Game/AppID (with version if applicable): N/A
-
Current SourceMod version: latest
-
Current SourceMod snapshot: latest
-
Current Metamod: Source snapshot:
- [x] I have updated SourceMod to the latest version and it still happens.
- [x] I have updated SourceMod to the latest snapshot and it still happens.
- [x] I have updated SourceMM to the latest snapshot and it still happens.
Description
Hello, I'm new to this community. Please tell me if I do something wrong. Thank you.
I followed the wiki - Building sourcemod and tried to build sourcemod, but ambuild told me an error:

checkout-deps.sh told me that I have downloaded the lastest version of all repos.

I found it strange that when I followed the last step and executed ambuild, it told me command not found:
But I found it at location /home/deximy/.local/bin/ambuild and executed it succefully. I'm not sure if it would make a difference.
What's more, python ../configure.py also told me an error:

I have no idea why the error occured. Please help me.
Problematic Code (or Steps to Reproduce)
// TODO(you): code here to reproduce the problem
Logs
- Please attach in separate files: game output, library logs, kernel logs, and any other supporting information.
- In case of a crash, please attach minidump or dump analyze output.
Try
sudo pacman -Syu clang
export CC=clang CXX=clang++
python ../configure.py
To install AMBuild (in ~/Documents folder)
mkdir -p alliedmodders && cd alliedmodders
git clone https://github.com/alliedmodders/ambuild.git
python -m pip install ./ambuild # You can also use `sudo` if $PATH is only available with system environment