ports/127778: llvm can't create shared lib
Ollivier Robert
roberto at FreeBSD.org
Wed Oct 1 15:10:01 UTC 2008
>Number: 127778
>Category: ports
>Synopsis: llvm can't create shared lib
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 01 15:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ollivier Robert
>Release: FreeBSD 7.0-RELEASE amd64
>Organization:
Usenet Canal Historique
>Environment:
System: FreeBSD keltia.freenix.fr 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
llvm-2.3_2
llvm-gcc4-2.3
rubinius from git repository.
>Description:
Rubinius tries to create some shared libs during its build process.
The build fails with the following error:
llvm-gcc -shared 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/.libs/closures.o
src/x86/.libs/ffi64.o src/x86/.libs/unix64.o src/x86/.libs/ffi.o
src/x86/.libs/sysv.o -Wl,-soname -Wl,libffi.so.5 -o .libs/libffi.so.5
/usr/bin/ld:
/local/local/bin/../lib/llvm-gcc-2.3/gcc/x86_64-portbld-freebsd7.0/4.2.1/crtbeginS.o:
relocation R_X86_64_32S can not be used when making a shared object;
recompile with -fPIC
/local/local/bin/../lib/llvm-gcc-2.3/gcc/x86_64-portbld-freebsd7.0/4.2.1/crtbeginS.o:
could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[4]: *** [libffi.la] Error 1
gmake[4]: Leaving directory
`/data/home/staff/roberto/Build/GIT/rubinius/shotgun/external_libs/libffi'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/data/home/staff/roberto/Build/GIT/rubinius/shotgun/external_libs/libffi'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/data/home/staff/roberto/Build/GIT/rubinius/shotgun/external_libs/libffi'
gmake[1]: *** [external_libs/libffi/.libs/libffi.a] Error 2
gmake[1]: Leaving directory
`/data/home/staff/roberto/Build/GIT/rubinius/shotgun'
>How-To-Repeat:
Get rubinius (http://rubinius.lighthouseapp.com/projects/5089/installation)
and use
CC=llvm-gcc rake build
>Fix:
My guess would be that we need a crtbeginS.so or that crtbeginS.o is not
correctly generated.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list