[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/20957] New: dlltool: syntax error in def file libstdc++-6.
From: |
kdmarshall at mailinator dot com |
Subject: |
[Bug binutils/20957] New: dlltool: syntax error in def file libstdc++-6.def:0 |
Date: |
Sun, 11 Dec 2016 12:59:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20957
Bug ID: 20957
Summary: dlltool: syntax error in def file libstdc++-6.def:0
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: kdmarshall at mailinator dot com
Target Milestone: ---
I tripped over this, while trying to regenerate an (apparently) defective
libstdc++.dll.a import library, originally created during GCC-5.3.0 cross
compiler build; it appears to be another manifestation of a parse error,
similar but not identical to bug 13657. I reduced it to:
$ cat foo.def
LIBRARY libstdc++-6.dll
EXPORTS
_foo
$ mingw32-dlltool --as mingw32-as --input-def foo.def --output-lib foo.dll.a
++mingw32-dlltool: Syntax error in def file foo.def:0
Notice the '++' prefixed to the diagnostic message; these seem to be residual
input, unconsumed by the (lex?) scanner, while processing the LIBRARY spec
within the def file. If I remove those '++' chars from the library name, then
the LIBRARY spec is parsed successfully, but the DLL name is recorded
(incorrectly) as 'libstdc-6.dll', within the generated import library.
Alternatively, I can work around this bug by deleting the (valid and correct)
LIBRARY spec from the def file, and instead adding '--dllname libstdc++-6.dll'
as a command line option, but I guess you would want to fix the underlying bug.
FWIW, I see exactly the same manifestation of this bug with every version of
dlltool which I have to hand, in various corners of my file system, namely:
binutils-2.21
binutils-2.23.1
binutils-2.24
binutils-2.26.20160125
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/20957] New: dlltool: syntax error in def file libstdc++-6.def:0,
kdmarshall at mailinator dot com <=