Jump to page: 1 2 3
Thread overview
[Issue 10729] New: Some exception symbols undefined
Jul 30, 2013
Andre Tampubolon
Jul 31, 2013
Nils
Aug 07, 2013
Kenji Hara
Aug 10, 2013
Andre Tampubolon
Aug 10, 2013
Kenji Hara
Aug 13, 2013
Andre Tampubolon
Aug 13, 2013
Kenji Hara
Aug 13, 2013
Kenji Hara
Aug 13, 2013
Andre Tampubolon
Aug 13, 2013
Kenji Hara
Aug 13, 2013
Nils
Aug 13, 2013
Nils
Aug 14, 2013
Andre Tampubolon
Aug 14, 2013
Maxim Fomin
Aug 19, 2013
Andre Tampubolon
Aug 19, 2013
Maxim Fomin
Aug 19, 2013
Andre Tampubolon
Sep 09, 2013
Nick Sabalausky
Sep 13, 2013
Andre Tampubolon
Sep 13, 2013
Nick Sabalausky
Sep 13, 2013
Andre Tampubolon
Sep 13, 2013
Nick Sabalausky
Sep 20, 2013
Nick Sabalausky
Sep 20, 2013
Nick Sabalausky
Sep 20, 2013
Nick Sabalausky
Sep 20, 2013
Nick Sabalausky
Sep 28, 2013
Walter Bright
July 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729

           Summary: Some exception symbols undefined
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: andre@lc.vlsm.org


--- Comment #0 from Andre Tampubolon <andre@lc.vlsm.org> 2013-07-30 09:55:57 PDT ---
Created an attachment (id=1239)
A simple "hello world" code

As usual, I updated dmd, druntime, and phobos to the latest git version. Then I tried to build a hello world code (as attached).

I got these errors:

C:\Users\CSL-NB-064\Codes\D>dmd hello.d
OPTLINK (R) for Win32  Release 8.00.5
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std4conv21ConvOverflowException6__ctorMFNaNbNfAyaAyakZC3std4conv21ConvOverflowException
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std4conv13ConvException6__ctorMFNaNbNfAyaAyakZC3std4conv13ConvException
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std6format15FormatException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6format15FormatE
xception
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3utf12UTFException6__ctorMFNaNfAyakAyakC6object9ThrowableZC3std3utf12UTFException
--- errorlevel 4

I didn't use any switch, just: dmd hello.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 31, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729


Nils <nilsbossung@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nilsbossung@googlemail.com
           Severity|critical                    |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-06 21:20:52 PDT ---
(In reply to comment #0)
> I got these errors:
> 
> C:\Users\CSL-NB-064\Codes\D>dmd hello.d
> OPTLINK (R) for Win32  Release 8.00.5
> Copyright (C) Digital Mars 1989-2009  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> hello.obj(hello)
>  Error 42: Symbol Undefined
> _D3std4conv21ConvOverflowException6__ctorMFNaNbNfAyaAyakZC3std4conv21ConvOverflowException
> hello.obj(hello)
>  Error 42: Symbol Undefined
> _D3std4conv13ConvException6__ctorMFNaNbNfAyaAyakZC3std4conv13ConvException
> hello.obj(hello)
>  Error 42: Symbol Undefined
> _D3std6format15FormatException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6format15FormatE
> xception
> hello.obj(hello)
>  Error 42: Symbol Undefined
> _D3std3utf12UTFException6__ctorMFNaNfAyakAyakC6object9ThrowableZC3std3utf12UTFException
> --- errorlevel 4

You would need rebuild Phobos library, because some Exception class ctors are now annotated with pure and @safe attributes in git head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #2 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-10 02:57:21 PDT ---
> You would need rebuild Phobos library, because some Exception class ctors are now annotated with pure and @safe attributes in git head.

OK, I just fetch the latest dmd, druntime & phobos source code. After rebuilding all of them, I tried to compile the same code:

C:\Users\CSL-NB-064\Codes\D>dmd hello.d
OPTLINK (R) for Win32  Release 8.00.5
Copyright (C) Digital Mars 1989-2009  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std4conv21ConvOverflowException6__ctorMFNaNbNfAyaAyakZC3std4conv21ConvOverflowException
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std4conv13ConvException6__ctorMFNaNbNfAyaAyakZC3std4conv13ConvException
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std6format15FormatException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6format15FormatE
xception
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3utf12UTFException6__ctorMFNaNfAyakAyakC6object9ThrowableZC3std3utf12UTFException
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3uni42__T11Uint24ArrayTS3std3uni13ReallocPolicyZ11Uint24Array5emptyMxFNaNbNdNeZb
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3uni42__T11Uint24ArrayTS3std3uni13ReallocPolicyZ11Uint24Array6__dtorMFNbNeZv
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3uni36__T11Uint24ArrayTS3std3uni8GcPolicyZ11Uint24Array5emptyMxFNaNbNdNeZb
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std3uni36__T11Uint24ArrayTS3std3uni8GcPolicyZ11Uint24Array6__dtorMFNaNbNeZv
--- errorlevel 8

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-10 05:34:59 PDT ---
(In reply to comment #2)
> OK, I just fetch the latest dmd, druntime & phobos source code. After rebuilding all of them, I tried to compile the same code:
[snip]

Maybe you are still link old phobos.lib (2.063 or earlier). After git head
rebuild, you would forgot to place the generated phobos.lib (in
dmd2\src\phobos\) on correct lib path (dmd2\windows\lib\phobos.lib by default).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #4 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-12 18:48:07 PDT ---
> Maybe you are still link old phobos.lib (2.063 or earlier). After git head
> rebuild, you would forgot to place the generated phobos.lib (in
> dmd2\src\phobos\) on correct lib path (dmd2\windows\lib\phobos.lib by default).

I don't think so. Every time I finished rebuilding druntime and phobos, I always copy the new druntime.lib and phobos.lib into my dmd directory, replacing the old ones.

Anyway, I just repeated the compilation process, just to make sure. Here's the
screencast of it:
http://youtu.be/Fu1P0HGkZXA

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-12 23:45:54 PDT ---
(In reply to comment #4)
> > Maybe you are still link old phobos.lib (2.063 or earlier). After git head
> > rebuild, you would forgot to place the generated phobos.lib (in
> > dmd2\src\phobos\) on correct lib path (dmd2\windows\lib\phobos.lib by default).
> 
> I don't think so. Every time I finished rebuilding druntime and phobos, I always copy the new druntime.lib and phobos.lib into my dmd directory, replacing the old ones.
> 
> Anyway, I just repeated the compilation process, just to make sure. Here's the
> screencast of it:
> http://youtu.be/Fu1P0HGkZXA

Hmm... As far as I see the video, the operation would have no critical problem. But I have still some questions.

1. Do you really use the recompiled and copied dmd.exe in C:\dmd\bin ?
   You set the PATH=%PATH%;C:\dm\bin;C:\dmd\bin first, but I'm not sure that
the previous PATH does not contain wrong directory path.
2. Do you use intended sc.ini file?
   Read http://dlang.org/dmd-windows.html#sc_ini and check related paths.

Honestly I cannot reproduce the issue in my local environment (I'm using Windows 7). It seems to me that the issue is in your development environment. Sorry for my poor reply...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #6 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-12 23:51:42 PDT ---
I just noticed that, the undefined symbol in comment#0 and comment#2 are different (four std.uni symbols added).

And, few days ago std.uni module is drastically improved by https://github.com/D-Programming-Language/phobos/pull/1347 .

Looks to me that your environment does not seem to follow it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #7 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-13 00:10:12 PDT ---
> 1. Do you really use the recompiled and copied dmd.exe in C:\dmd\bin ?
>    You set the PATH=%PATH%;C:\dm\bin;C:\dmd\bin first, but I'm not sure that
> the previous PATH does not contain wrong directory path.

This is the default content of my PATH:
C:\Program Files\Haskell\bin;C:\Haskell
Platform\2013.2.0.0\lib\extralibs\bin;C:\Haskell
Platform\2013.2.0.0\bin;C:\Program Files\Broadcom\Broadcom
802.11\Driver;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Microsoft ASP.NET\ASP.NET
Web Pages\v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance
Toolkit\;C:\Program Files\GNU\GnuPG;C:\sbt\;C:\Program Files\Microsoft
SDKs\TypeScript\0.8.1.1\;C:\Program Files\nodejs;c:\Program Files\ATI
Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform
Installer\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\GNU\GnuPG\pub;C:\Program Files\Flash Magic;C:\Program
Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Program
Files\Java\jdk1.7.0_25\bin;C:\Haskell
Platform\2013.2.0.0\mingw\bin;C:\Users\CSL-NB-064\AppData\Roaming\cabal\bin;C:\Vim\vim74;C:\scala\bin;C:\mingw\bin;C:\FASM;C:\Users\CSL-NB-064\AppData\Local\Pandoc\;C:\texlive\2013\bin\win32;"C:\Program
Files\Git\bin"

As you can see, the path to Digital Mars C and D compiler are not included.


> 2. Do you use intended sc.ini file?
>    Read http://dlang.org/dmd-windows.html#sc_ini and check related paths.

Here's my sc.ini :
[Environment]
LIB="C:\dmd\lib"
DFLAGS="-IC:\dmd\import" "-IC:\dmd\phobos"
LINKCMD=link.exe

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #8 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-13 00:41:48 PDT ---
Looks not bad to me. Strange...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2 3