lang/gdc on -CURRENT

Petr Holub hopet at ics.muni.cz
Tue Oct 16 04:34:55 PDT 2007


Hi,

is anybody running lang/gdc successfuly on -CURRENT? I've installed
it from fresh portsnap and it gives me weird errors like this:

---

[hopet at fbsd-7 ~/rum-java/rum-D]$ gdc -o println println.d
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x86)
: In function `_D3gcc3deh17parse_lsda_headerFPS3gcc6unwind15_Unwind_ContextPhPS3
gcc3deh16lsda_header_infoZPh':
../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:431: undefined reference to `_Un
wind_GetRegionStart'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x17c
): In function `_D3gcc3deh15personalityImplFiT3gcc6unwind14_Unwind_ActionmPS3gcc
6unwind17_Unwind_ExceptionPS3gcc6unwind15_Unwind_ContextZk':
../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:171: undefined reference to `_Un
wind_GetLanguageSpecificData'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x1b3
):../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:180: undefined reference to `_
Unwind_GetIP'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x2f3
):../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:405: undefined reference to `_
Unwind_SetGR'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x2ff
):../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:407: undefined reference to `_
Unwind_SetGR'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x30a
):../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:409: undefined reference to `_
Unwind_SetIP'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(deh.o)(.text+0x4f3
): In function `_d_throw':
../.././../gcc-4.1-20070910/libphobos/gcc/deh.d:101: undefined reference to `_Un
wind_RaiseException'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(object.o)(.text+0x
1867): In function `_D6object6Object14notifyRegisterMFDFC6ObjectZvZv':
../.././../gcc-4.1-20070910/libphobos/internal/object.d:190: undefined reference
 to `_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(string.o)(.text+0x
2725): In function `_D3std6string9isNumericFYb':
../.././../gcc-4.1-20070910/libphobos/std/string.d:3449: undefined reference to
`_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(string.o)(.text+0x
3066): In function `_D3std6string7sformatFAaYAa':
../.././../gcc-4.1-20070910/libphobos/std/string.d:2695: undefined reference to
`_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(string.o)(.text+0x
30bb): In function `_D3std6string6formatFYAa':
../.././../gcc-4.1-20070910/libphobos/std/string.d:2661: undefined reference to
`_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(stdio.o)(.text+0x1
1d): In function `_D3std5stdio7writefxFPS3std1c5stdio6_iobufAC8TypeInfoPaiZv':
../.././../gcc-4.1-20070910/libphobos/std/stdio.d:137: undefined reference to `_
Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(stdio.o)(.text+0x1
4e):../.././../gcc-4.1-20070910/libphobos/std/stdio.d:252: more undefined refere
nces to `_Unwind_Resume' follow
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(unwind.o)(.text+0x
199): In function `base_of_encoded_value':
../.././../gcc-4.1-20070910/libphobos/gcc/unwind.d:310: undefined reference to `
_Unwind_GetTextRelBase'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(unwind.o)(.text+0x
1ac):../.././../gcc-4.1-20070910/libphobos/gcc/unwind.d:314: undefined reference
 to `_Unwind_GetRegionStart'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(unwind.o)(.text+0x
1b5):../.././../gcc-4.1-20070910/libphobos/gcc/unwind.d:312: undefined reference
 to `_Unwind_GetDataRelBase'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(thread.o)(.text+0x
d9): In function `_D3std6thread6Thread11threadstartUPvZPv':
../.././../gcc-4.1-20070910/libphobos/std/thread.d:987: undefined reference to `
_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(thread.o)(.text+0x
6c3): In function `_D3std6thread6Thread8pauseAllFZv':
../.././../gcc-4.1-20070910/libphobos/std/thread.d:863: undefined reference to `
_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(thread.o)(.text+0x
b64): In function `_D3std6thread6Thread5startMFZv':
../.././../gcc-4.1-20070910/libphobos/std/thread.d:604: undefined reference to `
_Unwind_Resume'
/usr/local/lib/gcc/i386-portbld-freebsd7.0/../../libgphobos.a(dgccmain2.o)(.text
+0x138): In function `_d_run_main':
../.././../gcc-4.1-20070910/libphobos/internal/dgccmain2.d:93: undefined referen
ce to `_Unwind_Resume'

---

even for simple test like this:

---
import std.stdio;

void main(char[][] args)
{
        writefln("This is a test");
}
---

Of course, it dumps the same problems (with _Unwind_Resume) on more elaborate
code samples as well.

Petr



More information about the freebsd-ports mailing list