Opened 14 years ago

Closed 14 years ago

#27466 closed defect (worksforme)

can't build latest OpenJDK 6

Reported by: henri.gomez@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: openjdk6

Description

I removed my local port after ticket #20956 was resolved and tried to build openjdk6 from macports depot.

https://trac.macports.org/ticket/20956#comment:69

I got the following error :

:info:build Rebuilding /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-amd64/corba/lib/amd64/libioser12.so because of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-amd64/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/obj64/.files_compiled mapfile-vers:info:build /usr/bin/gcc  -O2    -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN   -Damd64 -DARCH='"amd64"' -D_ALLBSD_SOURCE -DRELEASE='"1.6.0"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-amd64/corba/tmp/sun/c
om.sun.corba.se.internal.io/ioser12/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../.
./src/share/javavm/include -I../../../../src/solaris/javavm/include -ICClassHeaders -I/opt/local/share/java/openjdk6_bootstrap/include -I/op
t/local/share/java/openjdk6_bootstrap/include/darwin -I../../../../src/share/native/common -I../../../../src/solaris/native/common -I../../.
./../src/share/native/com/sun/corba/se/internal/io -I../../../../src/solaris/native/com/sun/corba/se/internal/io     -L/opt/local/var/macpor
ts/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-amd64/corba/lib/amd64   -dynamiclib -
o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-amd64/corba/li
b/amd64/libioser12.so    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/b
uild/bsd-amd64/corba/tmp/sun/com.sun.corba.se.internal.io/ioser12/obj64/ioser.o   -L/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64/server -ljvm  -L/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64 -ljava -L/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64/server
 -ljvm:info:build ld: warning: directory '/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64/server' following -L not found
:info:build ld: warning: directory '/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64' following -L not found
:info:build ld: warning: directory '/opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64/server' following -L not found
:info:build ld: library not found for -ljvm
:info:build collect2: ld returned 1 exit status
:info:build make[4]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/
build/bsd-amd64/corba/lib/amd64/libioser12.so] Error 1
:info:build make[3]: *** [build] Error 1
:info:build make[2]: *** [build] Error 1
:info:build make[1]: *** [build] Error 1
:info:build make: *** [corba-build] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./" && /usr/bin/make  ARCH_DATA_MODEL="64" ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap" ALT_JDK_IMPORT_PATH="/opt/local/share/java/openjdk6_bootstrap" ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" ALT_DROPS_DIR="/opt/local/var/macports/distfiles/openjdk6" ANT_HOME="/opt/local/share/java/apache-ant" ALT_FREETYPE_HEADERS_PATH="/opt/local/include" ALT_FREETYPE_LIB_PATH="/opt/local/lib" ALT_CUPS_HEADERS_PATH="/usr/include" ALT_MOTIF_DIR="/opt/local" ALT_X11_PATH="/opt/local" ALT_DEVTOOLS_PATH=/usr ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts NO_DOCS=true LANG="C" BUILD_NUMBER="b20" MILESTONE=fcs HOTSPOT_BUILD_JOBS="2"  " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"

Change History (6)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to landonf@…
Port: openjdk6 added

comment:2 Changed 14 years ago by henri.gomez@…

More on this.

I rebuild OpenJDK 6 using a local MacPorts with various patches found on #20956 thread and it works.

   8 -rw-r--r--@ 1 henri  staff     600 18 mai  2009 patch-jdk_src_solaris_native_common_gdefs__md.h
   8 -rw-r--r--@ 1 henri  staff     712 18 mai  2009 patch-jdk_src_solaris_javavm_include_typedefs__md.h
   8 -rw-r--r--@ 1 henri  staff     508 18 mai  2009 patch-jdk_src_share_java.c
  40 -rw-r--r--@ 1 henri  staff   19395 15 aoû 07:23 patch-nio-kqueue
1088 -rw-r--r--@ 1 henri  staff  556132 27 oct 22:19 patch-set
   8 -rw-r--r--@ 1 henri  staff     498 27 oct 22:32 patch-null_word_intptr_t
   8 -rw-r--r--@ 1 henri  staff     384 27 oct 22:33 patch-10.4-ucontext
   8 -rw-r--r--@ 1 henri  staff    1300 27 oct 22:34 patch-disable_test_gamma
   8 -rw-r--r--@ 1 henri  staff    1324 29 oct 19:01 patch-10.6-ucontext
   8 -rw-r--r--@ 1 henri  staff     401 29 oct 22:19 patch-solaris-timezone-md-return-typo
   8 -rw-r--r--@ 1 henri  staff    2544 31 oct 16:53 patch-swing-beans-failed-by-bootjdk
   8 -rw-r--r--@ 1 henri  staff     817  2 nov 21:12 patch-dock-args
   8 -rw-r--r--@ 1 henri  staff     600  4 nov 12:53 patch-ucontext-vm.make
   8 -rw-r--r--@ 1 henri  staff    2597  4 nov 14:22 patch-compile-W-format
  24 -rw-r--r--@ 1 henri  staff    8757  4 nov 15:00 patch-darwin-arch
   8 -rw-r--r--@ 1 henri  staff    3007 18 nov 19:16 patch-cross-compile
   8 -rw-r--r--@ 1 henri  staff    3883 18 nov 19:52 sun_xawt_icons_Makefile

I notice on my localport, a local openjdk6_bootstrap.

Could it be related ?

comment:3 Changed 14 years ago by landonf (Landon Fuller)

What did you change to get the port to build?

comment:4 Changed 14 years ago by henri.gomez@…

More on this .

I could build openjdk6 on a machine in 64bits mode (10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_X86_64 x86_64) but it still fail on a 32 bits mode machine (10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386)

Where could I get the portfiles, so I could try to figure what's wrong ?

Note there is no /opt/local/share/java/openjdk6_bootstrap/jre/lib/amd64 on openjdk6-bootstrap, only /opt/local/share/java/openjdk6_bootstrap/jre/lib/i386

comment:5 Changed 14 years ago by henri.gomez@…

I cleanup all my macports environment on my 32bits machine and build worked.

You could close this ticket, sorry for the noise ;(

comment:6 Changed 14 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.