[Bug c/56371] New: When building GCC from combined tree, configure is making wrong assumptions about 'gas' and 'ld'

k2k at narod dot ru gcc-bugzilla@gcc.gnu.org
Sun Feb 17 23:07:00 GMT 2013


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

             Bug #: 56371
           Summary: When building GCC from combined tree, configure is
                    making wrong assumptions about 'gas' and 'ld'
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: k2k@narod.ru
              Host: i686-pc-mingw32
            Target: i686-w64-mingw32, x86_64-w64-mingw32, i686-pc-mingw32
             Build: i686-pc-mingw32


When building from combined source tree, 'configure' detect binutils version
and make some assumptions about gas based only on version, without making real
tests.

Quotes from 'config.log' with wrong assumptions (for combined tree):

configure:21949: checking assembler for .literal16
configure:21976: result: yes
.....
configure:22101: checking assembler for .nsubspa comdat
configure:22129: result: yes
.....
configure:22274: checking linker for .hidden support
configure:22338: result: no
.....
configure:22563: checking assembler for .sleb128 and .uleb128
configure:22611: result: no
.....
configure:23630: checking assembler for thread-local storage support
configure:23657: result: yes
.....
configure:25977: checking assembler for dwarf2 debug_line support
configure:26009: result: no
.....
configure:26052: checking assembler for --gdwarf2 option
configure:26080: result: no
configure:26088: checking assembler for --gstabs option
configure:26127: result: no
.....
configure:26334: checking linker position independent executable support
configure:26353: result: no
.....
configure:26490: checking linker --as-needed support
configure:26509: result: no


Results of configure with pure GCC tree (binutils was build before GCC):

configure:21949: checking assembler for .literal16
configure:21962: /mingw/mingw32/bin/as    -o conftest.o conftest.s >&5
conftest.s: Assembler messages:
conftest.s:1: Error: unknown pseudo-op: `.literal16'
configure:21965: $? = 1
configure: failed program was
.literal16
configure:21976: result: no
.....
configure:22101: checking assembler for .nsubspa comdat
configure:22115: /mingw/mingw32/bin/as    -o conftest.o conftest.s >&5
conftest.s: Assembler messages:
conftest.s:2: Error: unknown pseudo-op: `.nsubspa'
configure:22118: $? = 1
configure: failed program was
    .SPACE $TEXT$
    .NSUBSPA $CODE$,COMDAT
configure:22129: result: no
.....
configure:22274: checking linker for .hidden support
configure:22338: result: yes
.....
configure:22563: checking assembler for .sleb128 and .uleb128
configure:22582: /mingw/mingw32/bin/as    -o conftest.o conftest.s >&5
configure:22585: $? = 0
configure:22611: result: yes
.....
configure:23630: checking assembler for thread-local storage support
configure:23643: /mingw/mingw32/bin/as   --fatal-warnings -o conftest.o
conftest.s >&5
conftest.s: Assembler messages:
conftest.s:2: Error: junk at end of line, first unrecognized character is `"'
configure:23646: $? = 1
configure: failed program was

    .section ".tdata","awT",@progbits
foo:    .long    25
    .text
    movl    %gs:0, %eax
    leal    foo@tlsgd(,%ebx,1), %eax
    leal    foo@tlsldm(%ebx), %eax
    leal    foo@dtpoff(%eax), %edx
    movl    foo@gottpoff(%ebx), %eax
    subl    foo@gottpoff(%ebx), %eax
    addl    foo@gotntpoff(%ebx), %eax
    movl    foo@indntpoff, %eax
    movl    $foo@tpoff, %eax
    subl    $foo@tpoff, %eax
    leal    foo@ntpoff(%ecx), %eax
configure:23657: result: no
.....
configure:25977: checking assembler for dwarf2 debug_line support
configure:25991: /mingw/mingw32/bin/as    -o conftest.o conftest.s >&5
configure:25994: $? = 0
configure:26009: result: yes
.....
configure:26052: checking assembler for --gdwarf2 option
configure:26066: /mingw/mingw32/bin/as   --gdwarf2 -o conftest.o conftest.s >&5
configure:26069: $? = 0
configure:26080: result: yes
configure:26088: checking assembler for --gstabs option
configure:26102: /mingw/mingw32/bin/as   --gstabs -o conftest.o conftest.s >&5
configure:26105: $? = 0
configure:26112: /mingw/mingw32/bin/as --gstabs -o conftest.o conftest.s 2>&1 |
grep -i warning > /dev/null
configure:26115: $? = 1
configure:26127: result: yes
.....
configure:26334: checking linker position independent executable support
configure:26353: result: yes
.....
configure:26490: checking linker --as-needed support
configure:26509: result: yes



More information about the Gcc-bugs mailing list