Date: Tue, 12 Nov 2013 13:48:53 +0100 From: kron <kron24@gmail.com> To: freebsd-eclipse@freebsd.org Subject: eclipse-devel doesn't build on FreeBSD 10 Message-ID: <528223B5.3070807@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi,
java/eclipse-devel fails to build on FreeBSD 10:
...
[exec] cc -shared -fPIC -s -o libswt-webkit-gtk-4233.so swt.o
webkit.o webkit_structs.o webkit_stats.o `pkg-config --libs webkit-1.0`
[exec] cp *.so
/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/plugins/org.eclipse.swt.gtk.freebsd.x86_64
[exec] gmake[2]: Leaving directory
`/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/plugins/org.eclipse.swt.gtk.freebsd.x86_64/library'
[exec] gcc: not found
[exec] Building FreeBSD launcher. Defaults: -os freebsd -arch
x86_64 -ws gtk
[exec] gmake[2]: Entering directory
`/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/features/org.eclipse.equinox.executable/library/gtk'
[exec] rm -f eclipse eclipse_1503.so eclipseMain.o eclipseConfig.o
eclipseCommon.o eclipseGtkCommon.o eclipseGtkInit.o eclipse.o
eclipseGtk.o eclipseUtil.o eclipseJNI.o eclipseMozilla.o eclipseShm.o
eclipseNix.o
[exec] gmake[2]: Leaving directory
`/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/features/org.eclipse.equinox.executable/library/gtk'
[exec] gmake[2]: Entering directory
`/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/features/org.eclipse.equinox.executable/library/gtk'
[exec] gcc -g -s -Wall -fpic -DFREEBSD -DMOZILLA_FIX
-DDEFAULT_OS="\"freebsd\"" -DDEFAULT_OS_ARCH="\"x86_64\""
-DDEFAULT_WS="\"gtk\"" -DDEFAULT_JAVA_EXEC
-DGTK_LIB="\"libgtk-x11-2.0.so.0\"" -DGDK_LIB="\"libgdk-x11-2.0.so.0\""
-DPIXBUF_LIB="\"libgdk_pixbuf-2.0.so.0\""
-DGOBJ_LIB="\"libgobject-2.0.so.0\"" -DX11_LIB="\"libX11.so.6\"" -I.
-I.. -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd
`pkg-config --cflags gtk+-2.0` -c ../eclipseMain.c -o eclipseMain.o
[exec] gmake[2]: Leaving directory
`/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/features/org.eclipse.equinox.executable/library/gtk'
[exec] gmake[2]: *** [eclipseMain.o] Error 127
Trying grep, it seems that gcc is hardcoded in many files
in the port.
With a cheap&dirty workaround:
ln -s /usr/local/bin/gcc49 /usr/local/bin/gcc
the port builds fine but I would like to have a better
solution. Any suggestions or tips?
BR,
Oli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?528223B5.3070807>
