This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "SVC is not permitted on this architecture" while compiling Newlib


> > >>
> > >> but i am getting following error:
> > >> "../../../../../newlib/libgloss/arm/linux-syscalls0.S: Assembler
> > >> messages:
> > >>   ../../../../../newlib/libgloss/arm/linux-syscalls0.S:44: Error:
> > >> SVC is not permitted on this architecture"
> > >>
> > >> Could  you please advice how to fix it.
> > >> I am not entirely sure what SVC is to be honest but from the little
> > >> reading i did it seem that SVC is supported on M3 devices. Do i
> > >> miss an argument during a configure part??
> > >
> > > This is a bug in the Binutils.  It should be fixed at least on the
> > > CVS head.
> > >
> > Hello and thanks for the reply.
> >
> > I compiled the newest binutils.
> > Typing ld -v displays:
> >
> > kris@caspinol $ ld -v
> > GNU ld (GNU Binutils) 2.22
> >
> > But when i build newlib i get the same error:
> > "../../../../../newlib/libgloss/arm/linux-syscalls0.S: Assembler
messages:
> >    ../../../../../newlib/libgloss/arm/linux-syscalls0.S:44: Error: SVC
> > is not permitted on this architecture"
> >
> > I cleared all the old files and run ./configure and make again but the
> > error persists.
> > Thanks
> >

Just confirmed that if you pass -march=armv6-m to assembler, as will assume
the target does not support os-extension, which means SVC is not supported.
Anything else like -march=armv6s-m/-mcpu=cortex-m0/-mcpu=cortex-m1 are OK.

Thanks




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]