Linker error

Phung Nguyen
Fri Aug 27 11:56:00 GMT 2010

Hi Nick,

Thank you for your idea.

I commented out line 169 (#@target_makefile_frag@) and deleted
@target_makefile_frag_path@ in the next line. This time, I rebuild the
libgloss successfully  without any error message. In directories
xc16x/xc16xl/libgloss/xc16x, xc16x/xc16xs/libgloss/xc16x and
xc16x/libgloss/xc16x, there are crt0.o. Is it enough? However, when
compiling the c code with a call to printf, I still got the previous

Is there anyone built newlib with target xc16x??? or anyone has any
idea to solve the problem???

I am looking forward to any suggestion.


On Tue, Aug 24, 2010 at 2:32 PM, Nick Clifton <> wrote:
> Hi Phung,
>> I logged the make and found out an error when making libgloss as in
>> the attached file. Is it the reason to cause the problem?
> Yes.
>> make[5]: Entering directory `/home/guest/c166/rebuild052010/07082010
>> /newlib/xc16x-elf/xc16xl/libgloss/xc16x'
>> Makefile:169: *** missing separator.  Stop.
> You need to find out what is wrong with line 169 in the Makefile.  It will
> probably turn out to be a configuration problem that is leaving a @<name>@
> variable in the constructed Makefile.  You can either track down the problem
> and fix it.  Or if you want a quick fix, just edit the Makefile to remove
> the offending variable(s) and then retry building libgloss.
> Make sure that the libgloss build succeeds.  Without it you will not be able
> to link your applications.
> Cheers
>  Nick

More information about the Newlib mailing list