Hi -
I had exactly the same trouble with wrc trying to compile on the PPC
architecture. A quick hack removing the byteswapping got me past that,
but now winebuilder is broken. I've changed all the .align directives
to .balign's, because I _think_ that causes the correct behavior on the
PPC. But, now I'm getting:
/tmp/ccA3BDf3.s: Assembler messages:
/tmp/ccA3BDf3.s:27355: Error: alignment padding (1 bytes) not a multiple
of 4
...while trying to compile ntdll.spec.c Unfortunately, the line number
given by the assembler is just the last line of the file, so I don't
know where the trouble really lies. And I can go through the assembler
file to ensure that every .balign directive is, in fact, passed a
multiple of 4 and I still get this error.
Does anyone know where, besides the .balign directives, I should suspect
the source of this error to be?
Thanks!
- Josh.
Ulrich Weigand wrote:
>
> Moritz Barsnick wrote:
>
> > I recently noticed that Wine is also supposed to be buildable on
> > Solaris/SPARC. Great. :)
>
> Well, it doesn't quite work yet :-/
>
> > P.P.S.:
> > make[2]: Entering directory /tmp/uk/Wine/wine-20001202/dlls/kernel'
> > LD_LIBRARY_PATH="../..:$LD_LIBRARY_PATH" ../../tools/wrc/wrc -I. -I.
>-I../../include -I../../include -o kernel.res -r kernel.rc
> > messages/winerr_enu.mc.rc:2286: Oops, segment violation
> > Abort
> > make[2]: *** [kernel.res] Error 134
>
> Yes, wrc is broken here; it thinks it need to byte-swap although the
> message compiler already wrote the file in big-endian. Thus, it gets
> nonsense length values and crashes subsequently.
>
> wrc is further broken in that is does not cope with unaligned data
> found in binary input files or raw data (e.g. icons etc.), and hence
> causes bus errors on Sparc.
>
> winebuild is also broken in that it always generates i386 assembly
> code for import thunks and constructor/destructor stubs.
>
> Various parts of the main source are also not alignment safe.
>
> I have from time to time tried to fix those problems, but it's not
> complete yet. I could try this weekend to clean up the patches
> already in my tree, so that it'll at least be possible to compile
> Winelib ...
>
> Bye,
> Ulrich
>
> --
> Dr. Ulrich Weigand
> [EMAIL PROTECTED]
--
Josh DuBois
654 SW Grant #103, Portland, OR 97201
503-827-4818
[EMAIL PROTECTED]