John R. Shannon | 9 Oct 2003 23:49
Favicon

Cross-building


Is this web page correct about not being able to cross-build the amd64 port 
(from an i386)?

http://www.netbsd.org/developers/features/

I ask, because I naively ran 

./build.sh -m amd64 tools release

before seeing the web page. The build got as far as building the GENERIC 
kernel. There the compiler did not like line 128 of netbsd32_netbsd.c on 
compat/netbsd32; something easily worked around.

Am I missing something?

Also, is the page correct about gdb not working?

--

-- 

John R. Shannon
john <at> johnrshannon.com
Masaru OKI | 10 Oct 2003 02:18
Picon

Re: Cross-building

On Thu, 9 Oct 2003 15:49:55 -0600
"John R. Shannon" <john <at> johnrshannon.com> wrote:

> Am I missing something?

compat_netbsd32 (at least, for amd64) is still not support siginfo.
who is working?

--

-- 
Masaru OKI <oki <at> netbsd.org>

Frank van der Linden | 10 Oct 2003 14:14
Picon

Re: Cross-building

On Thu, Oct 09, 2003 at 03:49:55PM -0600, John R. Shannon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Is this web page correct about not being able to cross-build the amd64 port 
> (from an i386)?

There's the issue of gdb. I haven't yet checked in the changes needed
to make gdb 5.3 work, I hope to do that this weekend.
> 
> before seeing the web page. The build got as far as building the GENERIC 
> kernel. There the compiler did not like line 128 of netbsd32_netbsd.c on 
> compat/netbsd32; something easily worked around.

Yep, that's the problem with compat_netbsd32 not yet supporting siginfo,
which was recently brought in. I also hope to fix that soon. For amd64
at least.. The other platforms that use compat_netbsd32 will need
seperate fixing.

- Frank

--

-- 
Frank van der Linden                                            fvdl <at> netbsd.org
===============================================================================
NetBSD. Free, Unix-like OS. > 45 different platforms.    http://www.netbsd.org/ 

Michal Ludvig | 10 Oct 2003 14:28
Picon
Favicon

Re: Cross-building

Frank van der Linden told me that:
> On Thu, Oct 09, 2003 at 03:49:55PM -0600, John R. Shannon wrote:
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Is this web page correct about not being able to cross-build the amd64 port 
>>(from an i386)?
> 
> 
> There's the issue of gdb. I haven't yet checked in the changes needed
> to make gdb 5.3 work, I hope to do that this weekend.

By chance, doesn't GDB 6.0 support amd64/freebsd natively? I thought it 
does...

Michal Ludvig

Frank van der Linden | 10 Oct 2003 14:25
Picon

Re: Cross-building

On Fri, Oct 10, 2003 at 02:28:15PM +0200, Michal Ludvig wrote:
> By chance, doesn't GDB 6.0 support amd64/freebsd natively? I thought it 
> does...

I don't know which platforms are supported by GDB 6.0.. I started out
(quite a while ago) patching what was then gdb-current. But, gdb was
in too much of a state of flux at that time, so I decided to use
gdb5.3 instead. I've had working changes for gdb 5.3 for a while
(and it is included on the ISO images I've made), but I never
checked the changes in.

I'll have to redo the changes and feed them back for GDB 6, but that's
not important right now.

- Frank

--

-- 
Frank van der Linden                                            fvdl <at> netbsd.org
===============================================================================
NetBSD. Free, Unix-like OS. > 45 different platforms.    http://www.netbsd.org/ 

Michal Ludvig | 10 Oct 2003 15:15
Picon
Favicon

Re: Cross-building

Frank van der Linden told me that:
> On Fri, Oct 10, 2003 at 02:28:15PM +0200, Michal Ludvig wrote:
> 
>>By chance, doesn't GDB 6.0 support amd64/freebsd natively? I thought it 
>>does...
> 
> I don't know which platforms are supported by GDB 6.0.. I started out
> (quite a while ago) patching what was then gdb-current. But, gdb was
> in too much of a state of flux at that time, so I decided to use
> gdb5.3 instead. I've had working changes for gdb 5.3 for a while
> (and it is included on the ISO images I've made), but I never
> checked the changes in.
> 
> I'll have to redo the changes and feed them back for GDB 6, but that's
> not important right now.

Are NetBSD and FreeBSD very different at this level?

[gdb-6.0/gdb/NEWS]
* New native configurations.
FreeBSD/amd64               x86_64-*-freebsd*

Michal Ludvig

Frank van der Linden | 10 Oct 2003 15:25
Picon

Re: Cross-building

On Fri, Oct 10, 2003 at 03:15:53PM +0200, Michal Ludvig wrote:
> Are NetBSD and FreeBSD very different at this level?

Probably not, but at this point it's irrelevant, since NetBSD 2.0
will be shipping with gdb 5.3, not gdb 6.0..

- Frank

--

-- 
Frank van der Linden                                            fvdl <at> netbsd.org
===============================================================================
NetBSD. Free, Unix-like OS. > 45 different platforms.    http://www.netbsd.org/ 

David O'Brien | 11 Oct 2003 04:51

Re: Cross-building

On Fri, Oct 10, 2003 at 02:25:59PM +0200, Frank van der Linden wrote:
> I'll have to redo the changes and feed them back for GDB 6, but that's
> not important right now.

Don't waste *any* time with GDB 5.3.  I personally worked to get Mark
Kettenis <kettenis <at> gnu.nl> an AMD64 system with extra disks so he could
multi-boot it, for GDB development.  He's done some great work
rearchitecting both AMD64 and Sparc64 in GDB mainline (and 6.0 branch).
I would just touch base with him to see if NetBSD's needs aren't already
taken care of.  And if not, he might be able to do what is needed with
out much effort.

--

-- 
-- David    (obrien <at> NUXI.com)

Frank van der Linden | 15 Oct 2003 01:08
Picon

amd64 port completely crossbuildable

Since I've added gdb support to the tree and enabled it, NetBSD/amd64
is totally crossbuildable now. Or it should be; I haven't yet tried
a complete build (I have done builds in the past with gdb commented
out, though, and they worked).

I'll do a testbuild tomorrow.

Things to look at:

	* backtrace through signal handlers in gdb (it skips one frame).
	* check reports of libpthread having stopped working a while
	  ago

These items should not cost much time, I'll post an update, and an
update ISO image, soon.

- Frank

--

-- 
Frank van der Linden                                            fvdl <at> netbsd.org
===============================================================================
NetBSD. Free, Unix-like OS. > 45 different platforms.    http://www.netbsd.org/ 

Richard Rauch | 18 Oct 2003 04:57

nVidia motherboards?

I've got my grubby bits on an nVidia based AMD64 motherboard (and AMD64 CPU,
of course; (^&).

When I try to boot from CD, the video drops out.  I can't tell that anything
is happening with the boot from CD.  (The disk spins, stops, spins some more,
etc.  It seems to stick in that cycle.)  This is with the ISO image that you
put up a little while ago.  (20031005, I think.)

I am able to get into its BIOS and poke around.  I also am using a disk, for
now, salvaged from an i386 machine (with NetBSD 1.6 on the disk).  That gets
partway through a boot and displays messages but (of course) locks up.

Could part of the problem be that I'm using an old PCI video card?  Or would
that not matter at all to NetBSD?  (No AGP at this time.)

Might I fare better with a a serial console?

When I say that the video signal drops, I really do mean that.  It's as if
the monitor were disconnected (the green LED on the monitor switches to
amber).

I don't know AMD64 assembly, but am willing to invest some time in making
this work (I'm already in for a pretty penny; (^&).  Pointers, suggestions,
kernels-to-try, etc. are welcome.  (Failing any of the above, I might at
least see if any of the "other guys" fare any better.  E.g., FreeBSD or some
variety of penguin.)

--

-- 
  "I probably don't know what I'm talking about."  http://www.olib.org/~rkr/

(Continue reading)


Gmane