Thread overview
[Issue 2667] New: a few un-demanglable Undefined symbol in std.stdio? compiler bug?
Feb 15, 2009
d-bugmail
Feb 15, 2009
d-bugmail
Feb 19, 2009
d-bugmail
Sep 20, 2009
Lutger
Jun 12, 2011
yebblies
February 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2667

           Summary: a few un-demanglable Undefined symbol in std.stdio?
                    compiler bug?
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someanon@yahoo.com


I have an object generated by dmd v2.023, when linking, the linker complains there are some undefined symbols:

local.obj(local)
 Error 42: Symbol Undefined
_D3std5stdio21__T6writefTAyaTAyaTaZ6writefFAyaAyaaZv
local.obj(local)
 Error 42: Symbol Undefined _D3std5stdio21__T6writefTAyaTiTiTaZ6writefFAyaiiaZv
local.obj(local)
 Error 42: Symbol Undefined _D3std5stdio19__T6writefTiTAyaTaZ6writefFiAyaaZv

These symbols are even un-demanglable:
$ ./demangle.exe _D4test3fooAa
char[] test.foo

but:
$ ./demangle.exe  _D3std5stdio21__T6writefTAyaTAyaTaZ6writefFAyaAyaaZv
_D3std5stdio21__T6writefTAyaTAyaTaZ6writefFAyaAyaaZv

any suggestions where I should take a look?


-- 

February 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2667





------- Comment #1 from someanon@yahoo.com  2009-02-15 14:03 -------
more info: looks like they are all coming from:

src/phobos/std/stdio.d:357 and
src/phobos/std/stdio.d:413

local.o: In function `_D3std5stdio17__T6writefTAyaTsZ6writefFAyasZv':
dmd/bin/../bin/../src/phobos/std/stdio.d:357: undefined reference to
`_D3std6format82__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaTsZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxasZv'
local.o: In function `_D3std5stdio21__T8writeflnTAyaTAyaZ8writeflnFAyaAyaZv':
dmd/bin/../bin/../src/phobos/std/stdio.d:413: undefined reference to
`_D3std5stdio21__T6writefTAyaTAyaTaZ6writefFAyaAyaaZv'
local.o: In function `_D3std5stdio19__T6writefTAyaTiTiZ6writefFAyaiiZv':
dmd/bin/../bin/../src/phobos/std/stdio.d:357: undefined reference to
`_D3std6format84__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaTiTiZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaiiZv'
local.o: In function `_D3std5stdio21__T8writeflnTAyaTiTiZ8writeflnFAyaiiZv':
dmd/bin/../bin/../src/phobos/std/stdio.d:413: undefined reference to
`_D3std5stdio21__T6writefTAyaTiTiTaZ6writefFAyaiiaZv'
local.o: In function `_D3std5stdio19__T8writeflnTiTAyaZ8writeflnFiAyaZv':
dmd/bin/../bin/../src/phobos/std/stdio.d:413: undefined reference to
`_D3std5stdio19__T6writefTiTAyaTaZ6writefFiAyaaZv'


-- 

February 19, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2667





------- Comment #2 from clugdbug@yahoo.com.au  2009-02-19 07:34 -------
Your demangle is out-of-date. I don't think an up-to-date one exists yet. There's no name mangling problem.

Please post a test case.


-- 

September 20, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2667


Lutger <lutger.blijdestijn@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lutger.blijdestijn@gmail.co
                   |                            |m


--- Comment #3 from Lutger <lutger.blijdestijn@gmail.com> 2009-09-20 11:20:52 PDT ---
std.demangle in dmd 2.032 can demangle "_D3std5stdio21__T6writefTAyaTAyaTaZ6writefFAyaAyaaZv". Perhaps related to fixing of bug 2763.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2667


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |INVALID


--- Comment #4 from yebblies <yebblies@gmail.com> 2011-06-12 14:30:49 PDT ---
Probably not a bug, no test case given, over two years old.  No indication that dmd is at fault.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------