Ubuntu compiling error.

35 views
Skip to first unread message

Stefan Pöter

unread,
Oct 1, 2011, 7:05:35 AM10/1/11
to google-...@googlegroups.com
I've installed all dependencies. When I type in make, I get this error:

../../../third_party/cityhash/city.h:52:18: error: conflicting declaration ‘typedef uint64_t uint64’
../../../base/integral_types.h:41:28: error: ‘uint64’ has a previous declaration as ‘typedef long long unsigned int uint64’
run_tests.cc: In function ‘bool gjstest::RunTests(const gjstest::NamedScripts&, const std::string&, std::string*, std::string*)’:
run_tests.cc:200:46: warning: comparison between signed and unsigned integer expressions
make[1]: *** [run_tests.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/stefan/tmp/gjstest-1.0.4/gjstest/internal/cpp'
make: *** [gjstest/internal/cpp/gjstest_main.a] Fehler 2

Any ideas?

rv.maksim

unread,
Oct 3, 2011, 2:11:08 PM10/3/11
to Google JS Test
I solved this problem, replaced uint64 on uint64_t in all files
cityhash.

Aaron Jacobs

unread,
Oct 3, 2011, 5:35:38 PM10/3/11
to google-...@googlegroups.com
Hi Stefan,

Thanks for the problem report. I've filed this issue and will try to
get to it asap:

http://code.google.com/p/google-js-test/issues/detail?id=7

In the meantime, rv.maksim's suggested workaround (replace uint64 with
uint64_t in cityhash files) will probably work.

Aaron

Aaron Jacobs

unread,
Oct 3, 2011, 5:56:57 PM10/3/11
to google-...@googlegroups.com
Hi Stefan,

I just submitted this patch, which I think should fix your problem:

http://code.google.com/p/google-js-test/source/detail?r=cdac3c90e386

Could you try cloning the git repo and building at HEAD? Let me know
how it goes.

Thanks,
Aaron

Stefan Pöter

unread,
Oct 3, 2011, 6:10:44 PM10/3/11
to google-...@googlegroups.com
Hi Aaron,

it works! :-)

Thanks,
Stefan
Reply all
Reply to author
Forward
0 new messages