This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/1517: "make CC='gcc -O2'" build of GDB fails if Bash 2.05 is used


>Number:         1517
>Category:       build
>Synopsis:       "make CC='gcc -O2'" build of GDB fails if Bash 2.05 is used
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 18 07:48:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Paul Eggert
>Release:        gdb-6.0
>Organization:
>Environment:
Solaris 9 (sparc)
>Description:
The build fails as follows:

...
rm -f libhistory.a
ar cr libhistory.a history.o histexpand.o histfile.o histsearch.o shell.o mbutil.o xmalloc.o
test -n "ranlib" && ranlib libhistory.a
Configuring in sim
loading cache .././config.cache
checking for gcc... (cached) $gcc -O2
checking whether the C compiler ($gcc -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Error code 1
make: Fatal error: Command failed for target `configure-sim'
Current working directory /net/cog/project/reb/src/base/gdb
*** Error code 1

The problem is that config.cache contains this line:

ac_cv_env_CC_value=$'gcc -O2'

Note the extra dollar sign.  The problem is that Bash 2.05
is putting that dollar sign into config.cache.  This is a
known problem in Bash 2.05; see
<http://mail.gnu.org/archive/html/autoconf/2001-10/msg00138.html>.
>How-To-Repeat:
configure --disable-nls
make CC='gcc -O2'
>Fix:
See attachment for a proposed fix to PROBLEMS.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="patch"

LS0tIFBST0JMRU1TLm9sZAlUaHUgU2VwIDI1IDExOjI3OjM1IDIwMDMKKysrIFBST0JMRU1TCVNh
dCBKYW4gMTcgMjM6NDQ6MDUgMjAwNApAQCAtMyw2ICszLDE4IEBACiAKIAkJU2VlIGFsc286IGh0
dHA6Ly93d3cuZ251Lm9yZy9zb2Z0d2FyZS9nZGIvYnVncy8KIAorQmV3YXJlIHVucGF0Y2hlZCBC
YXNoIDIuMDUgd2hlbiBidWlsZGluZyBHREIsIGFzIGl0IGhhcyBhIGJ1ZyB0aGF0IGNhbgorYnJl
YWsgR0RCJ3MgJ2NvbmZpZ3VyZScgcHJvY2VkdXJlLiAgT3RoZXIgQmFzaCB2ZXJzaW9ucyAoZS5n
LiwgMi4wNWEpCithcmUgT0suICBGb3IgaW5mb3JtYXRpb24gYWJvdXQgdGhlIGJ1ZywgcGxlYXNl
IHNlZQorPGh0dHA6Ly9tYWlsLmdudS5vcmcvYXJjaGl2ZS9odG1sL2F1dG9jb25mLzIwMDEtMTAv
bXNnMDAxMzguaHRtbD4uCisKK09uIFNvbGFyaXMgOSwgJ2NvbmZpZ3VyZScgYnkgZGVmYXVsdCB1
c2VzIC9iaW4vYmFzaCAod2hpY2ggaXMgQmFzaAorMi4wNSksIHNvIHlvdSBhcmUgbW9yZSBsaWtl
bHkgdG8gcnVuIGludG8gdGhpcyBwcm9ibGVtLiAgVG8gd29yaworYXJvdW5kIGl0LCBzZXQgdGhl
IGVudmlyb25tZW50IHZhcmlhYmxlIENPTkZJR19TSEVMTCB0byBhIGZpeGVkCit2ZXJzaW9uIG9m
IEJhc2guICBGb3IgZXhhbXBsZSwgc2V0IENPTkZJR19TSEVMTD0nL3Vzci9sb2NhbC9iaW4vYmFz
aCcKK2lmIHlvdSd2ZSBpbnN0YWxsZWQgYSBtb3JlIHJlY2VudCBCYXNoIGluIC91c3IvbG9jYWwv
YmluLgorCisKIG1pcHMqLSotKgogcG93ZXJwYyotKi0qCiBzcGFyYyotKi0qCg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]