g-wrap 1.9.6 fails to build on Solaris 10

Derek Atkins warlord at MIT.EDU
Thu Dec 8 18:23:44 EST 2005


Hi,

I'm trying to build g-wrap 1.9.6 on Solaris 10.  I'm cc'ing gnucash
because this is all due to my attempts to build GnuCash on Solaris 10,
and I couldn't find a mailing list specific to g-wrap development.

Anyways, here's the GCC specs:

--> gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

--> uname -a
SunOS portnoy.mit.edu 5.10 Generic sun4u sparc SUNW,Sun-Blade-1500

But the build fails:

/bin/bash ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -g -O2   -o
libffi.la -rpath /afs/sipb.mit.edu/project/g-wrap/1.9.6/arch/sun4x_510/lib
-version-info `grep -v '^#' ./libtool-version` src/debug.lo src/prep_cif.lo
src/types.lo src/raw_api.lo src/java_raw_api.lo     src/sparc/ffi.lo
src/sparc/v8.lo src/sparc/v9.lo
gcc -shared -Wl,-h -Wl,libffi.so.4 -o .libs/libffi.so.4.0.1  src/.libs/debug.o
src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o
src/.libs/java_raw_api.o src/sparc/.libs/ffi.o src/sparc/.libs/v8.o
src/sparc/.libs/v9.o  -lc
ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o: symbol
<unknown>: offset 0x7f6c5a9e is non-aligned
ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o: symbol
<unknown>: offset 0x7f6c5aa2 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o: symbol
<unknown>: offset 0x7f6c5aa6 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o: symbol
<unknown>: offset 0x7f6c73dd is non-aligned
ld: fatal: relocation error: R_SPARC_32: file src/sparc/.libs/v8.o: symbol
<unknown>: offset 0x7f6c7b36 is non-aligned
collect2: ld returned 1 exit status
gmake[4]: *** [libffi.la] Error 1
gmake[4]: Leaving directory
`/afs/sipb.mit.edu/project/g-wrap/build/sun4x_510/g-wrap-1.9.6/libffi'

Any ideas?

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list