www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - -L--demangle=dlang doesn't work

reply Venkat <venkatram.akkineni gmail.com> writes:
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-B9AE30DD34FDC5ADDE81E208F10DF0
4/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-C5DB1ABAED0A1
91C5B2ACAFDC70EAC6/ 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.
Jan 05 2018
next sibling parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
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-B9AE30DD34FDC5ADDE81E208F10DF0
4/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-C5DB1ABAED0A1
91C5B2ACAFDC70EAC6/ 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.
Jan 05 2018
prev sibling parent reply Mike Franklin <slavo5150 yahoo.com> writes:
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/rvoqllpimfskvlabprot forum.dlang.org I tested with 2.29.1 and it worked fine for me. Mike
Jan 06 2018
parent Venkat <venkatram.akkineni gmail.com> writes:
Yes, thanks Mike. I have 2.24 installed. Now I have to figure out 
how I can upgrade binutils without a distro upgrade. :)
Jan 07 2018