This is the mail archive of the libffi-discuss@sourceware.cygnus.com mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error building libffi


David Scott Urban wrote:

> ../configure --prefix=/home/urban/local/sun26 --enable-threads=posix
> --enable-java-gc=boehm --with-as=/home/urban/local/sun26/bin/gas
> --with-ld=/home/uban/local/sun26/bin/gld
> 
> Iam am getting the following error when compiling libffi:
> 
> /bin/sh ./libtool --mode=link gcc -fexceptions -g -O2   -o libffi.la -rpath
> /home/urban/local/sun26/lib -release 2.00-beta  debug.lo prep_cif.lo types.lo
> raw_api.lo ffi.lo v8.lo
> rm -fr .libs/libffi.la .libs/libffi.* .libs/libffi-2.00-beta.*
> gcc -shared  debug.lo prep_cif.lo types.lo raw_api.lo ffi.lo v8.lo  -lc
> -Wl,-soname -Wl,libffi-2.00-beta.so -o .libs/libffi-2.00-beta.so
> ld: warning: option -o appears more than once, first setting taken
> ld: fatal: file libffi-2.00-beta.so: cannot open file: No such file or directory

I don't know if compiling libffi is currently broken on Solaris, but given 
the above error message it seems to me, that the solaris native linker is
complaining there. The question is why the solaris linker is used and not 
the gnu linker. 

1. Make sure that /home/uban/local/sun26/bin is the first element in your path. 
2. Does

  $ /home/uban/local/sun26/bin/gld -v

say something like

GNU ld version 2.9.1 (with BFD 2.9.1)

Good luck,

Jörg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]