public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution
@ 2021-05-12 1:24 ibuclaw at gdcproject dot org
2021-05-12 7:13 ` [Bug bootstrap/100552] [11/12 Regression] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-05-12 1:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
Bug ID: 100552
Summary: configure: 32208: Syntax error: Bad substitution
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
When building on x86_64--netbsd
The introducing change looks to be r11-6196. In particular, the substitution
on this line using bash-specific features:
CROSS_TEST_CXXFLAGS="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/100552] [11/12 Regression] configure: 32208: Syntax error: Bad substitution
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
@ 2021-05-12 7:13 ` rguenth at gcc dot gnu.org
2021-05-12 12:09 ` mhillen at linux dot ibm.com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-12 7:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.2
Keywords| |build
Summary|[11 Regression] configure: |[11/12 Regression]
|32208: Syntax error: Bad |configure: 32208: Syntax
|substitution |error: Bad substitution
CC| |mhillen at linux dot ibm.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/100552] [11/12 Regression] configure: 32208: Syntax error: Bad substitution
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
2021-05-12 7:13 ` [Bug bootstrap/100552] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2021-05-12 12:09 ` mhillen at linux dot ibm.com
2021-05-17 14:04 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mhillen at linux dot ibm.com @ 2021-05-12 12:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
--- Comment #1 from Marius Hillenbrand <mhillen at linux dot ibm.com> ---
Indeed, that line should not use the bash-specific pattern substitution and
instead like this:
diff --git a/gcc/configure.ac b/gcc/configure.ac
index e9ba2af548a..4e788019d99 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -7499,7 +7499,8 @@ case $target in
# cross build. are target headers available?
# carefully coerce the build-system compiler to use target headers
saved_CXXFLAGS="$CXXFLAGS"
- CROSS_TEST_CXXFLAGS="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
+ fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed
's/-B/-idirafter/g'`
+ CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
CXXFLAGS="$CROSS_TEST_CXXFLAGS"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
not fully tested yet, but it avoids the syntax error in dash and in NetBSD 9.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/100552] [11/12 Regression] configure: 32208: Syntax error: Bad substitution
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
2021-05-12 7:13 ` [Bug bootstrap/100552] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-05-12 12:09 ` mhillen at linux dot ibm.com
@ 2021-05-17 14:04 ` cvs-commit at gcc dot gnu.org
2021-05-17 14:07 ` cvs-commit at gcc dot gnu.org
2021-07-25 13:16 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-17 14:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marius Hillenbrand <mhillen@gcc.gnu.org>:
https://gcc.gnu.org/g:47abe2abf1210847629ebc271b1fc8c6d53f0d47
commit r12-838-g47abe2abf1210847629ebc271b1fc8c6d53f0d47
Author: Marius Hillenbrand <mhillen@linux.ibm.com>
Date: Wed May 12 13:59:19 2021 +0200
IBM Z: Avoid bash-specific substitution in configure
Fix a bootstrap error observed on NetBSD.
2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
gcc/ChangeLog:
PR bootstrap/100552
* configure.ac: Replace pattern substitution with call to sed.
* configure: Regenerate.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/100552] [11/12 Regression] configure: 32208: Syntax error: Bad substitution
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
` (2 preceding siblings ...)
2021-05-17 14:04 ` cvs-commit at gcc dot gnu.org
@ 2021-05-17 14:07 ` cvs-commit at gcc dot gnu.org
2021-07-25 13:16 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-17 14:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Marius Hillenbrand
<mhillen@gcc.gnu.org>:
https://gcc.gnu.org/g:a16952ddf9515aa08b8c9c02a80725801131cc94
commit r11-8422-ga16952ddf9515aa08b8c9c02a80725801131cc94
Author: Marius Hillenbrand <mhillen@linux.ibm.com>
Date: Wed May 12 13:59:19 2021 +0200
IBM Z: Avoid bash-specific substitution in configure
Fix a bootstrap error observed on NetBSD.
2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
gcc/ChangeLog:
PR bootstrap/100552
* configure.ac: Replace pattern substitution with call to sed.
* configure: Regenerate.
(cherry picked from commit 47abe2abf1210847629ebc271b1fc8c6d53f0d47)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/100552] [11/12 Regression] configure: 32208: Syntax error: Bad substitution
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
` (3 preceding siblings ...)
2021-05-17 14:07 ` cvs-commit at gcc dot gnu.org
@ 2021-07-25 13:16 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-07-25 13:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100552
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Given the two commits, I'm going to assume this is fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-25 13:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 1:24 [Bug bootstrap/100552] New: configure: 32208: Syntax error: Bad substitution ibuclaw at gdcproject dot org
2021-05-12 7:13 ` [Bug bootstrap/100552] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-05-12 12:09 ` mhillen at linux dot ibm.com
2021-05-17 14:04 ` cvs-commit at gcc dot gnu.org
2021-05-17 14:07 ` cvs-commit at gcc dot gnu.org
2021-07-25 13:16 ` ibuclaw at gdcproject dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).