building newlib for mingw32
Tue Mar 18 19:02:00 GMT 2003
>> I've never tried to build newlib for mingw since, on Windows, newlib is
>> typically built for cygwin. However, there seems to at least be a
>> target for mingw in configure so maybe it's supposed to work.
>> >We realize we will have to fill in a lot of what windows doesn't
>> >provide [ i.e. system calls ] but we were hoping to use newlib to
>> >accomplish some of what we couldn't accomplish easily with liberty &
>> Filling in a lot of what windows doesn't natively do is actually what
> We can't use Cygwin due to licensing restrictions.
>> >Problem 1: configure. I've followed the README, but the configure
>> script in
>> >the top level build directory does not recurse.
>> > And, if I use ../../newlib/configure, then the include
>> > is wrong, and the .c's can't find libc/include.
>> Sorry, but you're not providing many details. As a wild guess, perhaps
>> you shouldn't be using relative paths to configure but should be
>> building in a completely separate build directory. That's how I
>> build newlib for cygwin.
> I'm following the README in the newlib distribution verbatim.
Brian, try using an absolute path to newlib's configure. If you still have
the same problems, then please post your configuration line and what
errors you are seeing on the make.
If you could also post an example of what errors you are seeing in
mallocr.o, it would make it easier to assist you.
>> Otherwise, please provide your directory layout, the commands you're
>> to configure and make newlib, an example gcc command line, and exact
>> message output.
>> >Problem 2: I worked around problem 1 manually. I then created stubs
>> for all
>> >the system calls that newlib makes [ and it makes a few ], I will
>> fill them
>> >out later.
>> > But, I get linker errors complaining that gcleanup and
>> > are multiply defined...i.e. in freer.o and mallocr.o.
>> Sorry. Can't help there. Again, details would help, like the actual gcc
>> command line you're using.
More information about the Newlib