Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-595

[EDG eccp/Linux] error with optimization on long long in <pthreadtypes.h>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.2.1
    • Build and Installation
    • None
    • EDG eccp 3.10 with gcc 4.1.1-52.el5 on Red Hat Enterprise Linux Server release 5 (Tikanga)

    • Compiler Error

    Description

      The library fails to compile with the EDG eccp demo on Linux in optimized mode (see below). Since the EDG eccp demo is expected to be used only (mainly?) for conformance testing I'm leaving the Priority at Major rather than marking the issue a Blocker as would otherwise be the case, and scheduling it for 4.2.1.

      From nightly build logs:

      ### gmake builddir BUILDMODE=pthreads,archive,optimized,narrow CONFIG=eccp.config
      creating BUILDDIR=/build2/batman/5.0.0/builds/34159501/source-buildspace/build
      generating /build2/batman/5.0.0/builds/34159501/source-buildspace/build/makefile.in from /build2/batman/5.0.0/builds/34159501/source-buildspace/etc/config/eccp.config
      build directory created: BUILDDIR=/build2/batman/5.0.0/builds/34159501/source-buildspace/build
      
      ### gmake config
      gmake[1]: Entering directory `$(BUILDDIR)'
      gmake[2]: Entering directory `$(BUILDDIR)/include'
      gmake config
      gmake[3]: Entering directory `$(BUILDDIR)/include'
      
      configuring stdcxx 4.2.0 for eccp-3.9 on linux-2.6.18-8.el5xen-x86_64
      
      checking if the compiler is sane                   ok (invoked with eccp)
      checking if the linker is sane                     ok (invoked with eccp)
      checking system architecture                       ILP32 little endian
      ...
      gmake: Entering directory `$(BUILDDIR)/lib'
      eccp -c -I$(TOPDIR)/include/ansi   -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include  -A -x --template_directory=$(BUILDDIR)/lib -O   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815    $(TOPDIR)/src/assert.cpp
      eccp -c -I$(TOPDIR)/include/ansi   -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include  -A -x --template_directory=$(BUILDDIR)/lib -O   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815    $(TOPDIR)/src/bitset.cpp
      "/usr/include/bits/pthreadtypes.h", line 121: error #450-D: the type "long
                long" is nonstandard
            __extension__ unsigned long long int __total_seq;
                                        ^
      
      "/usr/include/bits/pthreadtypes.h", line 122: error #450-D: the type "long
                long" is nonstandard
            __extension__ unsigned long long int __wakeup_seq;
                                        ^
      
      "/usr/include/bits/pthreadtypes.h", line 123: error #450-D: the type "long
                long" is nonstandard
            __extension__ unsigned long long int __woken_seq;
                                        ^
      
      "/usr/include/bits/pthreadtypes.h", line 129: error #450-D: the type "long
                long" is nonstandard
          __extension__ long long int __align;
                             ^
      
      4 errors detected in the compilation of "$(TOPDIR)/src/bitset.cpp".
      gmake: *** [bitset.o] Error 2
      

      Attachments

        Issue Links

          Activity

            People

              sebor Martin Sebor
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 3h
                  1h