Comments (4)
Hi @dasebe, I encountered the same issue when trying to compile using both g++ and clang++ on OSX. I found the root cause is the move statements as mentioned in the error by OP. The reason you aren't seeing it in GCC 7.2.0 is because -Wall
doesn't turn on -Wpessimizing-move
which catches these kinds of warnings. The latest version of GCC, clang (the default versions on OSX) turns on -Wpessimizing-move
in -Wall
.
Reference docs:
GCC 7.2.0
GCC 10.0.0
Fix is to remove the call to move in cache.h
at line 79 and webcachesim.cpp
at line 24.
from webcachesim.
Hi @lakshit07,
which compiler are you using?
I just checked the current version and with g++ (GCC) 7.2.0 there are no compilation warnings or errors. I've also checked GCC 6, and all work as well.
Are you maybe using LLVM/Clang? I don't typically use that compiler, but I'm happy to help debug and fix. Does Clang's suggestion work for you?
from webcachesim.
Hi @dasebe
On running g++ --version
I get
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr /include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Which Clang suggestion are you referring to?
from webcachesim.
Entirely right, fixed in 26223b2
from webcachesim.
Related Issues (9)
- Create a proper Makefile HOT 1
- Doesn't compile on Windows / Visual C++ 2015 HOT 1
- Update readme with simulation result plot
- Update example docs HOT 3
- Not the expected results HOT 3
- Tracegenerator has segment fault when the number of unique object too large HOT 4
- Exception opening file /trace/wiki2018.tr HOT 1
- Terminates early with "unable to append int64" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcachesim.