[Slackbuilds-users] openjdk8 compile (either manually or via sbotools) failing at openjdk7

Habs gen-bch at useyouresp.org.uk
Tue Apr 5 07:31:30 UTC 2022


Hello folks

Perhaps I should have mentioned in my OP, it is a clean Slackware 15 64bit 
machine, just freshly installed and fully updated on April 3rd, before 
starting the openjdk8 build (ie. installing gcc5, apache-ant openjdk7 and 
lastly openjdk8).  It baulks at openjdk7 with errors as detailed in the 
OP.

The build was tried manually  and using sbotools. Same result.

Regards
Habs



On Tue, 5 Apr 2022, Lenard Spencer wrote:

> I have submitted  OpenJDK8.tar.gz to SBo.  I am also attaching a patch here
> for Strahil's openjdk8 script.
> As for openjdk(6,7), my scripts share a common problem when building on
> 32-bit.  They both fail to link with gcc5 libstdc++.so.6, insisting instead
> on trying to link with /usr/lib/libstdc++.so.6, which belongs to gcc11.
> Building on 64-bit doesn't show this problem.
>
>
> On Mon, Apr 4, 2022 at 10:39 AM Matteo Bernardini <
> matteo.bernardini at gmail.com> wrote:
>
>> Il giorno lun 4 apr 2022 alle ore 16:29 Lenard Spencer <
>> lenardrspencer at gmail.com> ha scritto:
>>
>>> openjdk8 now also requires gcc5, and will build with zulu-openjdk7 with a
>>> minor script edit (BOOT_JAVA to point to zulu-openjdk7).  If the maintainer
>>> approves I can send the patch.
>>>
>>> I also have an SBo script that builds OpenJDK8 without using icedtea,
>>> using zulu-openjdk7 (a repackaged binary).  If there is interest I can
>>> submit it.
>>>
>>>
>>> On Mon, Apr 4, 2022, 09:10 Habs <gen-bch at useyouresp.org.uk> wrote:
>>>
>>>> Hello everyone, good day
>>>>
>>>> Slackware 15, clean, fully updated
>>>>
>>>> The build either manually or via sbotools fails at the same place at the
>>>> openjdk7 part.
>>>>
>>>> (part of the buildlog is below up until it bails out).
>>>>
>>>> Is it something I'm doing or something in the slackbuild and associate
>>>> files and is there a quick 'fix' to try please ?
>>>>
>>>> Regards
>>>> Habs
>>>>
>>>>
>>>>
>>>> /tmp/SBo/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar cf
>>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>>>>
>>>> -C
>>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
>>>>
>>>> .
>>>> /tmp/SBo/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar uf
>>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>>>>
>>>> -C
>>>> /tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes
>>>> META-INF/services/com.sun.jdi.connect.Connector
>>>> java.util.zip.ZipException: invalid entry CRC (expected 0x3943b2a7 but
>>>> got
>>>> 0xc7a06d31)
>>>>          at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:413)
>>>>          at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
>>>>          at java.io.FilterInputStream.read(FilterInputStream.java:107)
>>>>          at sun.tools.jar.Main.copy(Main.java:822)
>>>>          at sun.tools.jar.Main.update(Main.java:584)
>>>>          at sun.tools.jar.Main.run(Main.java:224)
>>>>          at sun.tools.jar.Main.main(Main.java:1231)
>>>> gmake[8]: ***
>>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:86:
>>>>
>>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar]
>>>>
>>>> Error 1
>>>> gmake[8]: Leaving directory
>>>>
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>>> gmake[7]: ***
>>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:64:
>>>>
>>>> all] Error 2
>>>> gmake[7]: Leaving directory
>>>>
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>>> gmake[6]: ***
>>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/top.make:103:
>>>>
>>>> sa_stuff] Error 2
>>>> gmake[6]: Leaving directory
>>>>
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>>> gmake[5]: ***
>>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/Makefile:323:
>>>>
>>>> product] Error 2
>>>> gmake[5]: Leaving directory
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir'
>>>> gmake[4]: *** [Makefile:203: generic_build2] Error 2
>>>> gmake[4]: Leaving directory
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make'
>>>> gmake[3]: *** [Makefile:158: product] Error 2
>>>> gmake[3]: Leaving directory
>>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make'
>>>> gmake[2]: *** [make/hotspot-rules.gmk:128: hotspot-build] Error 2
>>>> gmake[2]: Leaving directory '/tmp/SBo/openjdk7/icedtea-build/openjdk'
>>>> gmake[1]: *** [Makefile:251: build_product_image] Error 2
>>>> gmake[1]: Leaving directory '/tmp/SBo/openjdk7/icedtea-build/openjdk'
>>>> make: *** [Makefile:2357: stamps/icedtea.stamp] Error 2
>>>>
>>>
>> Hi Lenard,
>>
>> yes, and please have a look at openjdk7 too because here, testing the
>> build locally, I got the same error as Habs:
>>
>> cp
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/resources/*.png
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/sun/jvm/hotspot/ui/resources/
>> cp -r
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes/images/*
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar cf
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>> -C
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
>> .
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar uf
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>> -C
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes
>> META-INF/services/com.sun.jdi.connect.Connector
>> java.util.zip.ZipException: invalid entry CRC (expected 0x3943b2a7 but got
>> 0xc7a06d31)
>>         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:413)
>>         at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
>>         at java.io.FilterInputStream.read(FilterInputStream.java:107)
>>         at sun.tools.jar.Main.copy(Main.java:822)
>>         at sun.tools.jar.Main.update(Main.java:584)
>>         at sun.tools.jar.Main.run(Main.java:224)
>>         at sun.tools.jar.Main.main(Main.java:1231)
>> gmake[8]: ***
>> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:86:
>> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar]
>> Error 1
>> gmake[8]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>> gmake[7]: ***
>> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:64:
>> all] Error 2
>> gmake[7]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>> gmake[6]: ***
>> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/top.make:103:
>> sa_stuff] Error 2
>> gmake[6]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>> gmake[5]: ***
>> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/Makefile:323:
>> product] Error 2
>> gmake[5]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir'
>> gmake[4]: *** [Makefile:203: generic_build2] Error 2
>> gmake[4]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make'
>> gmake[3]: *** [Makefile:158: product] Error 2
>> gmake[3]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make'
>> gmake[2]: *** [make/hotspot-rules.gmk:128: hotspot-build] Error 2
>> gmake[2]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk'
>> gmake[1]: *** [Makefile:251: build_product_image] Error 2
>> gmake[1]: Leaving directory
>> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk'
>> make: *** [Makefile:2357: stamps/icedtea.stamp] Error 2
>>
>> Matteo
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
>>
>

--- Sent using Alpine/Pine, probably the best MUA ---

My Tox Messaging Id:
9F10AC64260ADEBAEA017ACB71B7CD2E962596FC4293025C0F79D77FFEB4CE5C7B0BED41D925
Get a client here: https://tox.chat/clients.html



More information about the SlackBuilds-users mailing list