-
selsta
hyc: randomx seems to fail to compile now on a lot of OS
-
selsta
-
hyc
hmmm
-
hyc
that's odd, since the #includes for that haven't changed
-
hyc
which platform is that?
-
selsta
-
selsta
also you have to include `<stdio.h>` in `src/virtual_memory.c` due to `sscanf`
-
hyc
ugh thanks
-
hyc
too much lost between shuffling branches
-
selsta
but not sure yet what causes the complains about MAP_ANON and MAP_HUGETLB
-
hyc
yeah that makes no sense
-
moneromooo
I think ANON isn't on all Unices and HUGETLB is fairly recent to boot. Might need ifdefs ?
-
hyc
got builds running now across the rest of the platforms, will see
-
hyc
MAP_ANON is only used if MAP_ANONYMOUS isn't defined
-
hyc
but MAP_ANONYMOUS is the POSIX def, it should always be there
-
selsta
the same code worked previously as far as i can tell
-
hyc
right
-
selsta
hyc: maybe you have to declare the C version in randomx cmake
-
hyc
there's nothing in the diffs that changed around there
-
hyc
?
-
hyc
which cmake?
-
selsta
currently only CXX_STANDARD 11 is set, but not C_STANDARD 11 in randomx cmakelists
-
selsta
-
hyc
hmmm
-
hyc
seems like it may need _GNU_SOURCE, regardless of C version
-
hyc
odd that it compiles fine on my linux and macos boxes
-
hyc
hm, maybe the difference is that gitian is using gcc 7.5 and my linux box is gcc 10.3
-
hyc
setting C_STANDARD 11 property didn't help
-
hyc
fixed...
-
hyc
running all builds again
-
selsta
looking good now
-
selsta
all green
-
hyc
great
-
tusko
is there some particular version of boost that should (or should not be) be dynamically linked when building? have so many boost errors
-
hyc
we statically link
-
hyc
dynamic linking only works if library and main program are all built by same version of compiler. too unreliable
-
hyc
the official binaries use boost 1.64
-
moneromooo
At least 1.53 IIRC. 1.72 worked. I think 1.74 also did. If you use open openSSL >= 1.1, older boost doesn't work.
-
hyc
that or newer should work. my macos build uses 1.75.
-
hyc
1.64 also doesn't work on arm mac without small fixes
-
moneromooo
If you're using earlier than 1.53, upgrade. If you're using a very recent boost, we might need to patch, so post the errors on paste.debian.net. Otherwise, it's likely your problem.
-
selsta
hyc: I tried updating boost to 1.79 so that we can drop all the patches
-
selsta
but it's a huge mess, boost changed the library naming to attach -x64 and CMake stops finding the boost libs
-
selsta
found a couple different solutions but none worked on all operating systems
-
selsta
and then I gave up lol
-
selsta
moneromooo: we support 1.58 or newer
-
hyc
yuck. yeah any time you run into cmake problems might as well stop...
-
tusko
I definitely got a lot of warnings about what looked like some linked list writing bytes to something size 0.
-
tusko
that seemed sketchy
-
moneromooo
It'd be a useful report with the actual message(s),
-
jeffro256[m]
tusko I was getting that too, lemme see if I can reproduce it
-
moneromooo
Compile time or runtime ?
-
jeffro256[m]
Compile time
-
jeffro256[m]
-
jeffro256[m]
I haven't had any runtime issues AFAIK, but it really spams the crap out of the compiler output cause it's in the boost archive code
-
moneromooo
Ah, I think I remember seeing that one, IIRC I thought the compiler was full of it.
-
tusko
For me, I run `git clone --recursive
github.com/monero-project/monero.git && cd monero && git checkout release-v0.17 && USE_SINGLE_BUILDDIR=1 make` and get this error
bpa.st/TXWA
-
tusko
So that one is at compile time
-
moneromooo
I'll look again.
-
moneromooo
Shame it can't give traces to its chain of deduction, it'd make things easier.
-
jeffro256[m]
@tusko update your submodules
-
tusko
and then, after I force init and update the modules, yeah I get that same error jeffro256[m] just produced after
-
jeffro256[m]
`git submodule update --init --force`
-
tusko
Yup that worked, and now I get the error you demonstrated.
-
jeffro256[m]
moneromooo Thanks! I can take a look it a couple of days, it seems like it shouldn't be *too* difficult
-
moneromooo
I *think* after looking, I make a brute force program to call this with 0-N length to make sure it didn't overflow, but I'm not 100% sure. I'll do it soon.
-
jeffro256[m]
moneromooo I added another trace to that issue, idk if that will help
-
moneromooo
AFAICT it's fine and ASAN doesn't complain on ttps://paste.debian.net/1240372/
-
moneromooo
I'll post that.
-
selsta
luigi1111: merges?
-
selsta
.merges
-
xmr-pr
8046 8220 8226 8235 8262 8277 8278 8279 8280 8281 8293 8300 8301
-
selsta
.merge+ 8302 8304
-
xmr-pr
Added
-
luigi1111
Wow