Opened 12 years ago

Closed 12 years ago

#37205 closed defect (duplicate)

openjdk6: java: Bad CPU type in executable

Reported by: dougmencken@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: pixilla (Bradley Giesbrecht)
Port: openjdk6

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I tried to `port install openjdk6' and got:

--->  Configuring openjdk6
--->  Building openjdk6
Error: org.macports.build for port openjdk6 returned: command execution failed
Please see the log file for port openjdk6 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_openjdk6/openjdk6/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openjdk6 failed

# uname -a
Darwin powermacs-power-mac-g5.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

main.log is attached

Attachments (1)

main.log (400.7 KB) - added by dougmencken@… 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by dougmencken@…

Attachment: main.log added

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

Description: modified (diff)
Owner: changed from macports-tickets@… to landonf@…
Port: openjdk6 added
Summary: can't build openjdk6: command execution failedopenjdk6: java: Bad CPU type in executable

Interesting, the log says:

:info:build /opt/local/share/java/apache-ant/bin/ant: line 332: /opt/local/share/java/openjdk6_bootstrap/jre/bin/java: Bad CPU type in executable
:info:build /opt/local/share/java/apache-ant/bin/ant: line 332: /opt/local/share/java/openjdk6_bootstrap/jre/bin/java: Unknown error: 0
:info:build /opt/local/share/java/apache-ant/bin/ant: line 332: /opt/local/share/java/openjdk6_bootstrap/jre/bin/java: Bad CPU type in executable
:info:build /opt/local/share/java/apache-ant/bin/ant: line 332: /opt/local/share/java/openjdk6_bootstrap/jre/bin/java: Unknown error: 0

But because this was not a clean attempt, could you please clean and try again?

comment:2 in reply to:  1 Changed 12 years ago by dougmencken@…

But because this was not a clean attempt, could you please clean and try again?

The same after port clean --all openjdk6:

sh-3.2# man port
sh-3.2# port clean --all openjdk6
--->  Cleaning openjdk6
sh-3.2# port install openjdk6
--->  Computing dependencies for openjdk6
--->  Fetching archive for openjdk6
--->  Attempting to fetch openjdk6-b20_1.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/openjdk6
--->  Attempting to fetch openjdk6-b20_1.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/openjdk6
--->  Attempting to fetch openjdk6-b20_1.darwin_9.ppc.tbz2 from http://packages.macports.org/openjdk6
--->  Fetching distfiles for openjdk6
--->  Attempting to fetch openjdk-6-src-b20-21_jun_2010.tar.gz from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/openjdk6
--->  Attempting to fetch jdk6-jaxp-b20.zip from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/openjdk6
--->  Attempting to fetch jdk6-jaxws-b20.zip from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/openjdk6
--->  Attempting to fetch jdk6-jaf-b20.zip from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/openjdk6
--->  Verifying checksum(s) for openjdk6
--->  Extracting openjdk6
--->  Applying patches to openjdk6
--->  Configuring openjdk6
--->  Building openjdk6
Error: org.macports.build for port openjdk6 returned: command execution failed
Please see the log file for port openjdk6 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_openjdk6/openjdk6/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openjdk6 failed

And yes,

sh-3.2# pwd
/opt/local/share/java/openjdk6_bootstrap
sh-3.2# file ./jre/bin/java 
./jre/bin/java: Mach-O executable i386

which cannot be executed on my machine.

comment:3 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Cc: pixilla@… added

Cc Me!

comment:4 Changed 12 years ago by pixilla (Bradley Giesbrecht)

The resources at hgomez / obuildfactory may help.

comment:5 Changed 12 years ago by jmroot (Joshua Root)

I'm guessing the bootstrap doesn't contain ppc code?

comment:6 Changed 12 years ago by jmroot (Joshua Root)

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