Closed PowaBanga closed 3 months ago
1st error makes no sense, std::uint8_t
is in #include <cstdint>
Compiler args are sus, i do not recall project defining them, did you add them?
This could have change behavior that much.
No, here is my build script :
pkgname=netradiant-custom
pkgver=20221212
pkgrel=1
pkgdesc="Open-source, cross-platform level editor for id Tech based games."
url="https://github.com/Garux/netradiant-custom"
depends=('qt5-base' 'glib2' 'libxml2' 'zlib' 'libpng')
makedepends=('wget' 'svn' 'gcc' 'make')
source=("https://github.com/Garux/netradiant-custom/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('ef99477bf822de726197bec6366a8d3d0de2640d9d76faa97ddf31300971bfea')
license=('custom')
arch=('any')
build () {
cd "$srcdir/$pkgname-$pkgver"
echo $PWD
make
}
I do not undurstant, what should i do ?
Apparently your build system adds some params either directly or to CFLAGS
/CXXFLAGS
/CPPFLAGS
vars. Or latter are modified in some other way.
Idk if they may stop compilation, but some are outta place definitely, e.g. enabling exceptions, while project clearly disables them.
Supposedly working build way is https://github.com/Garux/netradiant-custom/blob/master/COMPILING#L21
Here is my build script works great on Arch/Manjaro.
git clone --recursive https://github.com/Garux/netradiant-custom.git cd netradiant-custom make cd install ./radiant.x86_64
I never tried your PKGbuild script. I will give it a go now.
I get different errors though. Here is the tail end of my compile using your pkgbuild script:
g++ tools/quake3/common/cmdlib.cpp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -fPIC -std=c++17 -Wreorder -fno-exceptions -fno-rtti -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libpng16 -Itools/quake3/common -Ilibs -Iinclude -Ilibs/assimp/include -DNDEBUG -DPOSIX -DXWINDOWS -DRADIANT_VERSION="\"1.5.0n-git-78f8977\"" -DRADIANT_MAJOR_VERSION="\"5\"" -DRADIANT_MINOR_VERSION="\"0\"" -DRADIANT_ABOUTMSG="\"Custom build\"" -DQ3MAP_VERSION="\"2.5.17n-git-78f8977\"" -DRADIANT_EXECUTABLE="\"x86_64\"" -c -o tools/quake3/common/cmdlib.o
g++ tools/quake3/common/qimagelib.cpp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -fPIC -std=c++17 -Wreorder -fno-exceptions -fno-rtti -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libpng16 -Itools/quake3/common -Ilibs -Iinclude -Ilibs/assimp/include -DNDEBUG -DPOSIX -DXWINDOWS -DRADIANT_VERSION="\"1.5.0n-git-78f8977\"" -DRADIANT_MAJOR_VERSION="\"5\"" -DRADIANT_MINOR_VERSION="\"0\"" -DRADIANT_ABOUTMSG="\"Custom build\"" -DQ3MAP_VERSION="\"2.5.17n-git-78f8977\"" -DRADIANT_EXECUTABLE="\"x86_64\"" -c -o tools/quake3/common/qimagelib.o
In file included from tools/quake3/common/qimagelib.cpp:28:
tools/quake3/common/vfs.h:41:6: error: ‘vector’ in namespace ‘std’ does not name a template type
41 | std::vector<CopiedString> vfsListShaderFiles( const char *shaderPath );
| ^~~~~~
tools/quake3/common/vfs.h:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | /*
tools/quake3/common/vfs.h:45:13: error: ‘vector’ in namespace ‘std’ does not name a template type
45 | extern std::vector<CopiedString> g_strForbiddenDirs;
| ^~~~~~
tools/quake3/common/vfs.h:45:8: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
45 | extern std::vector<CopiedString> g_strForbiddenDirs;
| ^~~
make: *** [Makefile:507: tools/quake3/common/qimagelib.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
-> error making: netradiant-custom-exit status 4
-> Failed to install the following packages. Manual intervention is required:
netradiant-custom - exit status 4
Equal type of error tho, complains about STL inclusion, while it's clearly included: https://github.com/Garux/netradiant-custom/blob/master/tools/quake3/common/vfs.h#L33
I'm maintaining aur/netradiant-custom-git
, PKGBUILD here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=netradiant-custom-git - please try this if you are on ArchLinux and if you have issues raise on the AUR instead.
It seems like OP has messed up their /etc/makepkg.conf
, which injects CFLAGS etc. during makepkg
, like Garux hinted at.
@Garux IMO this issue can be closed.
Hi, I am on archlinux, updated, and the compilation fail :
Does anybody have an idea why ?