Re: -L--demangle=dlang doesn't work

2018-01-07 Thread Venkat via Digitalmars-d-learn
Yes, thanks Mike. I have 2.24 installed. Now I have to figure out 
how I can upgrade binutils without a distro upgrade. :)


Re: -L--demangle=dlang doesn't work

2018-01-06 Thread Mike Franklin via Digitalmars-d-learn

On Saturday, 6 January 2018 at 05:44:28 UTC, Venkat wrote:
Why does gcc say "unknown demangling style `dlang'" ? Do I need 
GDC for demangling to work ?


Check your version of binutils with `ld --version`.  It looks 
like it was added in v2.25:  
http://forum.dlang.org/post/rvoqllpimfskvlabp...@forum.dlang.org


I tested with 2.29.1 and it worked fine for me.

Mike




Re: -L--demangle=dlang doesn't work

2018-01-05 Thread Nicholas Wilson via Digitalmars-d-learn

On Saturday, 6 January 2018 at 05:44:28 UTC, Venkat wrote:
Why does gcc say "unknown demangling style `dlang'" ? Do I need 
GDC for demangling to work ?



85198AB7DE24894B5F742FBD5/libvibe-d_data.a 
/home/venkat/.dub/packages/vibe-d-0.8.2/vibe-d/utils/.dub/build/library-unittest-linux.posix-x86_64-dmd_2077-B9AE30DD34FDC5ADDE81E208F10DF014/libvibe-d_utils.a -L--no-as-needed -L--demangle=dlang -L-lsqlite3 -L-levent_pthreads -L-levent -L-lssl -L-lcrypto -L-ldl -g

/usr/bin/ld: unknown demangling style `dlang'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
FAIL 
.dub/build/webmarx-test-application-unittest-linux.posix-x86_64-dmd_2077-C5DB1ABAED0A1191C5B2ACAFDC70EAC6/ webmarx-test-application executable

dmd failed with exit code 1.
Full exception: 
object.Exception@source/dub/compilers/compiler.d(115): dmd 
failed with exit code 1.


I'm not familiar with that flag maybe you have to register 
ddmangle with it? But failing all else you can pipe the output 
through ddmangle.


-L--demangle=dlang doesn't work

2018-01-05 Thread Venkat via Digitalmars-d-learn
Why does gcc say "unknown demangling style `dlang'" ? Do I need 
GDC for demangling to work ?



85198AB7DE24894B5F742FBD5/libvibe-d_data.a 
/home/venkat/.dub/packages/vibe-d-0.8.2/vibe-d/utils/.dub/build/library-unittest-linux.posix-x86_64-dmd_2077-B9AE30DD34FDC5ADDE81E208F10DF014/libvibe-d_utils.a -L--no-as-needed -L--demangle=dlang -L-lsqlite3 -L-levent_pthreads -L-levent -L-lssl -L-lcrypto -L-ldl -g

/usr/bin/ld: unknown demangling style `dlang'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
FAIL 
.dub/build/webmarx-test-application-unittest-linux.posix-x86_64-dmd_2077-C5DB1ABAED0A1191C5B2ACAFDC70EAC6/ webmarx-test-application executable

dmd failed with exit code 1.
Full exception: 
object.Exception@source/dub/compilers/compiler.d(115): dmd failed 
with exit code 1.