Re: [osol-code] building on non-native solaris releases....

2006-08-14 Thread Joerg Schilling
Jonathan Adams <[EMAIL PROTECTED]> wrote: > > It is strange, the cc -flags output suggest that > > > > cc -YP,/usr/libdir > > > > should work but it seems that ld(1) does not know about this. > > Works for me: > > % cc -YP,/foo -o tmpc tmpc.c > ld: fatal: library -lc: not found > ld: fatal: Fil

Re: [osol-code] building on non-native solaris releases....

2006-08-14 Thread Jonathan Adams
On Mon, Aug 14, 2006 at 02:41:52PM +0200, Joerg Schilling wrote: > Jonathan Adams <[EMAIL PROTECTED]> wrote: > > > > > -YI,/path/to/replacement/for/usr/include > > > > > > > > I've done some of the work for this; I'll see if I can drag out my > > > > e-mails > > > > from a year ago that list all

Re: [osol-code] building on non-native solaris releases....

2006-08-14 Thread Jonathan Adams
On Sat, Aug 12, 2006 at 11:40:20PM +0200, Joerg Schilling wrote: > Gavin Maltby <[EMAIL PROTECTED]> wrote: > > > Joerg Schilling wrote: > > > > > > > > This would make OpenSolaris more stable even in the non-cross compilation > > > case. Note that OpenSolaris does use /usr/include from the host s

Re: [osol-code] building on non-native solaris releases....

2006-08-14 Thread Joerg Schilling
Jonathan Adams <[EMAIL PROTECTED]> wrote: > > > -YI,/path/to/replacement/for/usr/include > > > > > > I've done some of the work for this; I'll see if I can drag out my > > > e-mails > > > from a year ago that list all of the wonderful corners. > > > > > > IIRC, if we can ignore C++ and assembly,

Re: [osol-code] building on non-native solaris releases....

2006-08-14 Thread Paul Winder
The problem was getting an alternate /usr/lib to ld(1); it's probably possible to do, but the GCC setup when I was doing it made it annoying. Try adding "-Wl,-rpath-link,$(ROOT)/lib:$(ROOT)/usr/lib" or similar to the LDFLAGS That's what we use to cross compile our app. for NetBSD on sol

Re: [osol-code] building on non-native solaris releases....

2006-08-12 Thread Joerg Schilling
Gavin Maltby <[EMAIL PROTECTED]> wrote: > Joerg Schilling wrote: > > > > > This would make OpenSolaris more stable even in the non-cross compilation > > case. Note that OpenSolaris does use /usr/include from the host system > > instead > > of using the include files that are specific to the cur

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Garrett D'Amore
Alan DuBoff wrote: > On Friday 11 August 2006 11:23 am, Garrett D'Amore wrote: > >> Gcc can definitely be made to work. :-) I've been using cross-compile >> environments with GCC to cross compile whole NetBSD distributions for >> MIPS using a build environment running on my Sun Ultra 20 (runnin

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Alan DuBoff
On Friday 11 August 2006 11:23 am, Garrett D'Amore wrote: > Gcc can definitely be made to work. :-) I've been using cross-compile > environments with GCC to cross compile whole NetBSD distributions for > MIPS using a build environment running on my Sun Ultra 20 (running > Solaris 10). :-) GCC wa

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Jonathan Adams
On Fri, Aug 11, 2006 at 11:23:40AM -0700, Garrett D'Amore wrote: > Jonathan Adams wrote: > > On Fri, Aug 11, 2006 at 10:30:18AM -0700, Gavin Maltby wrote: > > > >> Joerg Schilling wrote: > >> > >> > >>> This would make OpenSolaris more stable even in the non-cross compilation > >>> case. No

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Gavin Maltby
Garrett D'Amore wrote: Has anyone given any thought to convincing OpenSolaris to use its own proto area (populated by the install_h target or somesuch) instead of assuming local system headers? What about libraries? Startup code? Tools? I have s story of a brute-force approach to a related

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Garrett D'Amore
Jonathan Adams wrote: > On Fri, Aug 11, 2006 at 10:30:18AM -0700, Gavin Maltby wrote: > >> Joerg Schilling wrote: >> >> >>> This would make OpenSolaris more stable even in the non-cross compilation >>> case. Note that OpenSolaris does use /usr/include from the host system >>> instead of us

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Jonathan Adams
On Fri, Aug 11, 2006 at 02:00:16PM -0400, Richard Lowe wrote: > Gavin Maltby wrote: > >Joerg Schilling wrote: > > > >> > >>This would make OpenSolaris more stable even in the non-cross compilation > >>case. Note that OpenSolaris does use /usr/include from the host system > >>instead of using the i

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Richard Lowe
Gavin Maltby wrote: Joerg Schilling wrote: This would make OpenSolaris more stable even in the non-cross compilation case. Note that OpenSolaris does use /usr/include from the host system instead of using the include files that are specific to the current build Where that happens for ON it

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Jonathan Adams
On Fri, Aug 11, 2006 at 10:30:18AM -0700, Gavin Maltby wrote: > Joerg Schilling wrote: > > > > >This would make OpenSolaris more stable even in the non-cross compilation > >case. Note that OpenSolaris does use /usr/include from the host system > >instead of using the include files that are specif

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Gavin Maltby
Joerg Schilling wrote: This would make OpenSolaris more stable even in the non-cross compilation case. Note that OpenSolaris does use /usr/include from the host system instead of using the include files that are specific to the current build Where that happens for ON it is a bug either in ma

Re: [osol-code] building on non-native solaris releases....

2006-08-11 Thread Peter Memishian
> Well, if the interfaces are stable, then maybe the _headers_ can be > placed into ON to facilitate this kind of building. Ick. If the interfaces are stable, the build system's headers should suffice. Pulling everything into ON is not a tractable approach. (Why stop there? Why not put the c

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Garrett D'Amore
Peter Memishian wrote: > > In my opinion, if a library is required to build ON, then it should > > probably be moved into ON. > > Why? If reasonable software engineering practices have been followed, any > dependencies that ON might have on external libraries should be through > versioned, stabl

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Peter Memishian
> In my opinion, if a library is required to build ON, then it should > probably be moved into ON. Why? If reasonable software engineering practices have been followed, any dependencies that ON might have on external libraries should be through versioned, stable interfaces. If external depend

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Peter Memishian
> Well, the kernel and most (if not all) of lib already has ISA-specific > build directories. Some things in cmd are structured that way, too, but > an awful lot of stuff just dumps all the derived files into the same > directory as the sources. For the curious: commands only have that Mak

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Mike Kupfer
> "GD" == Garrett D'Amore <[EMAIL PROTECTED]> writes: GD> Why so much for cmd? Well, the kernel and most (if not all) of lib already has ISA-specific build directories. Some things in cmd are structured that way, too, but an awful lot of stuff just dumps all the derived files into the same

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Jonathan Adams
On Thu, Aug 10, 2006 at 01:08:10PM -0700, Garrett D'Amore wrote: > > > > Agreed. If you're interested in working on this, I can put together my > > notes > > from the last time I worked on this (a few months back; my first big push > > was a year or so ago). > > > > Sure. I want to at least

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Garrett D'Amore
Jonathan Adams wrote: > On Wed, Aug 09, 2006 at 06:21:38PM -0700, Garrett D'Amore wrote: > > > Hmm... apart the compilers themselves, what does ON depend on other than itself? Depending on headers from other consolidations seems "weird". (We had some ca

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Jonathan Adams
On Wed, Aug 09, 2006 at 06:21:38PM -0700, Garrett D'Amore wrote: > >>> > >> Hmm... apart the compilers themselves, what does ON depend on other than > >> itself? Depending on headers from other consolidations seems "weird". > >> (We had some cases of something like that with shared interfa

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Keith M Wesolowski
On Thu, Aug 10, 2006 at 07:22:41AM -0700, Garrett D'Amore wrote: > In my opinion, if a library is required to build ON, then it should > probably be moved into ON. > > This might mean that libxml should be moved. Yes, and most people I've talked with about this have agreed. There have been at v

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Mike Sullivan
Rainer Orth wrote: [EMAIL PROTECTED] writes: ... which would be a nightmare if you regularly had to build them from source just to be able to build ON. SFW alone takes about as long to compile as ON, and (unlike ON) requires a 64-bit machine to build. When we started with the Solaris 64 bit b

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Rainer Orth
Garrett D'Amore writes: > In my opinion, if a library is required to build ON, then it should > probably be moved into ON. > > This might mean that libxml should be moved. > > If it were moved, then the autoconf code could be removed and replaced > with hardcoded Makefiles. It probably wouldn't

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Garrett D'Amore
Rainer Orth wrote: > [EMAIL PROTECTED] writes: > > >>> ... which would be a nightmare if you regularly had to build them from >>> source just to be able to build ON. SFW alone takes about as long to >>> compile as ON, and (unlike ON) requires a 64-bit machine to build. >>> >> When we sta

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Joerg Schilling
Rainer Orth <[EMAIL PROTECTED]> wrote: > Unfortunately, fixing this (CR 6401063) is hard since in general autoconf > tests require that test binaries can run on the build machine. Everything > else is handled as cross-compilation, which isn't well supported by most > packages. I've done a couple

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Garrett D'Amore
[EMAIL PROTECTED] wrote: >> This list certainly isn't complete, but gives an idea. So overall it's >> quite a list from the SFW and Admin consolidations. >> > > This doesn't look easy to fix other than by requiring multiple > consolidations to be installed. > > Casper > I've always wonder

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Joerg Schilling
Rainer Orth <[EMAIL PROTECTED]> wrote: > > ... which would be a nightmare if you regularly had to build them from > source just to be able to build ON. SFW alone takes about as long to > compile as ON, and (unlike ON) requires a 64-bit machine to build. This is the pitfall of dynamic auto-config

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Joerg Schilling
"Garrett D'Amore" <[EMAIL PROTECTED]> wrote: > Is there anyone else interested in being able to cross-compile Solaris > like this? I'm willing to work on an effort to make this work if others > are interested (and particularly if someone from inside Sun is willing > to work with me on the process

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Rainer Orth
[EMAIL PROTECTED] writes: > >... which would be a nightmare if you regularly had to build them from > >source just to be able to build ON. SFW alone takes about as long to > >compile as ON, and (unlike ON) requires a 64-bit machine to build. > > When we started with the Solaris 64 bit builds, yo

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Casper . Dik
>[EMAIL PROTECTED] writes: > >> >This list certainly isn't complete, but gives an idea. So overall it's >> >quite a list from the SFW and Admin consolidations. >> >> This doesn't look easy to fix other than by requiring multiple >> consolidations to be installed. > >... which would be a nightmar

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Rainer Orth
[EMAIL PROTECTED] writes: > >This list certainly isn't complete, but gives an idea. So overall it's > >quite a list from the SFW and Admin consolidations. > > This doesn't look easy to fix other than by requiring multiple > consolidations to be installed. ... which would be a nightmare if you r

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Casper . Dik
>This list certainly isn't complete, but gives an idea. So overall it's >quite a list from the SFW and Admin consolidations. This doesn't look easy to fix other than by requiring multiple consolidations to be installed. Casper ___ opensolaris-code mai

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Rainer Orth
[EMAIL PROTECTED] writes: > There are, however, a few exceptions: bits not in "ON" and some > other bits used by the compiler: > > - XML and other libraries > - linker I initially observed a couple of additional dependencies when I started building ON without having SUNWCXall install

Re: [osol-code] building on non-native solaris releases....

2006-08-10 Thread Casper . Dik
>OpenSolaris currently requires that you build it on a version of Solaris >that is very close to the version that you are building. E.g. you can't >build OpenSolaris on Solaris 9 (or even early releases of Solaris 10.) > >I believe that the primary reason for this is differences in system >header

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread John Plocher
Garrett D'Amore wrote: I -know- ARC review is required for interface changes, but I would have thought there would have to have been some wider review of a major change like what I'm proposing. Somehow it just sounds "too easy". :-) It might help to remember that there are two distinct types o

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Peter Memishian
> > Note that my original interest in this was twofold: to simplify ON's > > Makefiles so that we don't have to track cross-library dependencies, and > > to allow full parallelism during builds of usr/src/lib. > > Those are both likely to be very, very nice benefits. It deserves more > inv

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Garrett D'Amore
Mike Kupfer wrote: >> "GD" == Garrett D'Amore <[EMAIL PROTECTED]> writes: >> > > GD> Is there anyone else interested in being able to cross-compile > GD> Solaris like this? > > I'm interested, and I'm sure others are. But I expect it to be a lot of > work, particularly for c

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Garrett D'Amore
Peter Memishian wrote: > > If I remember correctly Peter Memishian has looked at this a little and > > came up with the idea of first building "stuff" libraries based on the > > linker mapfiles on a first pass. The build would then run as normal and > > use the proto area stub libs. > > Rig

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Peter Memishian
> If I remember correctly Peter Memishian has looked at this a little and > came up with the idea of first building "stuff" libraries based on the > linker mapfiles on a first pass. The build would then run as normal and > use the proto area stub libs. Right. I think Jonathan explored th

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Mike Kupfer
> "GD" == Garrett D'Amore <[EMAIL PROTECTED]> writes: GD> Is there anyone else interested in being able to cross-compile GD> Solaris like this? I'm interested, and I'm sure others are. But I expect it to be a lot of work, particularly for cmd, and I can't justify to myself spending time on

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Garrett D'Amore
Jonathan Adams wrote: > On Wed, Aug 09, 2006 at 05:37:49PM -0700, Garrett D'Amore wrote: > >> Darren J Moffat wrote: >> >>> Garrett D'Amore wrote: >>> OpenSolaris currently requires that you build it on a version of Solaris that is very close to the version that you are bui

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Jonathan Adams
On Wed, Aug 09, 2006 at 05:37:49PM -0700, Garrett D'Amore wrote: > Darren J Moffat wrote: > > Garrett D'Amore wrote: > >> OpenSolaris currently requires that you build it on a version of Solaris > >> that is very close to the version that you are building. E.g. you can't > >> build OpenSolaris on

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Garrett D'Amore
Darren J Moffat wrote: > Garrett D'Amore wrote: >> OpenSolaris currently requires that you build it on a version of Solaris >> that is very close to the version that you are building. E.g. you can't >> build OpenSolaris on Solaris 9 (or even early releases of Solaris 10.) > > Lets nit pick on some

Re: [osol-code] building on non-native solaris releases....

2006-08-09 Thread Darren J Moffat
Garrett D'Amore wrote: OpenSolaris currently requires that you build it on a version of Solaris that is very close to the version that you are building. E.g. you can't build OpenSolaris on Solaris 9 (or even early releases of Solaris 10.) Lets nit pick on some important terminology first :-)

[osol-code] building on non-native solaris releases....

2006-08-09 Thread Garrett D'Amore
OpenSolaris currently requires that you build it on a version of Solaris that is very close to the version that you are building. E.g. you can't build OpenSolaris on Solaris 9 (or even early releases of Solaris 10.) I believe that the primary reason for this is differences in system headers and l