[Bug 102] New: [OSX][64-bit] Missing symbols of libgphobos2.a

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sat Feb 1 03:26:30 PST 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=102

             Bug #: 102
           Summary: [OSX][64-bit] Missing symbols of libgphobos2.a
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86
        OS/Version: OSX
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw at gdcproject.org
        ReportedBy: slavo5150 at yahoo.com


Created attachment 59
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=59
missing_symbols.txt

This was migrated from
https://bitbucket.org/goshawk/gdc/issue/210/osx-64-bit-missing-symbols-of-libgphobos2a

Dan Sănduleac created an issue 2011-06-01
***********************************************
Some symbols are missing, which raises linking errors when I use gdc (under Mac
OS X) - linking.txt.

See the output of nm libgphobos2.a attached (as the rightmost
missing_symbols.txt.. apparently can't delete/rename attachments.

Since then I've recompiled with gcc-4.5.3, but am facing the same issues. I'm
also attaching exactly the symbols reported as missing by ld (as the leftmost
missing_symbols.txt).

# examples for one of the missing symbols

# version just installed, compiled for x86-64
$ nm /opt/usr/local/lib/libgphobos2.a 2>&1 | grep _D11TypeInfo_AC6__initZ
0000000000001f20 S __D11TypeInfo_AC6__initZ
                 U _D11TypeInfo_AC6__initZ
                 U _D11TypeInfo_AC6__initZ
                 U _D11TypeInfo_AC6__initZ
# ---   unresolved symbols start with only ONE underscore .. (like on 32-bit
dmd?)

# GdcMac based on GCC 4.2.1 and dmd 1.064, 64-bit (for reference)
$ lipo -extract x86_64 /usr/lib/libgphobos.a -output libgphobos-x86_64.a
$ nm libgphobos-x86_64.a 2>&1 | grep _D11TypeInfo_AC6__initZ
                 U __D11TypeInfo_AC6__initZ
                 U __D11TypeInfo_AC6__initZ
00000000000003c0 S __D11TypeInfo_AC6__initZ
# ---   notice that all of the symbols start with TWO underscores

# DMD 2.052, official binary, only 32-bit
nm ~/Kits/DMD/dmd2/osx/lib32/libphobos2.a 2>&1 | grep _D11TypeInfo_AC6__initZ
00000000 D _D11TypeInfo_AC6__initZ


$ /opt/usr/local/bin/gdc -v
Using built-in specs.
COLLECT_GCC=/opt/usr/local/bin/gdc
COLLECT_LTO_WRAPPER=/opt/usr/local/bin/../libexec/gcc/x86_64-apple-darwin10/4.5.3/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5.3/configure --build=x86_64-apple-darwin10
--enable-languages=c,d --with-system-zlib --disable-nls --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking
--enable-fully-dynamic-string --disable-multilib --disable-shared
--enable-checking=release --with-local-prefix=/opt/local
Thread model: posix
gcc version 4.5.3 20110428 (gdc hg, using dmd 2.052) (GCC)



Dan Sănduleac - 2011-06-01
***********************************************
* edited description


Dan Sănduleac - 2011-06-01
***********************************************
* edited description


Dan Sănduleac - 2011-06-02
***********************************************
* changed title to Missing symbols of libgphobos2.a


Dan Sănduleac - 2011-06-02
***********************************************
* edited description


Dan Sănduleac - 2011-06-02
***********************************************
* attached missing_symbols.txt


Dan Sănduleac - 2011-06-02
***********************************************
* edited description



Dan Sănduleac - 2011-06-02
***********************************************
    edited description



Dan Sănduleac - 2011-06-02
***********************************************
* changed title to [OSX][64-bit] Missing symbols of libgphobos2.a



Dan Sănduleac
***********************************************
* edited description

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list