[Issue 8605] New: rdmd aborts during link
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 31 18:19:33 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8605
Summary: rdmd aborts during link
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: charleshixsn at earthlink.net
--- Comment #0 from Charles Hixson <charleshixsn at earthlink.net> 2012-08-31 18:19:24 PDT ---
Created an attachment (id=1142)
this is a pair of files that appear to compile with dmd, but not with rdmd, IF
the folder they are in is named Parser
This appears to only happen if the folder is named "Parser". When I copied the
folder elsewhere the error disappeared. It also doesn't seem to happen for
short cases. So the only example case I can offer is around 500 lines long.
And dmd doesn't complain about the problem. (OTOH, rdmd caught several actual
bugs that dmd didn't.)
Please note that this is a pair of files. If the utils file is included in the
avl file, the error disappears.
The error message is:
charles at mandala1:~/projects/D/Parser$ rdmd -unittest avl.d utils.d
/tmp/.rdmd-1000/rdmd-avl.d-EFC2A8F3F9817BAA59A3A00532D5696F/objs/avl.o: In
function `_D3avl3AVL6insertMFKC3avl3AVL4NodeKC3avl3AVL4NodeKbZC3avl3AVL4Node':
avl.d:(.text._D3avl3AVL6insertMFKC3avl3AVL4NodeKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x10d):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL6insertMFKC3avl3AVL4NodeKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x144):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
avl.d:(.text._D3avl3AVL6insertMFKC3avl3AVL4NodeKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x273):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL6insertMFKC3avl3AVL4NodeKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x2aa):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
/tmp/.rdmd-1000/rdmd-avl.d-EFC2A8F3F9817BAA59A3A00532D5696F/objs/avl.o: In
function `_D3avl3AVL10delLeftBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node':
avl.d:(.text._D3avl3AVL10delLeftBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x13e):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL10delLeftBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x175):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
avl.d:(.text._D3avl3AVL10delLeftBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x230):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL10delLeftBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x267):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
/tmp/.rdmd-1000/rdmd-avl.d-EFC2A8F3F9817BAA59A3A00532D5696F/objs/avl.o: In
function `_D3avl3AVL10delRghtBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node':
avl.d:(.text._D3avl3AVL10delRghtBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x13e):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL10delRghtBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x175):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
avl.d:(.text._D3avl3AVL10delRghtBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x230):
undefined reference to `_D5utils10LogicError7__ClassZ'
avl.d:(.text._D3avl3AVL10delRghtBalMFKC3avl3AVL4NodeKbZC3avl3AVL4Node+0x267):
undefined reference to
`_D5utils10LogicError6__ctorMFAyamC6object9ThrowableZC5utils10LogicError'
collect2: ld returned 1 exit status
--- errorlevel 1
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list