Closed vinisalazar closed 5 years ago
Hi, what's your system and gcc version please? (commands uname -ar
and gcc --version
). Also tar.gz
files cannot be decompressed using pugz yet as they're not text files, sorry.
Output of uname -ar
:
Linux mussismilia.cl.biologia.ufrj.br 3.7.10-1.40-desktop #1 SMP PREEMPT Thu Jul 10 11:22:12 UTC 2014 (9b06319) x86_64 x86_64 x86_64 GNU/Linux
Output of gcc --version
:
gcc (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]
The .tar explanation makes sense. Thanks.
Hi, I just tested it on a text file (not .tar) and it worked. I made these small changes like I mentioned, so it could compile.
Thanks for this investigation. I think @Piezoid will follow-up.
Hi, thanks for the report.
The INVALID_LITERAL
is triggered because non ASCII files are not supported.
In theory the algorithm could handle it, but with worse performance. So we don't have yet a mode that degrade to binary file handling.
It's seems that MADV_HUGEPAGE
is not supported by your libc (from 2002 it seems, but your kernel does support it). It's only a hint to the virtual memory subsystem to spare some TLB entries. We should disable it when MADV_HUGEPAGE
is not defined.
I'll substitute -lpthread
for -pthread
, it's seems necessary to support weird builds environment such as a half used anaconda... (If gcc is from your system, why it is trying to use anaconda's libs ?)
My freshly installed, but already crippled anaconda is stuck on "Solving environment: /" so I can't reproduce right now.
Could you try this and paste the resulting link, please ? It's for diagnostics.
git stash push Makefile # stash your modified makefile
{ echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH; which "${CXX:-g++}"; make clean; make V=1 CFLAGS='-v -Wl,-v' } 2>&1 | curl -F 'sprunge=<-' http://sprunge.us
git stash pop # get it back
@Piezoid do you mean git push
or git stash
?
Oops, it's git stash push
indeed.
This issue should be fixed in master. Can you give a try ?
Hi @Piezoid and @rchikhi ,
I made a fresh clone from master and it compiled and worked flawlessly, so that seems to have fixed it.
Thank you very much for your prompt response and fix. I will be closing this issue.
Hi,
I saw your arXiv paper and was excited to try the lib. When I try to compile pugz, I get this:
I followed the CLI's suggestion and replaced those strings by running
sed -i -- 's/MADV_HUGEPAGE/MADV_MERGEABLE/g' */*
. This changedlib/memory.hpp
andprograms/prog_util.hpp
Obviously changing source code unadvised is not recommended, but I was only experimenting.I then would get this error:
This was resolved by adding
-pthread
to the compiler flags in the Makefile.So now the program compiled without errors. But it does not work:
Any ideas?
Thank you for any assistance you can provide.
PS: I read thorugh #8 but because I would get a different error, thought it would be good to create a different issue.