Giter VIP home page Giter VIP logo

Comments (6)

atgeirr avatar atgeirr commented on July 19, 2024

Cannot reproduce this on g++-4.7.0. What is your version?

from opm-core.

rolk avatar rolk commented on July 19, 2024

@atgeirr
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, from Ubuntu Precise (12.04)

from opm-core.

bska avatar bska commented on July 19, 2024

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.

rolk avatar rolk commented on July 19, 2024

@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.

rolk avatar rolk commented on July 19, 2024

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.

rolk avatar rolk commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.