-
selsta
-
selsta
-
luigi1111w
plz check
-
selsta
luigi1111w: "successfully verified"
-
luigi1111w
whee
-
rnhmjoj
i'm trying to build monero-gui with the new build system but i'm getting an error one building one of the external deps.
-
rnhmjoj
-
selsta
never seen that, did you change anything?
-
selsta
or anything else special?
-
rnhmjoj
do you mean patching the source code? that should be unchanged
-
selsta
did you just do `make release` ?
-
selsta
try: rm -rf build monero
-
selsta
then git submodule update --init --force --recursive
-
selsta
and then make release
-
rnhmjoj
the submodule should be pointing to the corresponding monero release, right?
-
selsta
you don’t have to manually change the submodule
-
selsta
the tag has the correct submodule, just do submodule update --init --force --recursive
-
selsta
should be pointing to v0.17.0.1, yes
-
selsta
also which gcc version are you using?
-
rnhmjoj
this is part of the monero package in nixpkgs: the package is copying the source from monero instead of using git to avoid cloning twice the repository
-
rnhmjoj
i'll try using --recursive instead to see if that's the problem
-
rnhmjoj
gcc is 9.3.0
-
selsta
9.3.0 does not look super new so should be okay
-
rnhmjoj
now that i think about it, the error probably means DEF_MONERO_VERSION_SRELEASE is a macro that hasn't been defined, so the compiler is seeing: blabla = ;
-
selsta
I would try with --recursive
-
selsta
also note that the cmake build needs git, though I think qmake was the same
-
rnhmjoj
the build.sh script only used git to get the monero version, i used to write the version.js manually
-
rnhmjoj
nada, maybe git is needed to define that variable, let's try
-
xiphon
rnhmjoj: it should be working without Git
-
xiphon
for some reason it doesn't set VERSION_IS_RELEASE variable to hardcoded fallback value
-
xiphon
could you paste /build/source/build/version.cpp contents?
-
rnhmjoj
yeah, i figured that too
-
rnhmjoj
just a sec
-
xiphon
ah, well, i see the problem
-
xiphon
it detects that Git is installed on the machine
-
xiphon
based on that it assumes you are building monero from git repository
-
xiphon
please apply the patch to monero/cmake/Version.cmake
paste.debian.net/plain/1166108
-
xiphon
i'm interested in the few last lines it will print
-
rnhmjoj
yeah, the #define is empty
-
rnhmjoj
-
rnhmjoj
ok, i'm trying it
-
xiphon
^ with the patch the build terminate early
-
xiphon
Do you see "Found Git: ..." string in the cmake output?
-
xiphon
Or "WARNING: Git was not found" ?
-
rnhmjoj
uhm, the patch is not applying
-
rnhmjoj
but the warning (?) is git not found, i noticed it earlier
-
xiphon
Can't find the problem following the code
-
xiphon
Please provide steps to reproduce the issue
-
rnhmjoj
i edited the file manually, VERSION_IS_RELEASE is empty
-
rnhmjoj
so, here's what i found: VERSION_IS_RELEASE is not defined, cmake does not find git, sets VERSIONTAG=unknown, calls configure_file on version.cpp which fills in DEF_MONERO_VERSION_TAG but leaves DEF_MONERO_VERSION_IS_RELEASE undefined
-
rnhmjoj
IS_RELEASE seems to be defined in GenVersion.cmake, but this code is never executed when git is not found
-
xiphon
nope
-
xiphon
VERSION_IS_RELEASE is begin set to "false" if Git is not found
-
xiphon
-
xiphon
s/is begin/is being
-
xiphon
Are you sure you ain't using some really outdated monero sources?
-
xiphon
so selsta's advice would just work "the tag has the correct submodule, just do submodule update --init --force --recursive"
-
rnhmjoj
but that's in the monero source tree, the problem seems to be coming from monero-gui/cmake/version.cmake
-
rnhmjoj
i already tried using the git to fetch the submodule but it makes no difference
-
rnhmjoj
ah, that's why the patch didn't apply
-
xmr-pr
xiphon opened pull request #3131: cmake: remove unused code
-
xmr-pr
-
rnhmjoj
i managed to build with this patch:
hastebin.com/ayahogapor.lua
-
xmr-pr
viperperidot opened issue #3132: Bug report: Application icon does not display properly on Ubuntu
-
xmr-pr
-
xmr-pr
rating89us opened pull request #3133: LeftPanel: add hide balance icon in card
-
xmr-pr
-
xmr-pr
rating89us opened issue #3134: History: transaction history page is not refreshed during wallet sync
-
xmr-pr