www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2667] New: a few un-demanglable Undefined symbol in std.stdio? compiler bug?

reply d-bugmail puremagic.com writes:
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?


-- 
Feb 15 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2667






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'


-- 
Feb 15 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2667






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.


-- 
Feb 19 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Sep 20 2009
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jun 12 2011