Hi Bernd, unfortunately, that didn't work. I could install jcc3 on another machine which is connected to the internet using conda-forge (see the command below) without any problem. $ conda install -c conda-forge jcc
But, the machine that I have to run the experiments on does not have an internet connection. I tried to download the required packages on the machine with internet, copy them to the offline machine, and then install, but this also doesn't work. More surprisingly, I compared the two jcc.cpp files (of the downloaded conda package and the one in the source package) and they are identical. So, I think the issue should be somewhere else, otherwise I would face the same error while trying with conda-forge. No? Amin On Tue, Oct 24, 2017 at 8:05 AM, Bernd Fehling < bernd.fehl...@uni-bielefeld.de> wrote: > Hi Amin, > > PRIxMAX is a "C" conversion specifier macro for integer type of uintmax_t. > It looks like a bug in jcc3. > The original code is: > sprintf(buffer, "%0*"PRIxMAX, (int) hexdig, hash); > > Could be that a space between '"' and PRIxMAX is missing. > > A quick fix for testing could be either enter a space before PRIxMAX. > sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash); > or try with > sprintf(buffer, "%08x", (int) hexdig, hash); > > Regards > Bernd > > > Am 23.10.2017 um 18:21 schrieb Amin Farajian: > > Hi all, > > > > I recently moved to python3, so I'm trying to install the recent version > of > > Pylucene (version 6.5.0) which is compatible with python3. > > > > But, to install the jcc I get the following error which I have no idea > why > > it occurs: > > > > jcc3/sources/jcc.cpp: In function ‘PyObject* t_jccenv_strhash(PyObject*, > > PyObject*)’: > > jcc3/sources/jcc.cpp:214:27: error: expected ‘)’ before ‘PRIxMAX’ > > sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash); > > ^ > > jcc3/sources/jcc.cpp:214:54: warning: conversion lacks type at end of > > format [-Wformat=] > > sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash); > > ^ > > jcc3/sources/jcc.cpp:214:54: warning: too many arguments for format > > [-Wformat-extra-args] > > error: command 'gcc' failed with exit status 1 > > > > > > Do you have any idea about this issue? > > > > Thank you in advance, > > Amin > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >