* v850 ld error
@ 2013-01-09 18:33 Joel Sherrill
2013-01-09 22:45 ` Igor Pashev
0 siblings, 1 reply; 4+ messages in thread
From: Joel Sherrill @ 2013-01-09 18:33 UTC (permalink / raw)
To: binutils
Hi
Testing binutils and gcc heads, I am getting this error when
linking the autoconf probe for RTEMS when the CPU CFLAG
-mgcc-abi is used:
$ cat m.c
main()
{
}
[joel@rtbf64a test-gcc]$ v850-rtems4.11-gcc -mgcc-abi m.c
/users/joel/test-gcc/install-svn/libexec/gcc/v850-rtems4.11/4.8.0/collect2 -m v850 /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi/crt0.o -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0 -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib /tmp/ccuPHsB7.o -lgcc -lc -lgcc
/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/bin/ld:
skipping incompatible
/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi/libgcc.a
when searching for -lgcc
I don't have any patches to gcc or binutils.
Any suggestions on what to look for?
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v850 ld error
2013-01-09 18:33 v850 ld error Joel Sherrill
@ 2013-01-09 22:45 ` Igor Pashev
2013-01-10 0:45 ` Joel Sherrill
0 siblings, 1 reply; 4+ messages in thread
From: Igor Pashev @ 2013-01-09 22:45 UTC (permalink / raw)
To: binutils
09.01.2013 22:33, Joel Sherrill пиÑеÑ:
> Hi
>
> Testing binutils and gcc heads, I am getting this error when
> linking the autoconf probe for RTEMS when the CPU CFLAG
> -mgcc-abi is used:
>
> $ cat m.c
> main()
> {
> }
> [joel@rtbf64a test-gcc]$ v850-rtems4.11-gcc -mgcc-abi m.c
>
>
> /users/joel/test-gcc/install-svn/libexec/gcc/v850-rtems4.11/4.8.0/collect2
> -m v850
> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi/crt0.o
> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi
> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi
> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0
> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib
> /tmp/ccuPHsB7.o -lgcc -lc -lgcc
> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/bin/ld:
> skipping incompatible
> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi/libgcc.a
> when searching for -lgcc
>
> I don't have any patches to gcc or binutils.
>
> Any suggestions on what to look for?
>
Well, libgcc_s is not of that arch which ld expects.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v850 ld error
2013-01-09 22:45 ` Igor Pashev
@ 2013-01-10 0:45 ` Joel Sherrill
2013-01-10 10:06 ` nick clifton
0 siblings, 1 reply; 4+ messages in thread
From: Joel Sherrill @ 2013-01-10 0:45 UTC (permalink / raw)
To: Igor Pashev; +Cc: binutils, nick clifton
On 01/09/2013 04:45 PM, Igor Pashev wrote:
> 09.01.2013 22:33, Joel Sherrill пиÑеÑ:
>> Hi
>>
>> Testing binutils and gcc heads, I am getting this error when
>> linking the autoconf probe for RTEMS when the CPU CFLAG
>> -mgcc-abi is used:
>>
>> $ cat m.c
>> main()
>> {
>> }
>> [joel@rtbf64a test-gcc]$ v850-rtems4.11-gcc -mgcc-abi m.c
>>
>>
>> /users/joel/test-gcc/install-svn/libexec/gcc/v850-rtems4.11/4.8.0/collect2
>> -m v850
>> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi/crt0.o
>> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi
>> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi
>> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0
>> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib
>> /tmp/ccuPHsB7.o -lgcc -lc -lgcc
>> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/bin/ld:
>> skipping incompatible
>> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi/libgcc.a
>> when searching for -lgcc
>>
>> I don't have any patches to gcc or binutils.
>>
>> Any suggestions on what to look for?
>>
> Well, libgcc_s is not of that arch which ld expects.
Well Doh!
The gcc-abi and 8byte multilib variants appeared to have
been added around 2012-11-20 by Nick Clifton. I think he
missed changing the ASM_SPEC in gcc/config/v850/rtems.h
when he added it. v850-rtems-gcc wasn't passing in the expected
cpu specification flags.
Nick.. how does this patch to gcc/config/v850/rtems.h look?
Index: rtems.h
===================================================================
--- rtems.h (revision 195054)
+++ rtems.h (working copy)
@@ -26,4 +26,8 @@
/* Map mv850e1 and mv850es to mv850e to match MULTILIB_MATCHES */
#undef ASM_SPEC
-#define ASM_SPEC "%{mv850es:-mv850e} %{mv850e1:-mv850e}
%{!mv850es:%{!mv850e1:%{mv*:-mv%*}}}"
+#define ASM_SPEC "%{mv850es:-mv850e} \
+%{mv850e1:-mv850e} \
+%{!mv850es:%{!mv850e1:%{mv*:-mv%*}} \
+%{m8byte-align:-m8byte-align} \
+%{mgcc-abi:-mgcc-abi}}"
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: v850 ld error
2013-01-10 0:45 ` Joel Sherrill
@ 2013-01-10 10:06 ` nick clifton
0 siblings, 0 replies; 4+ messages in thread
From: nick clifton @ 2013-01-10 10:06 UTC (permalink / raw)
To: Joel Sherrill; +Cc: Igor Pashev, binutils, GCC Patches
Hi Joel,
> Well Doh!
>
> The gcc-abi and 8byte multilib variants appeared to have
> been added around 2012-11-20 by Nick Clifton. I think he
> missed changing the ASM_SPEC in gcc/config/v850/rtems.h
> when he added it. v850-rtems-gcc wasn't passing in the expected
> cpu specification flags.
>
> Nick.. how does this patch to gcc/config/v850/rtems.h look?
Perfect. Sorry about the snafu. I have checked the patch in along with
this changelog entry.
Cheers
Nick
gcc/ChangeLog
2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
on to assembler.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-10 10:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-09 18:33 v850 ld error Joel Sherrill
2013-01-09 22:45 ` Igor Pashev
2013-01-10 0:45 ` Joel Sherrill
2013-01-10 10:06 ` nick clifton
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).