[yocto] meta-java compilation failure

Ashish Dalela ashish.dalela at gmail.com
Sat Feb 15 04:03:44 PST 2014


Thanks for your help. I tried that now I'm seeing another issue during
cacao configure:

checking where jni_md.h is installed... /usr/local/classpath/include
checking /usr/local/classpath/include/jni_md.h usability... no
checking /usr/local/classpath/include/jni_md.h presence... no
checking for /usr/local/classpath/include/jni_md.h... no
configure: error: cannot find jni_md.h
Configure failed. The contents of all config.log files follows to aid
debugging

In the cacao .bb file, I see the  --with-jni_md_h option, but it doesn't
show up in the configure that is being done.

EXTRA_OECONF_class-native = "\
    --enable-debug \
    --with-vm-zip=${datadir}/cacao/vm.zip \
    --disable-libjvm \
    \
    --with-classpath-libdir=${libdir_jni}:${libdir} \
    --with-classpath-includedir=${includedir}/classpath \
    --with-classpath-classes=${datadir}/classpath/glibj.zip \
    \
    --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
    --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
    --with-jni_md_h=${includedir}/classpath \
    --with-jni_h=${includedir}/classpath \
    --disable-test-dependency-checks \
"

/scratch/yocto/build/tmp/work/i586-poky-linux/cacao/1.6.1-r0/cacao-1.6.1/configure
--build=x86_64-linux --host=i586-poky-linux --target=i586-poky-linux
--prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib/cacao --datadir=/usr/share --sysconfdir=/etc
--sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --oldincludedir=/usr/include
--infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/scratch/akda/iotg-yocto/build/tmp/sysroots/qemux86







On Thu, Feb 13, 2014 at 8:47 PM, Khem Raj <raj.khem at gmail.com> wrote:

>
> On Feb 12, 2014, at 11:35 PM, Ashish Dalela <ashish.dalela at gmail.com>
> wrote:
>
> I see these in my tree:
>
> build/tmp/sysroots/x86_64-linux/usr/share/java/gnumail-1.1.2.jar
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/source/javax/mail
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers.in
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map.in
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/classes/javax/mail
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.charset.map
>
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.default.address.map
>
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.default.providers
>
> ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.charset.map
>
> Since I'm building java, I should not have to import an external JAR right?
>
>
> Its due to weird race condition.
>
> bitbake -cclean log4j-native gnumail-native
>
> and then bitbake log4j-native see if that works
>
>
> Thanks
> -Ashish
>
>
>
> On Thu, Feb 13, 2014 at 12:59 PM, Gaurang Shastri <gmshastri at gmail.com>wrote:
>
>> Hi,
>>
>> The main error is
>>  DEBUG: Executing shell function do_compile
>> | ----------
>> | 1. WARNING in src/main/java/org/apache/log4j/spi/NOPLogger.java (at
>> line 59)
>> |       void closeNestedAppenders() {
>> |            ^^^^^^^^^^^^^^^^^^^^^^
>> | The method NOPLogger.closeNestedAppenders() does not override the
>> inherited method from Category since it is private to a different package
>> | ----------
>> | ----------
>> | 2. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>> line 1)
>> |       /*
>> |       ^
>> | The type javax.mail.Transport cannot be resolved. It is indirectly
>> referenced from required .class files
>> | ----------
>> | 3. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>> line 39)
>> |       import javax.mail.Transport;
>> |              ^^^^^^^^^^^^^^^^^^^^
>> | The import javax.mail.Transport cannot be resolved
>> | ----------
>> | 4. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>> line 416)
>> |       Transport.send(msg);
>> |       ^^^^^^^^^
>> | Transport cannot be resolved
>>
>> Do your java contain mail.jar ??
>>
>> //Gaurang
>>
>>
>>
>> On Thu, Feb 13, 2014 at 6:46 AM, Ashish Dalela <ashish.dalela at gmail.com>wrote:
>>
>>>
>>> Hi
>>>
>>> I'm facing the below compilation failure while doing "bitbake
>>> openjdk-7-jre". Any suggestions on how to fix this?
>>>
>>> Thanks!
>>>
>>> Log data follows:
>>> | DEBUG: Executing shell function do_compile
>>> | ----------
>>> | 1. WARNING in src/main/java/org/apache/log4j/spi/NOPLogger.java (at
>>> line 59)
>>> |       void closeNestedAppenders() {
>>> |            ^^^^^^^^^^^^^^^^^^^^^^
>>> | The method NOPLogger.closeNestedAppenders() does not override the
>>> inherited method from Category since it is private to a different package
>>> | ----------
>>> | ----------
>>> | 2. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>>> line 1)
>>> |       /*
>>> |       ^
>>> | The type javax.mail.Transport cannot be resolved. It is indirectly
>>> referenced from required .class files
>>> | ----------
>>> | 3. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>>> line 39)
>>> |       import javax.mail.Transport;
>>> |              ^^^^^^^^^^^^^^^^^^^^
>>> | The import javax.mail.Transport cannot be resolved
>>> | ----------
>>> | 4. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at
>>> line 416)
>>> |       Transport.send(msg);
>>> |       ^^^^^^^^^
>>> | Transport cannot be resolved
>>> | ----------
>>> | ----------
>>> | 5. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at
>>> line 38)
>>> |       public class LogFactor5InputDialog extends LogFactor5Dialog {
>>> |                    ^^^^^^^^^^^^^^^^^^^^^
>>> | The serializable class LogFactor5InputDialog does not declare a static
>>> final serialVersionUID field of type long
>>> | ----------
>>> | 6. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at
>>> line 88)
>>> |       hide();
>>> |       ^^^^^^
>>> | The method hide() from the type Dialog is deprecated
>>> | ----------
>>> | 7. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at
>>> line 96)
>>> |       hide();
>>> |       ^^^^^^
>>> | The method hide() from the type Dialog is deprecated
>>> | ----------
>>> | 8. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at
>>> line 103)
>>> |       hide();
>>> |       ^^^^^^
>>> | The method hide() from the type Dialog is deprecated
>>> | ----------
>>> | ----------
>>> | 9. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 826)
>>> |       JMenuItem menuItem = result;
>>> |                 ^^^^^^^^
>>> | The local variable menuItem is never read
>>> | ----------
>>> | 10. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 945)
>>> |       JMenuItem exitMI;
>>> |                 ^^^^^^
>>> | The local variable exitMI is never read
>>> | ----------
>>> | 11. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1097)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | 12. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1277)
>>> |       fonts = tk.getFontList();
>>> |                  ^^^^^^^^^^^^^
>>> | The method getFontList() from the type Toolkit is deprecated
>>> | ----------
>>> | 13. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1459)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | 14. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1506)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | 15. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1569)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | 16. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line
>>> 1586)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | ----------
>>> | 17. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/FilteredLogTableModel.java (at
>>> line 39)
>>> |       public class FilteredLogTableModel
>>> |                    ^^^^^^^^^^^^^^^^^^^^^
>>> | The serializable class FilteredLogTableModel does not declare a static
>>> final serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 18. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5LoadingDialog.java (at
>>> line 35)
>>> |       public class LogFactor5LoadingDialog extends LogFactor5Dialog {
>>> |                    ^^^^^^^^^^^^^^^^^^^^^^^
>>> | The serializable class LogFactor5LoadingDialog does not declare a
>>> static final serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 19. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5Dialog.java (at line 42)
>>> |       public abstract class LogFactor5Dialog extends JDialog {
>>> |                             ^^^^^^^^^^^^^^^^
>>> | The serializable class LogFactor5Dialog does not declare a static
>>> final serialVersionUID field of type long
>>> | ----------
>>> | 20. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5Dialog.java (at line 69)
>>> |       super.show();
>>> |             ^^^^^^
>>> | The method show() from the type Dialog is deprecated
>>> | ----------
>>> | ----------
>>> | 21. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5ErrorDialog.java (at
>>> line 38)
>>> |       public class LogFactor5ErrorDialog extends LogFactor5Dialog {
>>> |                    ^^^^^^^^^^^^^^^^^^^^^
>>> | The serializable class LogFactor5ErrorDialog does not declare a static
>>> final serialVersionUID field of type long
>>> | ----------
>>> | 22. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5ErrorDialog.java (at
>>> line 60)
>>> |       hide();
>>> |       ^^^^^^
>>> | The method hide() from the type Dialog is deprecated
>>> | ----------
>>> | ----------
>>> | 23. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmediateEditor.java
>>> (at line 93)
>>> |       CategoryNode node = (CategoryNode) path.getLastPathComponent();
>>> |                    ^^^^
>>> | The local variable node is never read
>>> | ----------
>>> | 24. WARNING in
>>> src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmediateEditor.java
>>> (at line 94)
>>> |       boolean rv = false;
>>> |               ^^
>>> | The local variable rv is never read
>>> | ----------
>>> | ----------
>>> | 25. WARNING in
>>> src/main/java/org/apache/log4j/lf5/LogLevelFormatException.java (at line 30)
>>> |       public class LogLevelFormatException extends Exception {
>>> |                    ^^^^^^^^^^^^^^^^^^^^^^^
>>> | The serializable class LogLevelFormatException does not declare a
>>> static final serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 26. WARNING in
>>> src/main/java/org/apache/log4j/lf5/util/LogFileParser.java (at line 162)
>>> |       LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
>>> |                             ^^^^^
>>> | The local variable error is never read
>>> | ----------
>>> | 27. WARNING in
>>> src/main/java/org/apache/log4j/lf5/util/LogFileParser.java (at line 171)
>>>  |       _loadDialog.hide();
>>> |                   ^^^^^^
>>> | The method hide() from the type Dialog is deprecated
>>> | ----------
>>> | ----------
>>> | 28. WARNING in
>>> src/main/java/org/apache/log4j/lf5/util/AdapterLogRecord.java (at line 33)
>>> |       public class AdapterLogRecord extends LogRecord {
>>> |                    ^^^^^^^^^^^^^^^^
>>> | The serializable class AdapterLogRecord does not declare a static
>>> final serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 29. WARNING in src/main/java/org/apache/log4j/lf5/LogLevel.java (at
>>> line 42)
>>> |       public class LogLevel implements java.io.Serializable {
>>> |                    ^^^^^^^^
>>> | The serializable class LogLevel does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 30. WARNING in src/main/java/org/apache/log4j/lf5/LogRecord.java (at
>>> line 33)
>>> |       public abstract class LogRecord implements java.io.Serializable {
>>> |                             ^^^^^^^^^
>>> | The serializable class LogRecord does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 31. WARNING in src/main/java/org/apache/log4j/lf5/Log4JLogRecord.java
>>> (at line 32)
>>> |       public class Log4JLogRecord extends LogRecord {
>>> |                    ^^^^^^^^^^^^^^
>>> | The serializable class Log4JLogRecord does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 32. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/DetailPanel.java (at line 37)
>>> |       class DetailPanel
>>> |             ^^^^^^^^^^^
>>> | The serializable class DetailPanel does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | 33. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/DetailPanel.java (at line 42)
>>> |       private static final Logger LOG =
>>> |                                   ^^^
>>> | The field DetailPanel.LOG is never read locally
>>> | ----------
>>> | ----------
>>> | 34. WARNING in src/main/java/org/apache/log4j/chainsaw/Main.java (at
>>> line 44)
>>> |       public class Main
>>> |                    ^^^^
>>> | The serializable class Main does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 35. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/LoadXMLAction.java (at line 40)
>>> |       class LoadXMLAction
>>> |             ^^^^^^^^^^^^^
>>> | The serializable class LoadXMLAction does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 36. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 37)
>>> |       class MyTableModel
>>> |             ^^^^^^^^^^^^
>>> | The serializable class MyTableModel does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | 37. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 142)
>>> |       private Priority mPriorityFilter = Priority.DEBUG;
>>> |                                                   ^^^^^
>>> | The field Priority.DEBUG is deprecated
>>> | ----------
>>> | ----------
>>> | 38. WARNING in src/main/java/org/apache/log4j/chainsaw/ExitAction.java
>>> (at line 29)
>>> |       class ExitAction
>>> |             ^^^^^^^^^^
>>> | The serializable class ExitAction does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | ----------
>>> | 39. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/ControlPanel.java (at line 40)
>>> |       class ControlPanel extends JPanel {
>>> |             ^^^^^^^^^^^^
>>> | The serializable class ControlPanel does not declare a static final
>>> serialVersionUID field of type long
>>> | ----------
>>> | 40. WARNING in
>>> src/main/java/org/apache/log4j/chainsaw/ControlPanel.java (at line 42)
>>> |       private static final Logger LOG =
>>> |                                   ^^^
>>> | The field ControlPanel.LOG is never read locally
>>> | ----------
>>>
>>>
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140215/e34fbb86/attachment.html>


More information about the yocto mailing list