Menu

#34 clang errors out libTFELSystem_la-ProcessManager-c when using inconsistent C++ flags.

3.0
closed
nobody
None
2017-01-19
2017-01-19
No

This is new for 3.0.0 and doesn't happen in previous versions.
Setting the language standard inconsistently to '-std=c++11' when compiling C code is somethin clang doesn't like:
% cc --version
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
Target: x86_64-unknown-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin

--- libTFELSystem_la-ProcessManager-c.lo ---
...
basic_rstream.o
--- libTFELSystem_la-ProcessManager-c.lo ---
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
*** [libTFELSystem_la-ProcessManager-c.lo] Error code 1

make[4]: stopped in /usr/ports/science/tfel/work/tfel-3.0.0/src/System
--- libTFELSystem_la-SignalManager.lo ---

1 Attachments

Discussion

<< < 1 2 (Page 2 of 2)
  • Helfer Thomas

    Helfer Thomas - 2017-01-19

    What is the output of make V=1 (only the first lines...)

     
    • Pedro F. Giffuni

      % gmake V=1
      Making all in include
      gmake[1]: Entering directory '/usr/ports/science/tfel/work/tfel-3.0.0/include'
      gmake[1]: Nothing to be done for 'all'.
      gmake[1]: Leaving directory '/usr/ports/science/tfel/work/tfel-3.0.0/include'
      Making all in src
      gmake[1]: Entering directory '/usr/ports/science/tfel/work/tfel-3.0.0/src'
      Making all in Config
      gmake[2]: Entering directory '/usr/ports/science/tfel/work/tfel-3.0.0/src/Config'
      gmake[2]: Nothing to be done for 'all'.
      gmake[2]: Leaving directory '/usr/ports/science/tfel/work/tfel-3.0.0/src/Config'
      Making all in Tests
      gmake[2]: Entering directory '/usr/ports/science/tfel/work/tfel-3.0.0/src/Tests'
      /bin/sh ../../libtool  --tag=CXX   --mode=compile c++ -DPACKAGE_NAME=\"tfel\" -DPACKAGE_TARNAME=\"tfel\" -DPACKAGE_VERSION=\"3.0.0\" -DPACKAGE_STRING=\"tfel\ 3.0.0\" -DPACKAGE_BUGREPORT=\"tfel-contact@cea.fr\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tfel\" -DVERSION=\"3.0.0\" -DTFEL_SVN_REVISION=\"Unversioned\ directory\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DTFEL_ARCH64=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FENV=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_ISASCII=1 -DCOMPILER_FLAGS=\"\" -DCOMPILER_CXXFLAGS=\"-std=c++11\ -DTFEL_HAVE_NORETURN_ATTRIBUTE\" -DOPTIMISATION_FLAGS0=\"\ -fvisibility=hidden\ -O2\ \ -fvisibility-inlines-hidden\ -DNO_RUNTIME_CHECK_BOUNDS\ -DNDEBUG\" -DOPTIMISATION_FLAGS=\"-march=native\ \" -DOPTIMISATION_FLAGS2=\"-ffast-math\" -DCOMPILER_WARNINGS=\"-W\ -Wall\ -Wconversion\ -Wshadow\ -Wpointer-arith\ -Wcast-qual\ -Wcast-align\ -Wwrite-strings\ -Wctor-dtor-privacy\ -Wnon-virtual-dtor\ -Woverloaded-virtual\ -Wreturn-type\ -Wfloat-equal\ -Wno-endif-labels\ \ -Wsign-compare\ -Wmissing-format-attribute\ -Wno-multichar\ -Wno-deprecated-declarations\ -Wpacked\ -Wredundant-decls\ -Wlong-long\ -Wdisabled-optimization\ -Wunknown-pragmas\ -Wundef\ \ -Wreorder\" -DTFEL_PYTHON_INCLUDES=\"-I/usr/local/include/python2.7\" -DTFEL_PYTHON_LIBS=\"-L/usr/local/lib/\ -lpython2.7\" -DHAVE_PYTHON=1 -DGNUPLOT_PATH=\"gnuplot\" -DHAVE_GNUPLOT=1 -DCASTEM_CPPFLAGS=\"-DSUN\ -DUNIX64\ -DTHREAD\" -DHAVE_CURSES_H=1 -DHAVE_ASTER=1 -DASTER_ARCH=64 -DHAVE_ABAQUS=1 -I.  -I../../include -DTFELTests_EXPORTS -DSUN -DUNIX64 -DTHREAD -DNDEBUG -DNO_RUNTIME_CHECK_BOUNDS   -march=native -O2 -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing  -std=c++11  -fvisibility-inlines-hidden  -fvisibility=hidden  -std=c++11 -W -Wall -Wconversion -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreturn-type -Wfloat-equal -Wno-endif-labels  -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wlong-long -Wdisabled-optimization -Wunknown-pragmas -Wundef  -Wreorder  -fvisibility=hidden -O2  -fvisibility-inlines-hidden -DNO_RUNTIME_CHECK_BOUNDS -DNDEBUG -DTFEL_HAVE_NORETURN_ATTRIBUTE -MT libTFELTests_la-TestResult.lo -MD -MP -MF .deps/libTFELTests_la-TestResult.Tpo -c -o libTFELTests_la-TestResult.lo `test -f 'TestResult.cxx' || echo './'`TestResult.cxx
      
       
  • Helfer Thomas

    Helfer Thomas - 2017-01-19

    This is much better !
    I will commit the changes to the configure.ac and m4/gxx.m4 file in the rliv-3.0 and trunk branches tomorrow.
    Thank you for your help.
    I close the ticket, but do not hesitate if you have additonnal requests.
    Thomas

     
  • Helfer Thomas

    Helfer Thomas - 2017-01-19
    • status: open --> closed
     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.