delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/09/10/03:04:11

Date: Thu, 10 Sep 1998 09:58:36 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Nate Eldredge <nate AT cartsys DOT com>
cc: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: Updated diffs for compiling DJLSR-980907 with EGCS-1.1
In-Reply-To: <35F742D0.AA817E03@cartsys.com>
Message-ID: <Pine.A32.3.91.980910094121.59746A-100000@ieva01.lanet.lv>
MIME-Version: 1.0


On Wed, 9 Sep 1998, Nate Eldredge wrote:

> DJ Delorie wrote:
> > 
> > >    - native libc.a include files (libc-5.4.46) defines POSIX_SOURCE
> > >      that effectively eliminates contents of coff.h from djcrx202.zip;
> > 
> > This is a bug in Linux.  The system headers must never define
> > POSIX_SOURCE themselves; POSIX does not allow it.  POSIX_SOURCE is a
> > request *by the application* for a POSIX-compliant environment.
> 
> (It's `_POSIX_SOURCE', btw, with leading underscore.)

Sorry for typo.

> I posted this to glibc-bugs a while ago (it's the same in glibc 2), but
> got no response.  Perhaps we should try again, or mail the maintainers
> directly?
> 
> It would be nice to be able to cross-build DJGPP on Linux.
> -- 
> 

I can send some patches and simple scripts to build egcs-1.1 as 
cross-compiler to DJGPP if needed. With latest version it built without 
problems on host i586-pc-linux-gnulibc1 for me (I had built already binutils 
2.9.1.0.10 and gcc-2.8.1 for target i586-pc-msdosdjgpp earlier)

After changing some assembler commands in DJLSR202 (binutils version I used
didn't want to recognize fldcww and fstpcww. I browsed sources of
libc-5.4.46 for Linux and found modified ones from DJ where 
fldcww were replaced by fldcw and fstpcww by fstpcw) and applying my 
other patches I have sent to this myling list I built patched 
DJLSR202-980907 under Linux without any problems. Installed newly built
executables and libraries and didn't met any problems yet (relinked
RHIDE for example also due to one patch from SET)

Perhaps I'll include examples how to build egcs-1.1 as cross-compiler for
DJGPP in source archive (when I'll update it)

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019