Opened 15 years ago

Closed 11 years ago

#21603 closed defect (wontfix)

openjdk6 build fails on Leopard

Reported by: heapifyman@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: haspatch Cc: heapifyman@…, kiniry@…, iamstuffed@…, ketanpadegaonkar+macports@…, email.macports@…, lisfolks.lists@…, chalin@…, easye, samson959@…, cristiano.fontana@…, ludwig@…
Port: openjdk6

Description (last modified by jmroot (Joshua Root))

port install openjdk6 fails with the following error message:

--->  Computing dependencies for openjdk6
--->  Fetching openjdk6
--->  Verifying checksum(s) for openjdk6
--->  Extracting openjdk6
--->  Applying patches to openjdk6
--->  Configuring openjdk6
--->  Building openjdk6
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./" && /usr/bin/make -j2 all ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap" ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" 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 HOTSPOT_BUILD_JOBS=1 " returned error 2

Command output: 
build-classes-javah:
 [pcompile] Generating 8 resource files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/gensrc
    [javac] Compiling 8 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Compiling 8 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

build-classes-javap:
    [javac] Compiling 19 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

build-classes-apt:
 [pcompile] Generating 3 resource files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/gensrc
    [javac] Compiling 3 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Compiling 106 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/langtools/src/share/classes/com/sun/tools/apt/main/JavaCompiler.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

build-all-classes:

build:
     [copy] Copying 7 files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/bootstrap
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib
      [jar] Building jar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib/classes.jar
      [zip] Building zip: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib/src.zip

BUILD SUCCESSFUL
Total time: 32 seconds

Error: Status 1 encountered during processing.

Attachments (4)

log.txt (48.1 KB) - added by heapifyman@… 15 years ago.
log output of sudo port -v install openjdk6
Portfile.diff (368 bytes) - added by email.macports@… 14 years ago.
Modified Portfile to solve build problem.
patch-set.diff (770 bytes) - added by email.macports@… 14 years ago.
Modified files/patch-set to solve build problem.
openjdk6-b20_1_install.log.gz (48.8 KB) - added by ludwig@… 13 years ago.
failed build log of openjdk6-b20_1 on OS X 10.5.8 (MacBook Pro / Intel Core Duo)

Download all attachments as: .zip

Change History (27)

comment:1 Changed 15 years ago by heapifyman@…

Cc: heapifyman@… added

Cc Me!

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: heapifyman@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to landonf@…

Please use WikiFormatting (and the Preview button).

comment:3 Changed 15 years ago by heapifyman@…

Cc: heapifyman@… added

Cc Me!

comment:4 Changed 15 years ago by heapifyman@…

Below is the part of

sudo port -v install openjdk6

command's log output where the error occurs. Maybe this helps narrowing down the problem. I added the whole log output as attachement.

# Running javac:
Check_ALT_JDK_IMPORT_PATH/bin/javac -J-XX:ThreadStackSize=768 -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -source 1.5 -target 5 -encoding ascii -classpath /opt/local/share/java/openjdk6_bootstrap/lib/tools.jar -sourcepath /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/corba/gensrc:../../../src/solaris/classes:../../../src/share/classes -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/corba/classes @/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/corba/tmp/sun/javax.transaction.xa/.classes.list
/bin/sh: Check_ALT_JDK_IMPORT_PATH/bin/javac: No such file or directory
make[3]: *** [.compile.classlist] Error 127
make[2]: *** [build] Error 1
make[1]: *** [build] Error 1
make: *** [corba-build] Error 2
make: *** Waiting for unfinished jobs....

Changed 15 years ago by heapifyman@…

Attachment: log.txt added

log output of sudo port -v install openjdk6

comment:5 Changed 15 years ago by kiniry@…

Cc: kiniry@… added

Cc Me!

comment:6 Changed 15 years ago by iamstuffed@…

Cc: iamstuffed@… added

Cc Me!

comment:7 Changed 14 years ago by ketanpadegaonkar+macports@…

Cc: ketanpadegaonkar+macports@… added

Cc Me!

comment:8 Changed 14 years ago by email.macports@…

I've run across the same problem and did some digging into the problem. I think I've identified two distinct issues. One in the build and a second in the source code that is being built. I don't really understand the root cause of the build problem, but found a simple tweak that made it work on my system (MacBook Pro 17"; Intel Core Duo; Mac OS X 10.5.8).

After googling ALT_JDK_IMPORT_PATH to try and understand what it is used for, it seemed like it ought to point to the same place as the bootstrap JDK. So, I modified the Portfile to include a build argument of ALT_JDK_IMPORT_PATH="${bootstrapvm}". THe build proceeded father, but failed again with the following error:

make[5]: *** No rule to make target `-j1'.  Stop.
make[4]: *** [sa_stuff] Error 2
make[3]: *** [product] Error 2
make[2]: *** [generic_build2] Error 2
make[1]: *** [product] Error 2 
make: *** [hotspot-build] Error 2
make: *** Waiting for unfinished jobs....

That made me wonder if something about building in parallel might be the problem, so I added the following line to the Portfile to restrict the build to a single job:

use_parallel_build     no

The build again progressed further, but failed again with the following error:

../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function 'makeDefaultConfig':
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:291: warning: format '%x' expects type 'unsigned int *', but argument 3 has type 'VisualID *'
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function 'J2DXErrHandler':
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: 'X_ShmAttach' undeclared (first use in this function)
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: (Each undeclared identifier is reported only once
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: for each function it appears 
make[4]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/tmp/sun/sun.awt.X11/xawt/obj/awt_GraphicsEnv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [library_parallel_compile] Error 2
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [jdk-build] Error 2

After digging around to find where X_ShmAttach was declared, I found it in X11/extensions/shmproto.h. It failed again because of something that it used in shmproto.h that is declared in X11/Xmd.h, but Xmd.h wasn't included in shmproto.h. So, I added that to awt_GraphicsEnv.c as well.

I built again and...SUCCESS!!!

I've attached patch files for Portfile and files/patch-set that address the problems. Hopefully, these are acceptable solutions to the issue and can be incorporated and released.

Changed 14 years ago by email.macports@…

Attachment: Portfile.diff added

Modified Portfile to solve build problem.

Changed 14 years ago by email.macports@…

Attachment: patch-set.diff added

Modified files/patch-set to solve build problem.

comment:9 Changed 14 years ago by email.macports@…

Cc: email.macports@… added

Cc Me!

comment:10 Changed 14 years ago by lisfolks.lists@…

Cc: lisfolks.lists@… added

Cc Me!

comment:11 in reply to:  10 Changed 14 years ago by lisfolks.lists@…

I'm having this same error (and did run selfupdate first) on 21 Feb 2010. - LeAnne

comment:12 Changed 14 years ago by chalin@…

Cc: chalin@… added

Cc Me!

comment:13 Changed 14 years ago by chalin@…

(Also doesn't build under Snow Leopard -- see #24062).

comment:14 in reply to:  8 ; Changed 14 years ago by heapifyman@…

Replying to email.macports@…:

I built again and...SUCCESS!!!

I've attached patch files for Portfile and files/patch-set that address the problems. Hopefully, these are acceptable solutions to the issue and can be incorporated and released.

Applied patches submitted by email.macports@… but still the build fails. See output below:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./" && /usr/bin/make -j2 all ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap" ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" 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 HOTSPOT_BUILD_JOBS=1 " returned error 2
Command output: 
build-classes-javah:
 [pcompile] Generating 8 resource files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/gensrc
    [javac] Compiling 8 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Compiling 8 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

build-classes-javap:
    [javac] Compiling 19 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

build-classes-apt:
 [pcompile] Generating 3 resource files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/gensrc
    [javac] Compiling 3 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Compiling 106 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/build/classes
    [javac] Note: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/langtools/src/share/classes/com/sun/tools/apt/main/JavaCompiler.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

build-all-classes:

build:
     [copy] Copying 7 files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/bootstrap
    [mkdir] Created dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib
      [jar] Building jar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib/classes.jar
      [zip] Building zip: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/langtools/dist/lib/src.zip

BUILD SUCCESSFUL
Total time: 33 seconds

Error: Status 1 encountered during processing.

comment:15 in reply to:  14 Changed 14 years ago by heapifyman@…

Replying to heapifyman@…:

Specifically, I get the following error, when run with -d flag:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./" && /usr/bin/make -j2 all ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap" ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" 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 HOTSPOT_BUILD_JOBS=1 " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./" && /usr/bin/make -j2 all ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap" ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" 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 HOTSPOT_BUILD_JOBS=1 " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for openjdk6): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:16 Changed 14 years ago by easye

Cc: easieste@… added

Cc Me!

comment:17 Changed 14 years ago by samson959@…

Cc: samson959@… added

Cc Me!

comment:18 Changed 14 years ago by cristiano.fontana@…

Cc: cristiano.fontana@… added

Cc Me!

comment:19 Changed 13 years ago by ludwig@…

Cc: ludwig@… added

Cc Me!

comment:20 Changed 13 years ago by jmroot (Joshua Root)

Keywords: haspatch added

The parallel build thing should be long since fixed. Do the AWT includes still need to be patched with the latest version @b20_1?

comment:21 in reply to:  20 ; Changed 13 years ago by ludwig@…

Replying to jmr@…:

The parallel build thing should be long since fixed. Do the AWT includes still need to be patched with the latest version @b20_1?

I gave the openjdk6 build another try this morning; in the b20_1 portfile version it fails somewhere else. :-( The compiler complains about an ambigiuous member function call in interp_masm_x86_32.cpp. I'll attach the logfile of the failed build to this ticket.

This is on a Core Duo MacBook Pro with OS X 10.5.8

Changed 13 years ago by ludwig@…

failed build log of openjdk6-b20_1 on OS X 10.5.8 (MacBook Pro / Intel Core Duo)

comment:22 in reply to:  21 Changed 13 years ago by ludwig@…

The issue I encountered with the portfile version b20_1 is due to OpenJDK Bug 6767106, I guess.

Unfortunately, the patch linked there did not apply cleanly when I added it locally to the portfile and there is no further activity in the OpenJDK ticket. (It's about two years old.)

comment:23 Changed 11 years ago by landonf (Landon Fuller)

Resolution: wontfix
Status: newclosed

openjdk6 is no longer supported and has been removed from the tree.

Note: See TracTickets for help on using tickets.