Comments (6)
Cannot reproduce this on g++-4.7.0. What is your version?
from opm-core.
@atgeirr
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, from Ubuntu Precise (12.04)
from opm-core.
I tried to reproduce this issue on a different system (CentOS 5.8). Details as follows
$ gcc47 --verbose
Using built-in specs.
COLLECT_GCC=gcc47
COLLECT_LTO_WRAPPER=/work/encap/gcc-4.7.0+0/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /work/src/build/gcc/470/../../../gcc-4.7.0/configure --prefix=/work/encap/gcc-4.7.0+0 --enable-languages=c,c++,fortran --program-suffix=47
Thread model: posix
gcc version 4.7.0 (GCC)
OPM-Core configured as
$ ./config.status --version
OPM Core Library config.status 0.1
configured by ../../configure, generated by GNU Autoconf 2.59,
with options "'--cache-file=core-conf.cache' '--prefix=/home/bska/work/opm/code/inst/debug-gcc47/usr/local' 'CXX=g++47' 'CC=gcc47' 'F77=gfortran47' 'FC=gfortran47' 'CPPFLAGS=-DHAVE_NULLPTR' 'CFLAGS=-ggdb3 -pipe -O0 -Wall -Wextra -fopenmp -ansi -pedantic -Wformat-nonliteral -Wcast-align -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wconversion -Wwrite-strings -Wno-conversion -Wchar-subscripts -Wredundant-decls' 'CXXFLAGS=-ggdb3 -std=c++11 -pipe -O0 -Wall -Wextra -ansi -fopenmp -pedantic -Wformat-nonliteral -Wcast-align -Wpointer-arith -Wmissing-declarations -Wundef -Wcast-qual -Wshadow -Wconversion -Wwrite-strings -Wno-conversion -Wchar-subscripts -Wredundant-decls -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1' '--with-boost=/work' '--with-boost-libdir=/work/lib64'"
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
This particular build completes without issue. How do you configure
your build?
from opm-core.
@atgeirr @bska
Sorry for writing such a bad error report (I was in a rush). The error message is:
opm/core/wells/WellsGroup.cpp: In member function 'virtual std::pair<Opm::WellNode*, double> Opm::WellNode::getWorstOffending(const std::vector&, const std::vector&, Opm::ProductionSpecification::ControlMode)':
opm/core/wells/WellsGroup.cpp:773:72: error: no matching function for call to 'make_pair(Opm::WellNode* const, double)'
opm/core/wells/WellsGroup.cpp:773:72: note: candidate is:
/usr/include/c++/4.6/bits/stl_pair.h:262:5: note: template<class _T1, class _T2> std::pair<typename std::__decay_and_strip<_T1>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
I suspect this is a case of 'standard-changed-in-the-meantime-or-not-implemented-yet' in my compiler. I will look into it. (P.S. I just ./configure
, on a system more or less as described in the README)
from opm-core.
Update: There is definitely something fishy with the compiler. It shuts up with a const_cast<WellNode*>(this)
, but the method isn't marked as const.
from opm-core.
I reckon this problem will go away with #81. Close this issue if that pull request goes through without problems on other platforms as well.
from opm-core.
Related Issues (20)
- Some tests break after OPM/opm-parser#768 HOT 1
- Initialization and restart HOT 1
- Failing test_relpermdiagnostics HOT 4
- Dereferencing of end iterator happens in initStateEquil.hpp
- test_pinchprocessor is broken? HOT 3
- opm-core build fails HOT 4
- parameter's ouput does not show up in .CASE_NAME.DEBUG HOT 2
- Allow passing the size of the initial time step to adaptive time stepper HOT 1
- Runtime failure in "linsolver" test - umfpack not configured HOT 2
- Add restart test with no wells present.
- WellState::init has memory problems HOT 7
- Don't we need to keep track of (artificially) shut completions in the simulator for output? HOT 3
- Windows Installer (guide) failed HOT 3
- Compilation error due to not finding opm/output/data/Wells.hpp HOT 2
- Broken test HOT 3
- Multiple definitions of OPM_THROW HOT 1
- opm-core broken related to petsc HOT 2
- Some files missing? HOT 2
- Question: How OPM handles well sources in multi-cell wells? HOT 4
- Installing OPM in CentOS 8.1 (RPM) HOT 3
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 opm-core.