Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 11:39:18 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        ticso@cicely.de, freebsd-alpha@freebsd.org
Subject:   Re: firefox3 build fails on alpha
Message-ID:  <20080818093918.GE6331@cicely7.cicely.de>
In-Reply-To: <20080818083712.GA1032@mech-cluster238.men.bris.ac.uk>
References:  <20080708120738.GA74833@mech-cluster238.men.bris.ac.uk> <op.ud7arxvc9aq2h7@mezz.mezzweb.com> <20080712225929.GA22401@freebie.xs4all.nl> <20080731222442.GA35346@mech-cluster238.men.bris.ac.uk> <g723t3$jcd$1@lorvorc.mips.inka.de> <20080816161820.GG37139@cicely7.cicely.de> <20080818083712.GA1032@mech-cluster238.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 18, 2008 at 09:37:12AM +0100, Anton Shterenlikht wrote:
> On Sat, Aug 16, 2008 at 06:18:20PM +0200, Bernd Walter wrote:
> > On Sat, Aug 02, 2008 at 05:01:23PM +0000, Christian Weisgerber wrote:
> > > Anton Shterenlikht <mexas@bristol.ac.uk> wrote:
> > > 
> > > > I'm happy to test firefox3 on alpha, but need to learn about pathes.
> > > > 
> > > > In this particular case it seems that (at least) 2 files
> > > > are missing from the distribution:
> > > > 
> > > > 	xptcinvoke_freebsd_alpha.cpp
> > > > 	xptcstubs_freebsd_alpha.cpp
> > > 
> > > Yes.  These need to be created.
> > > 
> > > You have stumbled on a dirty secret:  the Mozilla family programs
> > > rely on a part that must be ported at the assembly(!) language level
> > > to each processor/compiler/(operating system) combination.
> > > 
> > > > I think that whoever created the tar file simply forgot to add the freebsd
> > > > files.
> > > 
> > > No, somebody needs to write them.
> > 
> > I wrote them a few years back for mozilla and they were part of the port.
> > Don't know what happened in the meantime, because since alpha support is
> > removed I stopped spending time into it.
> > The whole xptcinvoke thing is completely breandead anyway.
> > The intention was to have a portable interfacing to modules, but in fact
> > they just read the C++ vtable using assembly, which the compiler can do
> > without any help.
> > The assembly calling functions need to know the compiler specific
> > vtable and not a fixed self defined, which is not what I expected to see.
> > It took me several days to understand that they want something senseless.
> 
> Anyway, I seem to have fixed this. The build now passes this stage but
> fails at another. The mozilla developers 'don't know' how to fix it, and
> apparently lost the interest.
> 
> Anybody here cares to comment? Something to do with incorrect alignment.

Just accept the warnings.
Mozilla also always had some missaligned acces in it.
Fortunately we can correct missaligned access in userland and they are
not too much so you can live with them.
Especially since they said that the pointer always has the required
alignment.
The real bug is that they cast pointers of completely different types.
You can work around by increasing the alignemnt requirement of
PLDHashEntryHdr's type, so the compiler knows that.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080818093918.GE6331>