Thread overview
-L--demangle=dlang doesn't work
Jan 06, 2018
Venkat
Jan 06, 2018
Nicholas Wilson
Jan 06, 2018
Mike Franklin
Jan 07, 2018
Venkat
January 06, 2018
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.

January 06, 2018
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.
January 06, 2018
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


January 07, 2018
Yes, thanks Mike. I have 2.24 installed. Now I have to figure out how I can upgrade binutils without a distro upgrade. :)