Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

GCC newlib problem

GCC newlib problem

2004-04-01 by Andreas Schwarz

Hello,

I downloaded newlib-lpc from
http://www.aeolusdevelopment.com/Articles/download.html, changed paths
in the makefile and linker script, replaced <unistd.h> with
<sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
building the examples fails with the message "arm-elf-ld: cannot find
-lnewlib-lpc", although the file is in /tmp/newlib and I have
SEARCH_DIR( /tmp/newlib) in the linker script.

Any hints?
Thanks

Re: [lpc2000] GCC newlib problem

2004-04-01 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "Andreas Schwarz" <usenet@...>
To: <lpc2000@yahoogroups.com>
Sent: Thursday, April 01, 2004 11:55 AM
Subject: [lpc2000] GCC newlib problem


> Hello,
> 
> I downloaded newlib-lpc from
> http://www.aeolusdevelopment.com/Articles/download.html, changed paths
> in the makefile and linker script, replaced <unistd.h> with
> <sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
> building the examples fails with the message "arm-elf-ld: cannot find
> -lnewlib-lpc", although the file is in /tmp/newlib and I have
> SEARCH_DIR( /tmp/newlib) in the linker script.

Try the GNU tools from Arius, they come with Newlib and work OK:

http://www.gnuarm.com/

Leon

Re: GCC newlib problem

2004-04-01 by a_s_3_3

--- In lpc2000@yahoogroups.com, "Leon Heller" <leon_heller@h...> wrote:
> 
> ----- Original Message ----- 
> From: "Andreas Schwarz" <usenet@a...>
> To: <lpc2000@yahoogroups.com>
> Sent: Thursday, April 01, 2004 11:55 AM
> Subject: [lpc2000] GCC newlib problem
> 
> 
> > Hello,
> > 
> > I downloaded newlib-lpc from
> > http://www.aeolusdevelopment.com/Articles/download.html, changed paths
> > in the makefile and linker script, replaced <unistd.h> with
> > <sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
> > building the examples fails with the message "arm-elf-ld: cannot find
> > -lnewlib-lpc", although the file is in /tmp/newlib and I have
> > SEARCH_DIR( /tmp/newlib) in the linker script.
> 
> Try the GNU tools from Arius, they come with Newlib and work OK:
> 
> http://www.gnuarm.com/

I already have a working ARM-GCC toolchain with newlib, but I still
need the Aeolus LPC210x newlib port.

RE: [lpc2000] GCC newlib problem

2004-04-01 by Patrick Lavin

Hello,

try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips the the "lib"
and ".a" from the library name when using the -l option.

e.g When you want to include libc.a you use -lc
Show quoted textHide quoted text
  -----Original Message-----
  From: news [mailto:news@...]On Behalf Of Andreas Schwarz
  Sent: 01 April 2004 11:56
  To: lpc2000@yahoogroups.com
  Subject: [lpc2000] GCC newlib problem


  Hello,

  I downloaded newlib-lpc from
  http://www.aeolusdevelopment.com/Articles/download.html, changed paths
  in the makefile and linker script, replaced <unistd.h> with
  <sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
  building the examples fails with the message "arm-elf-ld: cannot find
  -lnewlib-lpc", although the file is in /tmp/newlib and I have
  SEARCH_DIR( /tmp/newlib) in the linker script.

  Any hints?
  Thanks



----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/lpc2000/

    b.. To unsubscribe from this group, send an email to:
    lpc2000-unsubscribe@yahoogroups.com

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

RE: [lpc2000] GCC newlib problem

2004-04-01 by Robert Adsett

At 01:22 PM 4/1/04 +0100, you wrote:
>Hello,
>
>try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips the the 
>"lib" and ".a" from the library name when using the -l option.
>
>e.g When you want to include libc.a you use -lc

That should do it.  I added a note to the documentation.
>-----Original Message-----
>From: news [mailto:news@...]On Behalf Of Andreas Schwarz
>Sent: 01 April 2004 11:56
>To: lpc2000@yahoogroups.com
>Subject: [lpc2000] GCC newlib problem
>
>Hello,
>
>I downloaded newlib-lpc from
><http://www.aeolusdevelopment.com/Articles/download.html,>http://www.aeolusdevelopment.com/Articles/download.html, 
>changed paths
>in the makefile and linker script, replaced <unistd.h> with
><sys/unistd.h>, and was finally able to build the newlib-lpc.a. But

I'll take a look at that for the next update.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: GCC newlib problem

2004-04-01 by a_s_3_3

--- In lpc2000@yahoogroups.com, "Patrick Lavin" <patrick.lavin@a...>
wrote:
> Hello,
> 
> try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips the
the "lib"
> and ".a" from the library name when using the -l option.

Of course, I didn't think of that. Thanks!

Andreas

> e.g When you want to include libc.a you use -lc
>   -----Original Message-----
>   From: news [mailto:news@s...]On Behalf Of Andreas Schwarz
>   Sent: 01 April 2004 11:56
>   To: lpc2000@yahoogroups.com
>   Subject: [lpc2000] GCC newlib problem
> 
> 
>   Hello,
> 
>   I downloaded newlib-lpc from
>   http://www.aeolusdevelopment.com/Articles/download.html, changed paths
>   in the makefile and linker script, replaced <unistd.h> with
>   <sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
>   building the examples fails with the message "arm-elf-ld: cannot find
>   -lnewlib-lpc", although the file is in /tmp/newlib and I have
>   SEARCH_DIR( /tmp/newlib) in the linker script.
> 
>   Any hints?
>   Thanks
> 
> 
> 
>
----------------------------------------------------------------------------
> --
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/lpc2000/
> 
>     b.. To unsubscribe from this group, send an email to:
>     lpc2000-unsubscribe@yahoogroups.com
> 
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.