Assembler: libgcov-profiler.c
> "/var/tmp//ccRhaWk5.s", line 36 : Syntax error
> Near line: " data16 leaq __gcov_indirect_call@tlsgd(%rip), %rdi"
> "/var/tmp//ccRhaWk5.s", line 48 : Syntax error
>

These errors above appear to be due to using the SunOS assembler rather
than GNU as.  I tried running configure with AS=/usr/gnu/bin/as prepended.
However, it appears that the SunOS assembler continues to be detected.  In
the "as" script which is created as part of the build in
$BUILD_DIR_ROOT/gcc/as, the following is present near the top:

# Invoke as, ld or nm from the build tree.

ORIGINAL_AS_FOR_TARGET="/usr/bin/as"
ORIGINAL_LD_FOR_TARGET="/usr/bin/ld"

If I change ORIGINAL_AS_FOR_TARGET to point to gas, it errors out because
-xarch=generic (a SunOS assembler-specific flag, AFAICT) is being passed to
it.

Hope I'm not missing something obvious, and thanks,

Neal

Reply via email to