Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2014 03:28:53 GMT
From:      Jonathan Chen <jonc@chen.org.nz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/188904: java/eclipse-devel fails to build
Message-ID:  <201404230328.s3N3SrOZ004671@cgiserv.freebsd.org>
Resent-Message-ID: <201404230330.s3N3U2vl054922@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188904
>Category:       ports
>Synopsis:       java/eclipse-devel fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 23 03:30:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        FreeBSD 10.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD jonathan.chen 10.0-STABLE FreeBSD 10.0-STABLE #0 r262952: Mon Ma
r 10 09:16:10 NZDT 2014 root@jonathan.chen:/usr/obj/usr/src/sys/TAO amd64
>Description:
On r351891, java/eclipse-devel fails to build with:

[...]
     [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[1]: 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] Building FreeBSD launcher. Defaults: -os freebsd -arch x86_64 -ws gtk
     [exec] gmake[1]: 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[1]: 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[1]: 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[1]: 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] gcc: not found
     [exec] gmake[1]: *** [eclipseMain.o] Error 127

BUILD FAILED
/usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build.xml:612: Warning: Could not find file /usr/ports/java/eclipse-devel/work/eclipse-build-7b07d10488eb9d6e2880eac320b09c16d1ae78e3/build/eclipse-4.2.0-I20120608-1400-src/features/org.eclipse.equinox.executable/library/gtk/eclipse to copy.

Total time: 1 minute 47 seconds
*** Error code 1

Stop.
make: stopped in /usr/ports/java/eclipse-devel
>How-To-Repeat:
cd /usr/ports/java/eclipse-devel && make clean install
>Fix:


Patch attached with submission follows:

diff -ruN /usr/ports/java/eclipse-devel/files/freebsd-support.patch ./files/freebsd-support.patch
--- /usr/ports/java/eclipse-devel/files/freebsd-support.patch	2013-08-19 13:49:16.831657960 +1200
+++ ./files/freebsd-support.patch	2014-04-23 14:43:51.150366018 +1200
@@ -100,7 +100,7 @@
 +endif
 +
 +# Define the object modules to be compiled and flags.
-+CC=gcc
++CC=cc
 +MAIN_OBJS = eclipseMain.o
 +COMMON_OBJS = eclipseConfig.o eclipseCommon.o eclipseGtkCommon.o eclipseGtkInit.o
 +DLL_OBJS	= eclipse.o eclipseGtk.o eclipseUtil.o eclipseJNI.o eclipseMozilla.o eclipseShm.o eclipseNix.o
@@ -326,8 +326,8 @@
 +OPT_FLAGS=-O2 -g -s -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 +
 +core :
-+	gcc $(OPT_FLAGS) -fPIC -c $(JDK_INCLUDE) $(COMMON_INCLUDE) -o $(CORE.O) $(CORE.C)
-+	gcc $(OPT_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(CORE.O) -lc
++	cc $(OPT_FLAGS) -fPIC -c $(JDK_INCLUDE) $(COMMON_INCLUDE) -o $(CORE.O) $(CORE.C)
++	cc $(OPT_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(CORE.O) -lc
 +
 +clean :
 +	rm *.o
@@ -675,15 +675,15 @@
 +
 +compile:
 +	@echo "Building file: $(GNOMEPROXY.O)"
-+	@echo "Invoking: GCC C Compiler"
-+	gcc $(INCLUDE) $(COMPILER_FLAGS) -o $(GNOMEPROXY.O) $(GNOMEPROXY.C)
++	@echo "Invoking: C Compiler"
++	cc $(INCLUDE) $(COMPILER_FLAGS) -o $(GNOMEPROXY.O) $(GNOMEPROXY.C)
 +	@echo "Finished building: $(GNOMEPROXY.O)"
 +	@echo " "
 +
 +link: compile
 +	@echo "Building target: $(LIB_NAME_FULL)"
-+	@echo "Invoking: GCC C Linker"
-+	gcc $(LINKER_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(LIBS) $(GNOMEPROXY.O) -lc
++	@echo "Invoking: C Linker"
++	cc $(LINKER_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(LIBS) $(GNOMEPROXY.O) -lc
 +	@echo "Finished building target: $(LIB_NAME_FULL)"
 +	@echo " "
 +
@@ -7052,9 +7052,9 @@
 +    <property name="header-path" value="${jdk-path}/../include"/>
 +    <property name="header-freebsd-path" value="${header-path}/freebsd" />
 +
-+	<echo message="gcc -o  ${library-file} -shared -I${src-path} -I${header-freebsd-path} -fPIC ${library-file}"/>
++	<echo message="cc -o  ${library-file} -shared -I${src-path} -I${header-freebsd-path} -fPIC ${library-file}"/>
 +
-+    <apply executable="gcc" dest="${eclipse-home}/" parallel="false">
++    <apply executable="cc" dest="${eclipse-home}/" parallel="false">
 +      <arg value="-o"/>
 +      <arg value="${library-file}"/>
 +      <arg value="-shared"/>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404230328.s3N3SrOZ004671>