Can't build project with gotch v0.9.0
vbugaevskii opened this issue · comments
Vladimir Bugaevskii commented
Hi!
I have problems with building my project using v0.9.0. There is a long log error, but the main problem is:
error: #error You need C++17 to compile PyTorch
My setup:
vbugaevskii@vm:~/go-morph$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vbugaevskii@vm:~/go-morph$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vbugaevskii@vm:~/go-morph$ go version
go version go1.20.5 linux/amd64
vbugaevskii@vm:~/go-morph$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
vbugaevskii@vm:~/go-morph$ cat /usr/local/lib/libtorch/build-version
2.1.0+cpu
Vladimir Bugaevskii commented
Previous working configuration:
vbugaevskii@vm:~/go-morph$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vbugaevskii@vm:~/go-morph$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vbugaevskii@vm:~/go-morph$ go version
go version go1.18.1 linux/amd64
vbugaevskii@vm:~/go-morph$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
vbugaevskii@vm:~/go-morph$ cat /usr/local/lib/libtorch/build-version
1.11.0+cpu
sugarme commented
That's correct. We do need clang-17/clang++-17 for compiling. Please install clang-17 and change .bashrc accordingly.
Vladimir Bugaevskii commented
Thx, managed to do this.