Linking Trouble (Linux)

Craig Dillabaugh cdillaba at cg.scs.carleton.ca
Fri Sep 13 07:20:55 PDT 2013


On Thursday, 12 September 2013 at 20:47:46 UTC, Craig Dillabaugh
wrote:
clip
>
> For anyone who runs into a similar problem using DUB the
> following package.json files solves the problem:
>
> {
> 	"name": "vibe",
> 	"description": "My first vibe project.",
> 	"homepage": "http://example.org",
> 	"copyright": "Me",
> 	"authors": [
> 		"Craig Dillabaugh"
> 	],
> 	"dependencies": {
> 		"vibe-d": "~master"
> 	},
> 	"libs": ["dl", "z"]
> }

Hopefully starting a thread on a forum and then repeatedly
answering yourself isn't a sign of insanity, but I've found the
ultimate source of my problems and wanted to post back here in
case it might help someone else (myself?) in the future.

Anyway my suggested hacks above got my D programs to compile, but
when I tried to run anything, I would get seg faults along the
following lines:

(gdb) backtrace
#0  0x00000000004547b9 in std.stdio.__T7writelnTAyaZ.writeln() ()
#1  0x0000000000454301 in D main ()
#2  0x0000000000460958 in rt.dmain2._d_run_main() ()
#3  0x000000000046048a in rt.dmain2._d_run_main() ()
#4  0x00000000004609a8 in rt.dmain2._d_run_main() ()
#5  0x000000000046048a in rt.dmain2._d_run_main() ()
#6  0x0000000000460446 in _d_run_main ()
#7  0x0000000000460293 in main ()

It seems the source of my troubles was a broken binutils install
by openSuse. So I re-installed binutils and now everything purrs
along.

Thanks to everyone for your help :o)



More information about the Digitalmars-d-learn mailing list