http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56368



             Bug #: 56368

           Summary: GCC Configure tests failed for name lister when

                    building from combined tree (GCC+Binutils)

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: k...@narod.ru

              Host: i686-pc-mingw32

            Target: i686-w64-mingw32, x86_64-w64-mingw32

             Build: i686-pc-mingw32





When building gcc from combined sources tree, configure done some tests for

'${objdir}/../binutils/nm-new', but set 'objdir' later then tests.



>From config.log:



....

configure:12329: checking for BSD- or MS-compatible name lister (nm)

configure:12378: result: ${objdir}/../binutils/nm-new

configure:12508: checking the name lister (${objdir}/../binutils/nm-new)

interface

configure:12515: gcc -c -mms-bitfields -DTARGET_ALWAYS_STRIP_DOTDOT=true

-I/dvlp/mingw-w64-i686/include conftest.c >&5

configure:12518: /../binutils/nm-new "conftest.o"

/dvlp/packages/gcc/source/gcc-4.7.2/gcc/configure: line 12519:

/../binutils/nm-new: No such file or directory

configure:12521: output

configure:12528: result: BSD nm

....

configure:13469: checking command to parse ${objdir}/../binutils/nm-new output

from gcc object

configure:13587: gcc -c  -I/dvlp/mingw-w64-i686/include conftest.c >&5

configure:13590: $? = 0

configure:13594: /../binutils/nm-new conftest.o \| sed -n -e 's/^.*[

]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)\{0,1\}$/\1 \2

\2/p' \> conftest.nm

/dvlp/packages/gcc/source/gcc-4.7.2/gcc/configure: line 13595:

/../binutils/nm-new: No such file or directory

configure:13597: $? = 0

cannot run sed -n -e 's/^.*[     ]\([ABCDGISTW][ABCDGISTW]*\)[     ][    

]*\([_A-Za-z][_A-Za-z0-9]*\)

\{0,1\}$/\1 \2 \2/p'

configure:13587: gcc -c  -I/dvlp/mingw-w64-i686/include conftest.c >&5

configure:13590: $? = 0

configure:13594: /../binutils/nm-new conftest.o \| sed -n -e 's/^.*[

]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)\{0,1\}$/\1 _\2

\2/p' \> conftest.nm

/dvlp/packages/gcc/source/gcc-4.7.2/gcc/configure: line 13595:

/../binutils/nm-new: No such file or directory

configure:13597: $? = 0

cannot run sed -n -e 's/^.*[     ]\([ABCDGISTW][ABCDGISTW]*\)[     ][    

]*_\([_A-Za-z][_A-Za-z0-9]*\)

\{0,1\}$/\1 _\2 \2/p'

configure:13689: result: failed

....

configure:14712: checking for objdir

configure:14727: result: .libs







Test for 'objdir' should be done before any usage of 'objdir'.

Reply via email to