ampl / mp

An open-source library for mathematical programming
https://mp.ampl.com
Other
229 stars 42 forks source link

[mp-3.1.0] error: expected '>' before 'int64' #100

Closed sagitter closed 8 years ago

sagitter commented 8 years ago

Hi all,

I obtain these errors when compile mp on architectures ppc64/ppc64le:

In file included from /builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/sysinfo.cc:44:0:
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h: In function 'int64_t benchmark::cycleclock::Now()':
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h:82:23: error: expected type-specifier before 'int64'
   tbl &= -static_cast<int64>(tbu0 == tbu1);
                       ^
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h:82:23: error: expected '>' before 'int64'
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h:82:23: error: expected '(' before 'int64'
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h:82:23: error: 'int64' was not declared in this scope
/builddir/build/BUILD/mp-3.1.0/thirdparty/benchmark/src/cycleclock.h:82:43: error: expected ')' before ';' token
   tbl &= -static_cast<int64>(tbu0 == tbu1);
                                           ^
make[2]: *** [thirdparty/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o] Error 1

Full log: https://kojipkgs.fedoraproject.org//work/tasks/5264/14595264/build.log

Please, take a look.

vitaut commented 8 years ago

The error is in Google Benchmark and since the latter is not used at the moment I removed it in https://github.com/ampl/mp/commit/96e332bb8cb7ba925e3ac947d6df515496027eed.

vitaut commented 8 years ago

Thank for reporting!

sagitter commented 8 years ago

Thank you very much for your essential support.