This is the mail archive of the newlib@sources.redhat.com 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]

building newlib for mingw32


I've been reading for days, and still can't quite come up with the answer to several problems/questions.

We are attempting to bring over some internally developed libraries and code from what compiles on a variety of *nix boxes to Winblows.


We're using a mingw32 with Msys environment, and are looking to newlib to provide a lot of the library functionality which MSVCRT doesn't. While we
don't rely on a lot of library calls, mingw32 seems to not have values in the include files for a lot of common library routines. So, although you might link with liberty,
a lot of the defines are missing...and I understand from a licensing perspective why.


We realize we will have to fill in a lot of what windows doesn't natively provide [ i.e. system calls ] but we were hoping to use newlib to accomplish some of what we couldn't accomplish easily with liberty & mingw.

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 path is wrong, and the .c's can't find libc/include.


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 wsbrk are multiply defined...i.e. in freer.o and mallocr.o.


So, I'm sure some of you have been down this porting road before. If this is the right direction to go to accomplish this, perhaps you can help me
with the two problems above. If not, perhaps you can put me on the right path?



Thanks,


-- Brian
+==========================================================+
Brian N. Hawley                 bhawley at luminex dot com
Luminex Software, Inc.		http://www.luminex.com
PO Box 5908                     voice: 909-781-4100 x112
Riverside, CA  92517            fax: 909-781-4105
+==========================================================+



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