NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/58984: gcc configure doesn't quote some variables properly
>Number: 58984
>Category: toolchain
>Synopsis: gcc configure doesn't quote some variables properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 12 03:10:00 +0000 2025
>Originator: Valery Ushakov
>Release: NetBSD current
>Organization:
>Environment:
>Description:
src/external/gpl3/gcc/dist/gcc/configure doesn't quote the value of
gcc_cv_ld properly so when that value contains spaces, configure
probably misdetects a bunch of ld-related features. configure has a
bunch of
if test x$gcc_cv_ld != x; then
all in all:
$ grep 'x\$gcc_cv_ld\b' src/external/gpl3/gcc/dist/gcc/configure | wc -l
36
so
checking linker -Bstatic/-Bdynamic option... /home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/gcc/configure: 25916: test: x/home/uwe/work/netbsd/build/tools/bin/sparc64--netbsd-ld: unexpected operator
no
etc, etc...
>How-To-Repeat:
Discovered when testing the following:
$ cd compat/sparc64/sparc
$ nbmake-sparc64 BOOTSTRAP_SUBDIRS=../../../lib clean
$ nbmake-sparc64 BOOTSTRAP_SUBDIRS=../../../lib depends
observe in the output:
--- depend-libgcov ---
# create libgcov/auto-build.h
... gcc_cv_ld=/home/uwe/work/netbsd/build/tools/bin/sparc64--netbsd-ld\ -m\ elf32_sparc\ -m\ elf32_sparc\ -m\ elf32_sparc ... /usr/bin/sh /home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/gcc/configure ...
...
checking how to hardcode library paths into programs... immediate
basename: extra operand 'elf32_sparc'
Try 'basename --help' for more information.
checking whether we are using gold... /home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/gcc/configure: 23262: test: x/home/uwe/work/netbsd/build/tools/bin/sparc64--netbsd-ld: unexpected operator
no
...
etc
>Fix:
Home |
Main Index |
Thread Index |
Old Index