icedtea7 ppc32 build error

Andrew Hughes gnu.andrew at redhat.com
Wed Jun 11 17:25:27 UTC 2014


----- Original Message -----
> Andrew Hughes <gnu.andrew at redhat.com> wrote on 2014/06/11 18:13:09:
> > 
> > 
> > 
> > ----- Original Message -----
> > > Andrew Hughes <gnu.andrew at redhat.com> wrote on 2014/06/11 17:45:09:
> > > > 
> > > > ----- Original Message -----
> > > > > Andrew, I just tried to post the include mail to the list but it
> got
> > > > > stuck.
> > > > > You seem to care about ppc32 så I sent a copy to you too.
> > > > > Any ideas?
> > > > > 
> > > > > Joakim Tjernlund/Transmode wrote on 2014/06/11 16:23:51:
> > > > > 
> > > > > > From: Joakim Tjernlund/Transmode
> > > > > > To: distro-pkg-dev at openjdk.java.net,
> > > > > > Date: 2014/06/11 16:23
> > > > > > Subject: icedtea7 ppc32 build error
> > > > > > 
> > > > > > Building latetest icedtea7(
> http://icedtea.classpath.org/hg/icedtea7/
> > > ) on
> > > > > ppc32 fails with:
> > > > > > INFO: ZIP_DEBUGINFO_FILES=1
> > > > > > INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
> > > > > > INFO: /usr/bin/objcopy cmd found so will create .debuginfo
> files.
> > > > > > INFO: STRIP_POLICY=no_strip
> > > > > > INFO: ZIP_DEBUGINFO_FILES=1
> > > > > > gmake[7]: *** No rule to make target
> > > > > `/root/icedtea7/openjdk-boot/hotspot/src/cpu/ppc/vm/ppc_32.ad',
> needed
> > > by
> > > > > `../generated/adfiles/linux_ppc_32.ad'.
> > > > > > gmake[7]: *** No rule to make target
> > > > > 
> > > 
> `/root/icedtea7/openjdk-boot/hotspot/src/os_cpu/linux_ppc/vm/linux_ppc_32.ad',
> > > > > needed by `../generated/adfiles/linux_ppc_32.ad'.
> > > > > > gmake[7]: Target `all' not remade because of errors.
> > > > > > gmake[6]: *** [ad_stuff] Error 2
> > > > > > 
> > > > > > Here is my configre cmd:
> > > > > > ./configure --disable-jar-compression --without-rhino
> > > > > --disable-system-kerberos --with-jdk-home=/usr/lib/icedtea7
> > > --disable-zero
> > > > > --disable-cacao --disable-arm32-jit  --disable-docs
> --disable-tests
> > > > > 
> > > > 
> > > > It's looking for a native PPC32 port because you disabled Zero.
> There is
> > > > no such thing :)
> > > 
> > > But there is, see
> > > 
> http://blog.fuseyism.com/index.php/2014/01/23/ppc-port-available-in-icedtea-2-x-head/
> 
> > > 
> > 
> > Yes, I wrote that... It's POWER5+ PPC64 only, I'm afraid.
> 
> ehh, why use the term ppc on a ppc64 system? ppc is the established term
> for ppc32 so
> this is very confusing.

It's the term used by the project developing the port: http://openjdk.java.net/projects/ppc-aix-port/

Also, I have a feeling I wasn't aware it didn't support PPC32 myself back then.
>From a personal perspective, I'm a little disappointed as it doesn't help on
either my PPC32 or PPC64 boxes (both old Macs).

The impression I get is that PPC32 isn't well supported at all any more.
Fedora is in a similar situation where they only support PPC64 POWER5+.

> 
> Is there any effort to support ppc32 too? I guessing it cannot be too much
> work
> to do that as ppc64 is already working?
> 

Not as far as I know, but that's a discussion that should take place on
the PPC/AIX port mailing list (see link above). From an IcedTea perspective,
we're just providing packaging.

> Any idea if one can cross-compile icedtea from ppc32/amd64 to ppc64?

I've managed to compile x86 on x86_64, but there were some gotchas. It's
supposed to be easier on OpenJDK 8 and later, but I haven't tried. It's
currently something I may look at more for 2.6.0.

> 
> > 
> > > Also, build accept ppc and fails far into the build.
> > 
> > Because you explicitly disabled Zero. It's doing exactly what you told
> it to do.
> 
> hmm, yes but configure should bail/error out much earlier when you
> ask it build something it cannot. Now one gets the impression that there
> is
> just a build failure that needs to be fixed.
> 

True. I'll see if something can be added, but it needs to only bail out
if the user isn't building Zero OR CACAO or JamVM. In general, we tend
to avoid such things, because, if the user is explicitly overriding the
defaults, we assume it's because they know what they're doing... ;)
Moreover, it would become an impediment if someone did develop a PPC32
port.

Note that the build failure takes the form it does because there is
a proprietary PPC32 port maintained by Oracle and changes in the
OpenJDK build to support it. The same is true of ARM32. If it was a
architecture completely unknown to the build system, I expect it would
fail earlier.

> > 
> > > 
> > > > 
> > > > Remove --disable-zero and it should build fine. IcedTea generally
> does
> > > the
> > > > right thing for each architecture, with the exception of enabling
> CACAO
> > > or
> > > > JamVM by default. These are likely to provide better performance
> than
> > > Zero,
> > > > but have not been known to pass the TCK. Depending on your needs,
> you
> > > may
> > > > find CACAO the best fit for PPC32.
> > > 
> > > Got a ppc CACAO but I want some better performance :)
> > > 
> > > > --
> > > > Andrew :)
> > > > 
> > > > Free Java Software Engineer
> > > > Red Hat, Inc. (http://www.redhat.com)
> > > > 
> > > > PGP Key: 248BDC07 (https://keys.indymedia.org/)
> > > > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
> > > > 
> > > 
> > > 
> > 
> > --
> > Andrew :)
> > 
> > Free Java Software Engineer
> > Red Hat, Inc. (http://www.redhat.com)
> > 
> > PGP Key: 248BDC07 (https://keys.indymedia.org/)
> > Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
> > 
> 
> 

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07



More information about the distro-pkg-dev mailing list