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

[Intel C++ 9.1/Linux] linker error on __rw_atomic_add32

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • 21. Strings
    • None
    • Intel C++ 9.1/Linux x86_64

    Description

      In shared, optimized, thread-safe builds (12

      {dD}

      ) with Intel C++ 9.1 on Linux, most string tests are failing to link with the error below:

      icc -c -I$(TOPDIR)/include/ansi -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -cxxlib-nostd -O2 -w1 $(TOPDIR)/tests/strings/21.string.access.cpp
      $(TOPDIR)/tests/strings/21.string.access.cpp(308): warning #279: controlling expression is constant
      DEFINE_STRING_TEST_DISPATCH (test_access);
      ^

      $(TOPDIR)/tests/strings/21.string.access.cpp(258): warning #279: controlling expression is constant
      RW_ASSERT (!"test logic error: unknown access overload");
      ^

      icc 21.string.access.o -o 21.string.access -L$(BUILDDIR)/rwtest -lrwtest -cxxlib-nostd -lpthread -L$(BUILDDIR)/lib -Wl,-R$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd -lcxaguard -lsupc++ -lm
      ld: warning: type and size of dynamic symbol `__rw_atomic_add32' are not defined
      ld: dynamic variable `__rw_atomic_add32' is zero size
      ld: 21.string.access.o(.gnu.linkonce.t.Z11test_accessI8UserChar10UserTraitsIS0_E9UserAllocIS0_10AllocTypesIS0_EEEvT_PT0_PT1_RK10StringFuncRK14StringTestCase[.gnu.linkonce.t._Z11test_accessI8UserChar10UserTraitsIS0_E9UserAllocIS0_10AllocTypesIS0_EEEvT_PT0_PT1_RK10StringFuncRK14StringTestCase]+0x2c2): unresolvable R_386_PC32 relocation against symbol `_rw_atomic_add32'
      ld: final link failed: Nonrepresentable section on output
      gmake: *** [21.string.access] Error 1

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: