Description of problem:
The pl package fails to build for secondary arch ARM.
I see the following errors:
../swipl-ld.sh -shared -o libjpl.so src/c/jpl.o \
-ljava -lverify -ljvm
/usr/bin/ld: cannot find -ljava
/usr/bin/ld: cannot find -lverify
/usr/bin/ld: cannot find -ljvm
The reason is that the installed Java path is:
As a workaround, I modified the spec file to set JAVA_HOME and JAVA_LIB similar to sparcv9. This allows the build to complete.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. need to use an ARM builder
2. sample build log available at:
fails to build successfully.
build completes successfully.
This is part of the bootstrap effort for F15 for ARMv7. Some of the packages, including java-1.6.0-openjdk are not yet built in koji.
An ARM specific hack has been committed into F15 (pl-5.10.2-6.fc15) and higher.
Proper solution will be implemented after finding reliable way how to obtain JDK library path and JAVA_HOME directory.
JAVA_HOME can be set to /etc/alternatives/jre, JAVA_LIB can be constructed from System.out.println(System.getProperty("java.library.path")) string.
Unfortunately the java.library.path value is broken in java-1.7.0-openjdk now.
Created attachment 525131 [details]
Tool for getting java paths
This is a tool to get linker path and JRE home directory for current JRE.
The tool has been bundled to pl-5.10.5-4.fc17. Java SIG asked to integration into JDK.
Proper building pl verified on x86_64, i686, ppc, and ppc64. Sparc koji is unresponsive, ARM koji does not contain openjdk-1.6 yet. Feel free to check this release on those architectures.
Please not we cannot allow openjdk-1.7 because of bug #740762.
pl-6.0.2-3.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pl-6.0.2-3.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
pl-6.0.2-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.