Bug 27501 - [4.2 Regression] Shell compatibility problem
Summary: [4.2 Regression] Shell compatibility problem
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2006-05-08 18:00 UTC by Bernhard Reutner-Fischer
Modified: 2006-05-14 19:56 UTC (History)
1 user (show)

See Also:
Host: alphaev56-dec-osf5.1a
Target: alphaev56-dec-osf5.1a
Build: alphaev56-dec-osf5.1a
Known to work:
Known to fail:
Last reconfirmed: 2006-05-08 18:06:24


Attachments
use operator '=' instead of '==' for test (269 bytes, patch)
2006-05-08 18:02 UTC, Bernhard Reutner-Fischer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Reutner-Fischer 2006-05-08 18:00:35 UTC
gmake[3]: Entering directory `/usr/local/scratch/obj/gcc-4.2/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USE_COLLECT2" \
/bin/sh ../../../src/gcc-4.2/gcc/mkconfig.sh config.h
../../../src/gcc-4.2/gcc/mkconfig.sh: test: unknown operator ==
gmake[3]: *** [cs-config.h] Error 1


This test only knows operator '='

# sh         
# bar=foo
# test x"$bar" == baz ; echo $?
test: unknown operator ==
# test x"$bar" = baz ; echo $?
1
# test x"$bar" = x"foo" ; echo $?
0
Comment 1 Bernhard Reutner-Fischer 2006-05-08 18:02:57 UTC
Created attachment 11411 [details]
use operator '=' instead of '==' for test

Bootstrap is still in progress, but a manual test suggests that this should fix it.
Comment 2 Andrew Pinski 2006-05-08 18:06:24 UTC
Confirmed.
Comment 3 Bernhard Reutner-Fischer 2006-05-09 08:02:39 UTC
2006-05-09  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR/27501
        * mkconfig.sh: Use operator '=' for test


This patch fixes the build failure on OSF5.1a,
please apply.
Comment 4 Bernhard Reutner-Fischer 2006-05-14 10:49:00 UTC
Subject: Bug 27501

Author: aldot
Date: Sun May 14 10:48:49 2006
New Revision: 113758

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113758
Log:
2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>

	PR 27501
	* mkconfig.sh: Use operator = instead of == for test.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/mkconfig.sh

Comment 5 Andrew Pinski 2006-05-14 19:56:40 UTC
Fixed.