ldc-developers/ldc — Issue #32: ldc2 SEGFAULT for linux x86_64
Author: bioinfornatics
Created: 2011-12-02 01:11:05+00:00
State: open

In first install on your system derelict:

```bash
$ svn export -r 591 http://svn.dsource.org/projects/derelict/branches/Derelict2 derelict-20111031svn591
$ mv inc/ldc_inc.mak inc/ldc2_inc.mak
$ find . -name "Makefile" | xargs sed -i "s/ldc_build/ldc2_build/g"
$ make -f linux.mak DC=ldc2 DFLAGS="-w -g -O2" DerelictAL_ALL DerelictAllegro_ALL DerelictFT_ALL DerelictFT DerelictGL_ALL DerelictIL_ALL DerelictODE_ALL DerelictOgg_ALL DerelictPA_ALL DerelictSDL_ALL DerelictSFML_ALL DerelictUtil_ALL
```
copy lib and include file to right dir

now take this project:

```bash
$ hg clone https://bitbucket.org/dav1d/gljm
```

And try to build
```bash
$ make DC=ldc2
```
ldc segfault for this command

```bash
$ gdb --args ldc2 -m64 -L-lDerelictGL -L-lDerelictUtil -I"src" -I"gljm" -d -c gljm/parser/ply.d -ofgljm/parser/ply.o
```

you can see exit status with

```bash
$ echo $?
```