Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.3, 4.1.4, 4.2.0, 4.2.1
    • Fix Version/s: 4.2.2
    • Component/s: Build and Installation
    • Labels:
      None
    • Environment:

      Sun C++ 5.8/Solaris 10

    • Severity:
      Compiler Warning

      Description

      A wide (64-bit) build of the library with Sun C++ 5.8 produces the warnings below:

      gmake[2]: Entering directory `/build/sebor/sunpro-5.8.j1-15S/lib'
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/codecvt.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/collate.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/ctype.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/facet.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/iso2022.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/locale_core.cpp
      "/amd/devco/sebor/dev/stdlib/src/locale_core.cpp", line 136: Warning: Conversion of 64 bit type value to "int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/locale_core.cpp", line 136: Warning: Conversion of 64 bit type value to "int" causes truncation.
      2 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/num_get.cpp
      "/amd/devco/sebor/dev/stdlib/src/num_get.cpp", line 422: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_get.cpp", line 451: Warning: Conversion of 64 bit type value to "int" causes truncation.
      2 Warning(s) detected.
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/num_put.cpp
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 413: Warning: Conversion of 64 bit type value to "const int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 413: Warning: Conversion of 64 bit type value to "const int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 722: Warning: Conversion of 64 bit type value to "int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 749: Warning: Conversion of 64 bit type value to "int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 779: Warning: Conversion of 64 bit type value to "int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/num_put.cpp", line 807: Warning: Conversion of 64 bit type value to "int" causes truncation.
      6 Warning(s) detected.
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/punct.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 170: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 183: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 200: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 187: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 350: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 363: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 380: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 385: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/punct.cpp", line 367: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      13 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/strstream.cpp
      "/amd/devco/sebor/dev/stdlib/include/strstream", line 188: Warning: std::istrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *).
      "/amd/devco/sebor/dev/stdlib/include/strstream", line 226: Warning: std::ostrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *).
      "/amd/devco/sebor/dev/stdlib/include/strstream", line 266: Warning: std::strstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *).
      3 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/time_put.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 413: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 414: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 415: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 416: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 417: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 605: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 630: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 2022: Warning: Conversion of 64 bit type value to "int" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 2660: Warning: Conversion of 64 bit type value to "const unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 2660: Warning: Conversion of 64 bit type value to "const unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 2760: Warning: Conversion of 64 bit type value to "const unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/src/time_put.cpp", line 2760: Warning: Conversion of 64 bit type value to "const unsigned" causes truncation.
      16 Warning(s) detected.
      ...
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/wcodecvt.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j1-15S/include -library=%none -g -xarch=v9 +w /amd/devco/sebor/dev/stdlib/src/wctype.cpp
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 244: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 250: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 257: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      "/amd/devco/sebor/dev/stdlib/include/loc/_localedef.h", line 308: Warning: Conversion of 64 bit type value to "unsigned" causes truncation.
      4 Warning(s) detected.
      CC -xar -o libstd15S.a assert.o atomic-cxx.o bitset.o catalog.o codecvt.o collate.o ctype.o ctype_bits.o exception.o export.o facet.o file.o instance.o ios.o ios_bits.o iostore.o iostream.o iso2022.o limits.o limits_bits.o locale_bits.o locale_body.o locale_classic.o locale_combine.o locale_core.o locale_eq.o locale_global.o locale_name.o memattr.o memory.o messages.o num_get.o num_put.o punct.o random.o setlocale.o string.o strstream.o strtol.o ti_collate.o ti_filebuf.o ti_insert_dbl.o ti_insert_int.o ti_insert_ptr.o ti_ios.o ti_istream.o ti_messages.o ti_money_get.o ti_money_put.o ti_moneypunct.o ti_num_get.o ti_num_put.o ti_numpunct.o ti_ostream.o ti_streambuf.o ti_string.o ti_stringbuf.o ti_time_get.o ti_time_put.o ti_wcollate.o ti_wfilebuf.o ti_winsert_dbl.o ti_winsert_int.o ti_winsert_ptr.o ti_wios.o ti_wistream.o ti_wmessages.o ti_wmoney_get.o ti_wmoney_put.o ti_wmoneypunct.o ti_wnum_get.o ti_wnum_put.o ti_wnumpunct.o ti_wostream.o ti_wstreambuf.o ti_wstring.o ti_wstringbuf.o ti_wtime_get.o ti_wtime_put.o time_get.o time_put.o tmpbuf.o typeinfo.o valarray.o vecbool.o version.o wcodecvt.o wctype.o
      gencat rwstderr.cat /amd/devco/sebor/dev/stdlib/src/rwstderr.msg
      gmake[2]: Leaving directory `/build/sebor/sunpro-5.8.j1-15S/lib'

        Issue Links

          Activity

          Hide
          Martin Sebor added a comment -

          Scheduled for 4.2.2 and assigned to Brad.

          Show
          Martin Sebor added a comment - Scheduled for 4.2.2 and assigned to Brad.
          Hide
          Martin Sebor added a comment -

          We still have some of these warnings in the library and a ton of them in the rest of the project:

          $ gunzip -c solaris-10-sparc-sunpro-5.9-12D-solaris-656010-log.gz.txt | grep "Warning, truncwarn:" | wc -l
          1167
          
          Show
          Martin Sebor added a comment - We still have some of these warnings in the library and a ton of them in the rest of the project: $ gunzip -c solaris-10-sparc-sunpro-5.9-12D-solaris-656010-log.gz.txt | grep "Warning, truncwarn:" | wc -l 1167
          Hide
          Martin Sebor added a comment -

          The library builds cleanly now.

          Show
          Martin Sebor added a comment - The library builds cleanly now.

            People

            • Assignee:
              Eric Lemings
              Reporter:
              Martin Sebor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h Time Not Required
                3h

                  Development