reopen 892295 tags 892295 + help - fixed-upstream patch thanks Hi Manuel,
On Wed, Mar 07, 2018 at 10:44:25PM +0100, Manuel A. Fernandez Montecelo wrote: > We need support in this package for RISC-V, to bootstrap the riscv64 > architecture. > > Patches have been submitted upstream months ago, targetting development > versions: > > > https://github.com/jemalloc/jemalloc/commit/749caf14ae73a9ab1c48e538a8af09addbb35ee7 > > (the file was named differently before, I didn't bother to get the VCS > history > to chase all commits, but it's clear enough). > > Since we're still including older versions in unstable (and even > experimental), > and in Debian we can get by by defining LG_QUANTUM in d/rules, instead of > patching the upstream source code I propose a patch for debian/rules instead, > attached. > > It would be great if you could include it as a patch and release a new version > for unstable. I uploaded 5.1.0-2 to unstable moments ago, which includes the aforementioned commit. Unfortunately, it seems like the build fails due to atomics-related complications, which judging from similar bug reports, could be fixed by passing -pthread instead of -lpthread. I filed this upstream[1] and that seemed like a good idea to them. 1: https://github.com/jemalloc/jemalloc/issues/1401 I then experimented with building with that option on a riscv64 qemu-user-static container locally, but I came across random issues when running the test suite, like some allocation issues, or processes hanging etc. The build with the same option on amd64 seems to have worked fine. I wonder if this has something to do with jemalloc or my (weirdly emulated) environment, bug regardless... I would love your help, if you have a spare moment :) Regards, Faidon