Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8033898

undefined symbol when build hotspot with Xcode5

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • infrastructure
    • OS X Maverick
      Xcode 5

    • b04
    • os_x

      Making adlc
      Undefined symbols for architecture x86_64:
        "std::ostream::operator<<(int)", referenced from:
            printline(std::ostream&, char const*, int, char const*, int, int) in filebuff.o
        "std::ios_base::Init::Init()", referenced from:
            ___cxx_global_var_init in adlparse.o
            ___cxx_global_var_init in archDesc.o
            ___cxx_global_var_init in arena.o
            ___cxx_global_var_init in dfa.o
            ___cxx_global_var_init in dict2.o
            ___cxx_global_var_init in filebuff.o
            ___cxx_global_var_init in forms.o
            ...
        "std::ios_base::Init::~Init()", referenced from:
            ___cxx_global_var_init in adlparse.o
            ___cxx_global_var_init in archDesc.o
            ___cxx_global_var_init in arena.o
            ___cxx_global_var_init in dfa.o
            ___cxx_global_var_init in dict2.o
            ___cxx_global_var_init in filebuff.o
            ___cxx_global_var_init in forms.o
            ...
        "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
            FileBuffRegion::print(std::ostream&) in filebuff.o
            printline(std::ostream&, char const*, int, char const*, int, int) in filebuff.o
        "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)", referenced from:
            printline(std::ostream&, char const*, int, char const*, int, int) in filebuff.o
            expandtab(std::ostream&, int, char, char, char) in filebuff.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[8]: *** [../generated/adfiles/adlc] Error 1
      make[7]: *** [ad_stuff] Error 2
      make[6]: *** [product] Error 2
      make[5]: *** [generic_build2] Error 2
      make[4]: *** [product] Error 2
      make[3]: *** [all_product_universal] Error 2
      make[2]: *** [universal_product] Error 2
      make[1]: *** [/Users/henryjen/ws/jdk9dev/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
      make: *** [hotspot-only] Error 2

            henryjen Henry Jen
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: