parsec benchmark bodytrack build fails with: "ads/LockTypes.h:22:13: error: overriding 'virtual threads::LockType::~LockType() noexcept'"
Closed this issue · 2 comments
cirosantilli commented
I later found a dupe, but google won't index that obscure mailing list archive...... https://lists.cs.princeton.edu/pipermail/parsec-users/2018-February/001708.html
Commands:
cd parsec-3.0
. env.sh
parsecmgmt -a build -p bodytrack
Error message:
if /bin/bash ../../libtool --tag=CXX --mode=compile /usr/bin/g++
-DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g \
then mv -f ".deps/Thread.Tpo" ".deps/Thread.Plo"; else rm -f
".deps/Thread.Tpo"; exit 1; fi
mkdir .libs
/usr/bin/g++ -DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno
/usr/bin/g++ -DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fn1
if /bin/bash ../../libtool --tag=CXX --mode=compile /usr/bin/g++
-DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g \
then mv -f ".deps/ThreadGroup.Tpo" ".deps/ThreadGroup.Plo"; else rm -f
".deps/ThreadGroup.Tpo"; exit 1; fi
/usr/bin/g++ -DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno
/usr/bin/g++ -DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fn1
if /bin/bash ../../libtool --tag=CXX --mode=compile /usr/bin/g++
-DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g \
then mv -f ".deps/WorkerGroup.Tpo" ".deps/WorkerGroup.Plo"; else rm -f
".deps/WorkerGroup.Tpo"; exit 1; fi
/usr/bin/g++ -DHAVE_CONFIG_H -I.
-I/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads
-I../.. -pthread -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno
In file included from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.h:20:0,
from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.cpp:17:
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/Mutex.h:86:5:
error: looser throw specifier for 'virtual threads::Mutex::~Mutex()
throw (threads::MutexException)'
~Mutex() throw(MutexException);
^
In file included from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/Mutex.h:29:0,
from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.h:20,
from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.cpp:17:
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/LockTypes.h:22:13:
error: overriding 'virtual threads::LockType::~LockType() noexcept'
virtual ~LockType() {};
^
In file included from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.cpp:17:0:
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.h:88:5:
error: looser throw specifier for 'virtual
threads::WorkerGroup::~WorkerGroup() throw (threads'
~WorkerGroup();
^
In file included from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.h:18:0,
from
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/WorkerGroup.cpp:17:
/data/git/linux-kernel-module-cheat/parsec-3.0/pkgs/apps/bodytrack/src/TrackingBenchmark/threads/Thread.h:31:13:
error: overriding 'virtual threads::Runnable::~Runnable() noexcept'
virtual ~Runnable() {};
phgn0 commented
Had the same problem with the original parsec 3.0 (fixed via -std=gnu++98 CXX flag).
Your version here seems to have fixed this issue already (runs fine on Ubuntu 18.04).
Awesome work btw 👍
cirosantilli commented
Thanks @phgn0 ! Ah, I think I created the issue before this repo existed, then fixed it without and forgot about the error since it was in another repo.