I can't build this pkg
i get this error everytime
Kernel: 6.4.7-arch1-1
Command: makepkg -si
gui/statistics/Histogram.cpp:52:87: error: request for member ‘size’ in ‘h.Histogram::mBins’, which is of non-class type ‘const int’
52 | o << " " << h.mStart + i*(double)(h.mEnd - h.mStart)/(double)h.mBins.size() << " : " << h.mBins[i] << std::endl;
| ^~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
make[1]: *** [Makefile.retroshare-gui:21525: temp/linux-g++/obj/Histogram.o] Error 1
make[1]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/retroshare-gui/src'
make: *** [Makefile:127: retroshare_gui-make_first] Error 2
rmdir: failed to remove 'supportlibs/restbed/include': No such file or directory
cd openpgpsdk/src/ && ( test -e Makefile.openpgpsdk || /usr/bin/qmake -o Makefile.openpgpsdk /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/openpgpsdk/src/openpgpsdk.pro CONFIG-=debug CONFIG+=release CONFIG+=no_libresapihttpserver 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' 'QMAKE_CXXFLAGS_RELEASE=-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' 'RS_UPNP_LIB="miniupnpc"' RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=6 'RS_EXTRA_VERSION=""' ) && make -f Makefile.openpgpsdk
make[1]: Entering directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/openpgpsdk/src'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/openpgpsdk/src'
cd libbitdht/src/ && ( test -e Makefile.libbitdht || /usr/bin/qmake -o Makefile.libbitdht /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libbitdht/src/libbitdht.pro CONFIG-=debug CONFIG+=release CONFIG+=no_libresapihttpserver 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' 'QMAKE_CXXFLAGS_RELEASE=-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' 'RS_UPNP_LIB="miniupnpc"' RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=6 'RS_EXTRA_VERSION=""' ) && make -f Makefile.libbitdht
make[1]: Entering directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libbitdht/src'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libbitdht/src'
cd libretroshare/src/ && ( test -e Makefile.libretroshare || /usr/bin/qmake -o Makefile.libretroshare /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libretroshare/src/libretroshare.pro CONFIG-=debug CONFIG+=release CONFIG+=no_libresapihttpserver 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' 'QMAKE_CXXFLAGS_RELEASE=-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' 'RS_UPNP_LIB="miniupnpc"' RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=6 'RS_EXTRA_VERSION=""' ) && make -f Makefile.libretroshare
make[1]: Entering directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libretroshare/src'
cd /home/rrk/Downloads/retroshare/src/retroshare-0.6.6 && ( git submodule update --init supportlibs/udp-discovery-cpp || true ) && mkdir -p /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp && cd /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp && cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ "-DCMAKE_CXX_FLAGS=-pipe -Wno-deprecated -Wno-deprecated-declarations -Wno-cpp -Wno-inconsistent-missing-override -Wall -D_FILE_OFFSET_BITS=64" -DBUILD_EXAMPLE=OFF -DBUILD_TOOL=OFF -DCMAKE_INSTALL_PREFIX=. -B. -H/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp && make
error: pathspec 'supportlibs/udp-discovery-cpp' did not match any file(s) known to git
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in CMakeLists.txt:
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp
make[2]: Entering directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp'
[100%] Built target udp-discovery
make[2]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/supportlibs/udp-discovery-cpp'
make[1]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/libretroshare/src'
cd retroshare-gui/src/ && ( test -e Makefile.retroshare-gui || /usr/bin/qmake -o Makefile.retroshare-gui /home/rrk/Downloads/retroshare/src/retroshare-0.6.6/retroshare-gui/src/retroshare-gui.pro CONFIG-=debug CONFIG+=release CONFIG+=no_libresapihttpserver 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' 'QMAKE_CXXFLAGS_RELEASE=-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' 'RS_UPNP_LIB="miniupnpc"' RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=6 'RS_EXTRA_VERSION=""' ) && make -f Makefile.retroshare-gui
make[1]: Entering directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/retroshare-gui/src'
g++ -c -pipe -Wno-deprecated -Wno-deprecated-declarations -Wno-cpp -Wno-inconsistent-missing-override -D_FILE_OFFSET_BITS=64 -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 -D_REENTRANT -flto -fno-fat-lto-objects -Wall -Wextra -fPIC -DV07_NON_BACKWARD_COMPATIBLE_CHANGE_001 -DV07_NON_BACKWARD_COMPATIBLE_CHANGE_002 -DV07_NON_BACKWARD_COMPATIBLE_CHANGE_003 -DRS_MAJOR_VERSION=0 -DRS_MINOR_VERSION=6 -DRS_MINI_VERSION=6 -DRS_EXTRA_VERSION=\"\" -DRS_USE_GXS_DISTANT_SYNC -DRS_ENABLE_GXS -DRS_GXS_SEND_ALL -DRS_SERVICE_TERMINAL_WEBUI_PASSWORD -DRS_SERVICE_TERMINAL_LOGIN -DRS_NO_WARN_DEPRECATED -DRS_NO_WARN_CPP -DRS_GXS_TRANS -DRS_USE_BITDHT -DRS_DIRECT_CHAT -DRS_USE_I2P_BOB -DRS_BROADCAST_DISCOVERY -DRS_USE_LIBMINIUPNPC -DTARGET=\"retroshare\" -DRS_RELEASE_VERSION -DHAVE_XSS -DRS_USE_CIRCLES -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I. -I../../libretroshare/src -I../../openpgpsdk/src -I../../libbitdht/src -I../../supportlibs/udp-discovery-cpp -Iinclude -Itemp/ui -I/usr/include/qt -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtXml -I/usr/include/qt/QtCore -Itemp/moc -I/usr/lib/qt/mkspecs/linux-g++ -o temp/linux-g++/obj/Histogram.o gui/statistics/Histogram.cpp
In file included from gui/statistics/Histogram.cpp:23:
gui/statistics/Histogram.h:35:27: error: ‘uint32_t’ was not declared in this scope
35 | const std::vector<uint32_t>& entries() const { return mBins; }
| ^~~~~~~~
gui/statistics/Histogram.h:23:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
22 | #include <iostream>
+++ |+#include <cstdint>
23 |
gui/statistics/Histogram.h:35:35: error: template argument 1 is invalid
35 | const std::vector<uint32_t>& entries() const { return mBins; }
| ^
gui/statistics/Histogram.h:35:35: error: template argument 2 is invalid
gui/statistics/Histogram.h:41:29: error: ‘uint32_t’ was not declared in this scope
41 | std::vector<uint32_t> mBins;
| ^~~~~~~~
gui/statistics/Histogram.h:41:29: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
gui/statistics/Histogram.h:41:37: error: template argument 1 is invalid
41 | std::vector<uint32_t> mBins;
| ^
gui/statistics/Histogram.h:41:37: error: template argument 2 is invalid
gui/statistics/Histogram.cpp: In constructor ‘Histogram::Histogram()’:
gui/statistics/Histogram.cpp:26:31: error: expression list treated as compound expression in mem-initializer [-fpermissive]
26 | : mStart(0),mEnd(1.0),mBins(10,0)
| ^~~~~~~~~~~
gui/statistics/Histogram.cpp:26:37: warning: left operand of comma operator has no effect [-Wunused-value]
26 | : mStart(0),mEnd(1.0),mBins(10,0)
| ^~
gui/statistics/Histogram.cpp: In constructor ‘Histogram::Histogram(double, double, int)’:
gui/statistics/Histogram.cpp:30:35: error: expression list treated as compound expression in mem-initializer [-fpermissive]
30 | : mStart(start),mEnd(end),mBins(bins,0)
| ^~~~~~~~~~~~~
gui/statistics/Histogram.cpp:30:41: warning: left operand of comma operator has no effect [-Wunused-value]
30 | : mStart(start),mEnd(end),mBins(bins,0)
| ^~~~
gui/statistics/Histogram.cpp: In member function ‘void Histogram::draw(QPainter*) const’:
gui/statistics/Histogram.cpp:36:32: warning: unused parameter ‘painter’ [-Wunused-parameter]
36 | void Histogram::draw(QPainter *painter) const
| ~~~~~~~~~~^~~~~~~
gui/statistics/Histogram.cpp: In member function ‘void Histogram::insert(double)’:
gui/statistics/Histogram.cpp:42:21: error: ‘uint32_t’ was not declared in this scope
42 | long int bin = (uint32_t)floor((val - mStart)/(mEnd - mStart) * mBins.size());
| ^~~~~~~~
gui/statistics/Histogram.cpp:24:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
23 | #include "Histogram.h"
+++ |+#include <cstdint>
24 |
gui/statistics/Histogram.cpp:44:32: error: request for member ‘size’ in ‘((Histogram*)this)->Histogram::mBins’, which is of non-class type ‘int’
44 | if(bin >= 0 && bin < mBins.size())
| ^~~~
gui/statistics/Histogram.cpp:45:24: error: invalid types ‘int[long int]’ for array subscript
45 | ++mBins[bin];
| ^
gui/statistics/Histogram.cpp:40:31: warning: unused parameter ‘val’ [-Wunused-parameter]
40 | void Histogram::insert(double val)
| ~~~~~~~^~~
gui/statistics/Histogram.cpp: In function ‘std::ostream& operator<<(std::ostream&, const Histogram&)’:
gui/statistics/Histogram.cpp:50:79: error: request for member ‘size’ in ‘h.Histogram::mBins’, which is of non-class type ‘const int’
50 | o << "Histogram: [" << h.mStart << "..." << h.mEnd << "] " << h.mBins.size() << " bins." << std::endl;
| ^~~~
gui/statistics/Histogram.cpp:51:13: error: ‘uint32_t’ was not declared in this scope
51 | for(uint32_t i=0;i<h.mBins.size();++i)
| ^~~~~~~~
gui/statistics/Histogram.cpp:51:13: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
gui/statistics/Histogram.cpp:51:26: error: ‘i’ was not declared in this scope
51 | for(uint32_t i=0;i<h.mBins.size();++i)
| ^
gui/statistics/Histogram.cpp:51:36: error: request for member ‘size’ in ‘h.Histogram::mBins’, which is of non-class type ‘const int’
51 | for(uint32_t i=0;i<h.mBins.size();++i)
| ^~~~
gui/statistics/Histogram.cpp:52:87: error: request for member ‘size’ in ‘h.Histogram::mBins’, which is of non-class type ‘const int’
52 | o << " " << h.mStart + i*(double)(h.mEnd - h.mStart)/(double)h.mBins.size() << " : " << h.mBins[i] << std::endl;
| ^~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
make[1]: *** [Makefile.retroshare-gui:21525: temp/linux-g++/obj/Histogram.o] Error 1
make[1]: Leaving directory '/home/rrk/Downloads/retroshare/src/retroshare-0.6.6/retroshare-gui/src'
make: *** [Makefile:127: retroshare_gui-make_first] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
xiota commented on 2024-08-16 17:04 (UTC) (edited on 2024-08-25 00:56 (UTC) by xiota)
This package now uses pinned commits.