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

[SGI MIPSpro/IRIX] unsats on pthread_once()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: Configuration
    • Labels:
      None
    • Environment:

      SGI MIPSpro 7.41/IRIX 6.5

      Description

      All programs are failing to link due to an unsat on pthread_once() referenced from the library (once.o):

      gmake: Entering directory `$(BUILDDIR)/examples'
      CC -c -I$(TOPDIR)/include/ansi -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include -O -OPT:Olimit=0 -64 -ansiW -woff1429,1460,1521,3150,3333 $(TOPDIR)/examples/manual/accumulate.cpp
      CC accumulate.o -o accumulate -Wl,-woff,84 -LANG:std=off -lpthread -64 -L$(BUILDDIR)/lib -lstd -lm

      — C++ prelinker: accumulate.o —
      CC -DEFAULT:abi=n32:isa=mips4:proc=r10k -c -I$(TOPDIR)/include/ansi -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include -O -OPT:Olimit=0 -64 -ansiW -woff1429,1460,1521,3150,3333 $(TOPDIR)/examples/manual/accumulate.cpp

      — C++ prelinker: accumulate.o —
      CC -DEFAULT:abi=n32:isa=mips4:proc=r10k -DEFAULT:abi=n32:isa=mips4:proc=r10k -c -I$(TOPDIR)/include/ansi -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include -O -OPT:Olimit=0 -64 -ansiW -woff1429,1460,1521,3150,3333 $(TOPDIR)/examples/manual/accumulate.cpp
      ld64: ERROR 33 : Unresolved text symbol "pthread_once" – 1st referenced by $(BUILDDIR)/lib/libstd.a(once.o).
      Use linker option -v to see when and which objects, archives and dsos are loaded.
      ld64: INFO 152: Output file removed because of error.
      gmake: *** [accumulate] Error 2

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: