[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11971] New: config.status produces incompatible defines.aw
From: |
dhoyt at llnl dot gov |
Subject: |
[Bug binutils/11971] New: config.status produces incompatible defines.awk and config.h |
Date: |
2 Sep 2010 23:09:34 -0000 |
config.h was not being created correctly on my Windows 7 (x86_64) machine
using the latest released tools from msys/mingw, causing all sorts of build
problems. After investigating the issue, it was narrowed down to a problem
with how config.status produces and then uses defines.awk. That awk file uses
a regular expression that looks for lines like "#undef VALUE_HERE" to
eventually change them to "#define VALUE_HERE 1" if configure deems it so, but
it wasn't finding them due to mismatches from Windows-style line endings.
This patch fixes the issue in defines.awk, but I'm unsure of where it really
needs to go (because defines.awk is created by config.status, itself created
through configure) since I'm not an autotools expert:
--- defines-orig.awk Thu Sep 2 15:52:10 2010
+++ defines.awk Thu Sep 2 15:56:01 2010
@@ -51,8 +51,9 @@
for (key in D) D_is_set[key] = 1
FS = " "
}
-/^[\t ]*#[\t ]*(define|undef)[\t ]+
[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
+/^[\t ]*#[\t ]*(define|undef)[\t ]+
[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]
|\r$)/ {
line = $ 0
+ sub(/\r$/, "", line)
split(line, arg, " ")
if (arg[1] == "#") {
defundef = arg[2]
--
Summary: config.status produces incompatible defines.awk and
config.h
Product: binutils
Version: 2.21 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: dhoyt at llnl dot gov
CC: bug-binutils at gnu dot org
GCC build triplet: i686-pc-mingw32
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-w64-mingw32
http://sourceware.org/bugzilla/show_bug.cgi?id=11971
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11971] New: config.status produces incompatible defines.awk and config.h,
dhoyt at llnl dot gov <=