All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
@ 2015-05-12 21:01 Mario Domenech Goulart
  2015-05-12 21:01 ` [meta-java][PATCH 2/3] Avoid parse time erros due to dependency on x11, for distros without x11 Mario Domenech Goulart
  2015-05-12 21:01 ` [meta-java][PATCH 3/3] rxtx: drop dependency on fastjar-native; depend on virtual/javac-native Mario Domenech Goulart
  0 siblings, 2 replies; 10+ messages in thread
From: Mario Domenech Goulart @ 2015-05-12 21:01 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Mario Domenech Goulart

The recipes below depended on a hardcoded native compile
(ecj-initial-native).  Since we may use another native compiler to
build them, we set the dependency in virtual/javac-native instead.

* cacao
* classpath-native
* jamvm

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 recipes-core/cacao/cacao_1.6.1.bb               | 2 +-
 recipes-core/classpath/classpath-native_0.99.bb | 2 +-
 recipes-core/jamvm/jamvm.inc                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
index 65aaf93..14ff019 100644
--- a/recipes-core/cacao/cacao_1.6.1.bb
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -4,7 +4,7 @@ LICENSE  = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 SECTION  = "interpreters"
 
-DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-native bdwgc-native"
+DEPENDS_class-native = "zlib-native libtool-native virtual/javac-native fastjar-native classpath-native bdwgc-native"
 PROVIDES_class-native = "virtual/java-native"
 
 DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc"
diff --git a/recipes-core/classpath/classpath-native_0.99.bb b/recipes-core/classpath/classpath-native_0.99.bb
index 02951b9..cf297d9 100644
--- a/recipes-core/classpath/classpath-native_0.99.bb
+++ b/recipes-core/classpath/classpath-native_0.99.bb
@@ -1,7 +1,7 @@
 require classpath-native.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
-DEPENDS += "ecj-initial-native"
+DEPENDS += "virtual/javac-native"
 
 PR = "${INC_PR}.0"
 
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index 5893cbc..bed1c5d 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
 DEPENDS = "zlib classpath virtual/javac-native libffi"
-DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial-native libffi-native"
+DEPENDS_virtclass-native = "zlib-native classpath-native virtual/javac-native libffi-native"
 
 RDEPENDS_${PN} = "classpath"
 RDEPENDS_${PN}_virtclass-native = ""
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [meta-java][PATCH 2/3] Avoid parse time erros due to dependency on x11, for distros without x11
  2015-05-12 21:01 [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler Mario Domenech Goulart
@ 2015-05-12 21:01 ` Mario Domenech Goulart
  2015-05-12 21:01 ` [meta-java][PATCH 3/3] rxtx: drop dependency on fastjar-native; depend on virtual/javac-native Mario Domenech Goulart
  1 sibling, 0 replies; 10+ messages in thread
From: Mario Domenech Goulart @ 2015-05-12 21:01 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Mario Domenech Goulart

BitBake raises some errors when processing recipes that depend on x11
for distros that don't have x11 in DISTRO_FEATURES. To work around
that issue, REQUIRED_DISTRO_FEATURES = "x11" (from
distro_features_check.bbclass) has been set for the following recipes:

* cacao
* classpath
* jamvm
* openjdk-6-release
* openjdk-7-release

That makes BitBake skip those recipes during the cache generation
(they'd still be parsed, but ignored).

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 recipes-core/cacao/cacao_1.6.1.bb       | 4 +++-
 recipes-core/classpath/classpath.inc    | 4 +++-
 recipes-core/jamvm/jamvm.inc            | 4 +++-
 recipes-core/openjdk/openjdk-common.inc | 4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
index 14ff019..d52f339 100644
--- a/recipes-core/cacao/cacao_1.6.1.bb
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -15,7 +15,9 @@ SRC_URI = "http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PV}/cacao-
 SRC_URI[md5sum] = "2c18478404afd1cffdd15ad1e9d85a57"
 SRC_URI[sha256sum] = "eecc8bd1b528a028f43d9d1d0c06b97855bbf1d40e03826d911ebbc0b6971e12"
 
-inherit java autotools-brokensep update-alternatives pkgconfig
+inherit java autotools-brokensep update-alternatives pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 EXTRA_OECONF_class-native = "\
     --enable-debug \
diff --git a/recipes-core/classpath/classpath.inc b/recipes-core/classpath/classpath.inc
index 1bdfd78..0f760fe 100644
--- a/recipes-core/classpath/classpath.inc
+++ b/recipes-core/classpath/classpath.inc
@@ -7,7 +7,9 @@ LICENSE = "Classpath"
 
 PBN = "classpath"
 
-inherit autotools java gettext
+inherit autotools java gettext distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 DEPENDS = "virtual/javac-native fastjar-native zip-native gmp antlr-native gtk+ gconf libxtst file"
 
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index bed1c5d..9d9fef6 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -21,7 +21,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
           "
 
 
-inherit java autotools update-alternatives pkgconfig
+inherit java autotools update-alternatives pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 # This uses 32 bit arm, so force the instruction set to arm, not thumb
 ARM_INSTRUCTION_SET = "arm"
diff --git a/recipes-core/openjdk/openjdk-common.inc b/recipes-core/openjdk/openjdk-common.inc
index 349ce9e..ba9d42e 100644
--- a/recipes-core/openjdk/openjdk-common.inc
+++ b/recipes-core/openjdk/openjdk-common.inc
@@ -17,7 +17,9 @@ DEPENDS_append_libc-uclibc = " virtual/libiconv "
 # because structure sizes and/or alignment may differ.
 DEPENDS_append = " qemu-native "
 
-inherit java autotools gettext qemu pkgconfig
+inherit java autotools gettext qemu pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 # OpenJDK uses slightly different names for certain arches. We need to know
 #	this to create some files which are expected by the build.
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [meta-java][PATCH 3/3] rxtx: drop dependency on fastjar-native; depend on virtual/javac-native
  2015-05-12 21:01 [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler Mario Domenech Goulart
  2015-05-12 21:01 ` [meta-java][PATCH 2/3] Avoid parse time erros due to dependency on x11, for distros without x11 Mario Domenech Goulart
@ 2015-05-12 21:01 ` Mario Domenech Goulart
  1 sibling, 0 replies; 10+ messages in thread
From: Mario Domenech Goulart @ 2015-05-12 21:01 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Mario Domenech Goulart

fastjar-native must be provided by either virtual/javac-native itself
or by a recipe virtual/javac-native depends on.

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 recipes-extended/rxtx/rxtx_2.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/rxtx/rxtx_2.2.0.bb b/recipes-extended/rxtx/rxtx_2.2.0.bb
index b9b3027..564df32 100644
--- a/recipes-extended/rxtx/rxtx_2.2.0.bb
+++ b/recipes-extended/rxtx/rxtx_2.2.0.bb
@@ -1,5 +1,5 @@
 DESCRIPTION = "Full Java CommAPI implementation"
-DEPENDS = "fastjar-native"
+DEPENDS = "virtual/javac-native"
 LICENSE = "RXTXv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=32303a23463f90b12a7d1dafb8deabf4"
 PR = "r2"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-25  6:46       ` Richard Leitner
@ 2015-08-25 23:13         ` Khem Raj
  0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2015-08-25 23:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 6039 bytes --]

Otavio/Henning

Please revert this commit. Its causing more pains than the problem it solves

Thanks
-Khem

> On Aug 24, 2015, at 11:46 PM, Richard Leitner <richard.leitner@skidata.com> wrote:
> 
> 
> On 08/25/2015 08:38 AM, Khem Raj wrote:
>> 
>>> On Aug 20, 2015, at 12:25 AM, Richard Leitner <richard.leitner@skidata.com> wrote:
>>> 
>>> Hi,
>>> 
>>> On 08/19/2015 01:53 PM, Sven Ebenfeld wrote:
>>>> This patch creates a circular dependency for me:
>>>> 
>>>> ERROR: Unbuildable tasks were found.
>>>> These are usually caused by circular dependencies and any circular
>>>> dependency chains found will be printed below. Increase the debug
>>>> level to see a list of unbuildable tasks.
>>>> 
>>> 
>>> Same problem for me!
>>> 
>>> My settings are:
>>> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
>>> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
>>> PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native”
>> 
>> can you change this to
>> 
>> PREFERRED_PROVIDER_virtual/javac-native = "ecj-initial-native"
>> 
>> and retry ?
> 
> Same problem:
> 
> NOTE: Preparing runqueue
> ERROR: Unbuildable tasks were found.
> These are usually caused by circular dependencies and any circular
> dependency chains found will be printed below. Increase the debug level
> to see a list of unbuildable tasks.
> 
> Identifying dependency loops (this may take a short while)...
> 
> ERROR:
> Dependency loop #1 found:
>  Task 674
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
>  Task 675
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
> do_install'])
>  Task 684
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_configure) (dependent Tasks ['gnu-config, do_populate_sysroot',
> 'autoconf, do_populate_sysroot', 'zlib, do_populate_sysroot', 'libffi,
> do_populate_sysroot', 'jamvm, do_patch', 'automake,
> do_populate_sysroot', 'libtool-native, do_populate_sysroot',
> 'classpath-native, do_populate_sysroot', 'ecj-bootstrap-native.bb,
> do_populate_sysroot', 'pkgconfig, do_populate_sysroot'])
>  Task 685
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_compile) (dependent Tasks ['jamvm, do_configure'])
>  Task 681
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_install) (dependent Tasks ['jamvm, do_compile'])
>  Task 682
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
>  Task 677
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_configure) (dependent Tasks ['ecj-bootstrap-native.bb, do_patch',
> 'jamvm, do_populate_sysroot', 'libecj-bootstrap-native,
> do_populate_sysroot'])
>  Task 678
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_compile) (dependent Tasks ['ecj-bootstrap-native.bb, do_configure'])
> 
> 
> 
> Dependency loop #2 found:
>  Task 674
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
>  Task 675
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
> do_install'])
>  Task 691
> (/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
> do_configure) (dependent Tasks ['zip, do_populate_sysroot', 'gnu-config,
> do_populate_sysroot', 'autoconf, do_populate_sysroot',
> 'ecj-bootstrap-native.bb, do_populate_sysroot', 'automake,
> do_populate_sysroot', 'classpath-native, do_patch', 'libtool-native,
> do_populate_sysroot', 'fastjar, do_populate_sysroot',
> 'gettext-minimal-native, do_populate_sysroot'])
>  Task 692
> (/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
> do_compile) (dependent Tasks ['classpath-native, do_configure'])
>  Task 688
> (/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
> do_install) (dependent Tasks ['classpath-native, do_compile'])
>  Task 689
> (/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
> do_populate_sysroot) (dependent Tasks ['classpath-native, do_install'])
>  Task 684
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_configure) (dependent Tasks ['gnu-config, do_populate_sysroot',
> 'autoconf, do_populate_sysroot', 'zlib, do_populate_sysroot', 'libffi,
> do_populate_sysroot', 'jamvm, do_patch', 'automake,
> do_populate_sysroot', 'libtool-native, do_populate_sysroot',
> 'classpath-native, do_populate_sysroot', 'ecj-bootstrap-native.bb,
> do_populate_sysroot', 'pkgconfig, do_populate_sysroot'])
>  Task 685
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_compile) (dependent Tasks ['jamvm, do_configure'])
>  Task 681
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_install) (dependent Tasks ['jamvm, do_compile'])
>  Task 682
> (virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
> do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
>  Task 677
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_configure) (dependent Tasks ['ecj-bootstrap-native.bb, do_patch',
> 'jamvm, do_populate_sysroot', 'libecj-bootstrap-native,
> do_populate_sysroot'])
>  Task 678
> (/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
> do_compile) (dependent Tasks ['ecj-bootstrap-native.bb, do_configure'])
> 
> 
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-25  6:38     ` Khem Raj
@ 2015-08-25  6:46       ` Richard Leitner
  2015-08-25 23:13         ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Leitner @ 2015-08-25  6:46 UTC (permalink / raw)
  To: openembedded-devel


On 08/25/2015 08:38 AM, Khem Raj wrote:
> 
>> On Aug 20, 2015, at 12:25 AM, Richard Leitner <richard.leitner@skidata.com> wrote:
>>
>> Hi,
>>
>> On 08/19/2015 01:53 PM, Sven Ebenfeld wrote:
>>> This patch creates a circular dependency for me:
>>>
>>> ERROR: Unbuildable tasks were found.
>>> These are usually caused by circular dependencies and any circular
>>> dependency chains found will be printed below. Increase the debug
>>> level to see a list of unbuildable tasks.
>>>
>>
>> Same problem for me!
>>
>> My settings are:
>> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
>> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
>> PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native”
> 
> can you change this to
> 
> PREFERRED_PROVIDER_virtual/javac-native = "ecj-initial-native"
> 
> and retry ?

Same problem:

NOTE: Preparing runqueue
ERROR: Unbuildable tasks were found.
These are usually caused by circular dependencies and any circular
dependency chains found will be printed below. Increase the debug level
to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
  Task 674
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
  Task 675
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
do_install'])
  Task 684
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_configure) (dependent Tasks ['gnu-config, do_populate_sysroot',
'autoconf, do_populate_sysroot', 'zlib, do_populate_sysroot', 'libffi,
do_populate_sysroot', 'jamvm, do_patch', 'automake,
do_populate_sysroot', 'libtool-native, do_populate_sysroot',
'classpath-native, do_populate_sysroot', 'ecj-bootstrap-native.bb,
do_populate_sysroot', 'pkgconfig, do_populate_sysroot'])
  Task 685
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_compile) (dependent Tasks ['jamvm, do_configure'])
  Task 681
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_install) (dependent Tasks ['jamvm, do_compile'])
  Task 682
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
  Task 677
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_configure) (dependent Tasks ['ecj-bootstrap-native.bb, do_patch',
'jamvm, do_populate_sysroot', 'libecj-bootstrap-native,
do_populate_sysroot'])
  Task 678
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_compile) (dependent Tasks ['ecj-bootstrap-native.bb, do_configure'])



Dependency loop #2 found:
  Task 674
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
  Task 675
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
do_install'])
  Task 691
(/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_configure) (dependent Tasks ['zip, do_populate_sysroot', 'gnu-config,
do_populate_sysroot', 'autoconf, do_populate_sysroot',
'ecj-bootstrap-native.bb, do_populate_sysroot', 'automake,
do_populate_sysroot', 'classpath-native, do_patch', 'libtool-native,
do_populate_sysroot', 'fastjar, do_populate_sysroot',
'gettext-minimal-native, do_populate_sysroot'])
  Task 692
(/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_compile) (dependent Tasks ['classpath-native, do_configure'])
  Task 688
(/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_install) (dependent Tasks ['classpath-native, do_compile'])
  Task 689
(/opt/yocto/poky/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_populate_sysroot) (dependent Tasks ['classpath-native, do_install'])
  Task 684
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_configure) (dependent Tasks ['gnu-config, do_populate_sysroot',
'autoconf, do_populate_sysroot', 'zlib, do_populate_sysroot', 'libffi,
do_populate_sysroot', 'jamvm, do_patch', 'automake,
do_populate_sysroot', 'libtool-native, do_populate_sysroot',
'classpath-native, do_populate_sysroot', 'ecj-bootstrap-native.bb,
do_populate_sysroot', 'pkgconfig, do_populate_sysroot'])
  Task 685
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_compile) (dependent Tasks ['jamvm, do_configure'])
  Task 681
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_install) (dependent Tasks ['jamvm, do_compile'])
  Task 682
(virtual:native:/opt/yocto/poky/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
  Task 677
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_configure) (dependent Tasks ['ecj-bootstrap-native.bb, do_patch',
'jamvm, do_populate_sysroot', 'libecj-bootstrap-native,
do_populate_sysroot'])
  Task 678
(/opt/yocto/poky/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_compile) (dependent Tasks ['ecj-bootstrap-native.bb, do_configure'])




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-20  7:25   ` Richard Leitner
  2015-08-25  6:29     ` Richard Leitner
@ 2015-08-25  6:38     ` Khem Raj
  2015-08-25  6:46       ` Richard Leitner
  1 sibling, 1 reply; 10+ messages in thread
From: Khem Raj @ 2015-08-25  6:38 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]


> On Aug 20, 2015, at 12:25 AM, Richard Leitner <richard.leitner@skidata.com> wrote:
> 
> Hi,
> 
> On 08/19/2015 01:53 PM, Sven Ebenfeld wrote:
>> This patch creates a circular dependency for me:
>> 
>> ERROR: Unbuildable tasks were found.
>> These are usually caused by circular dependencies and any circular
>> dependency chains found will be printed below. Increase the debug
>> level to see a list of unbuildable tasks.
>> 
> 
> Same problem for me!
> 
> My settings are:
> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
> PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native”

can you change this to

PREFERRED_PROVIDER_virtual/javac-native = "ecj-initial-native"

and retry ?


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-20  7:25   ` Richard Leitner
@ 2015-08-25  6:29     ` Richard Leitner
  2015-08-25  6:38     ` Khem Raj
  1 sibling, 0 replies; 10+ messages in thread
From: Richard Leitner @ 2015-08-25  6:29 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio, mario

BUMP

Can someone revert or fix that patch please?
We have this problem since nearly a week now...

regards,
Richard L
On 08/20/2015 09:25 AM, Richard Leitner wrote:
> Hi,
> 
> On 08/19/2015 01:53 PM, Sven Ebenfeld wrote:
>> This patch creates a circular dependency for me:
>>
>> ERROR: Unbuildable tasks were found.
>> These are usually caused by circular dependencies and any circular
>> dependency chains found will be printed below. Increase the debug
>> level to see a list of unbuildable tasks.
>>
> 
> Same problem for me!
> 
> My settings are:
> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
> PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
> PREFERRED_VERSION_openjdk-7-jre = "85b01-2.6.1"
> PREFERRED_VERSION_icedtea7-native = "2.1.3"
> PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"
> 
> If I revert the "Don't depend on a hardcoded compiler" patch the build
> starts successfully!
> 
> regards,
> Richard L
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-19 11:53 ` Sven Ebenfeld
@ 2015-08-20  7:25   ` Richard Leitner
  2015-08-25  6:29     ` Richard Leitner
  2015-08-25  6:38     ` Khem Raj
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Leitner @ 2015-08-20  7:25 UTC (permalink / raw)
  To: openembedded-devel

Hi,

On 08/19/2015 01:53 PM, Sven Ebenfeld wrote:
> This patch creates a circular dependency for me:
> 
> ERROR: Unbuildable tasks were found.
> These are usually caused by circular dependencies and any circular
> dependency chains found will be printed below. Increase the debug
> level to see a list of unbuildable tasks.
> 

Same problem for me!

My settings are:
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
PREFERRED_VERSION_openjdk-7-jre = "85b01-2.6.1"
PREFERRED_VERSION_icedtea7-native = "2.1.3"
PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"

If I revert the "Don't depend on a hardcoded compiler" patch the build
starts successfully!

regards,
Richard L


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
  2015-08-18 20:14 [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler Mario Domenech Goulart
@ 2015-08-19 11:53 ` Sven Ebenfeld
  2015-08-20  7:25   ` Richard Leitner
  0 siblings, 1 reply; 10+ messages in thread
From: Sven Ebenfeld @ 2015-08-19 11:53 UTC (permalink / raw)
  To: OpenEmbedded Devel List; +Cc: Mario Domenech Goulart

This patch creates a circular dependency for me:

ERROR: Unbuildable tasks were found.
These are usually caused by circular dependencies and any circular
dependency chains found will be printed below. Increase the debug
level to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
  Task 2 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_install) (dependent Tasks ['jamvm, do_compile'])
  Task 3 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
  Task 68 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_configure) (dependent Tasks ['libecj-bootstrap-native,
do_populate_sysroot', 'ecj-bootstrap-native.bb, do_patch', 'jamvm,
do_populate_sysroot'])
  Task 69 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_compile) (dependent Tasks ['ecj-bootstrap-native.bb,
do_configure'])
  Task 65 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
  Task 66 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
do_install'])
  Task 5 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_configure) (dependent Tasks ['jamvm, do_patch',
'ecj-bootstrap-native.bb, do_populate_sysroot', 'libtool-native,
do_populate_sysroot', 'libffi, do_populate_sysroot', 'gnu-config,
do_populate_sysroot', 'pkgconfig, do_populate_sysroot', 'zlib,
do_populate_sysroot', 'autoconf, do_populate_sysroot',
'classpath-native, do_populate_sysroot', 'automake,
do_populate_sysroot'])
  Task 6 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_compile) (dependent Tasks ['jamvm, do_configure'])

Dependency loop #2 found:
  Task 2 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_install) (dependent Tasks ['jamvm, do_compile'])
  Task 3 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_populate_sysroot) (dependent Tasks ['jamvm, do_install'])
  Task 68 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_configure) (dependent Tasks ['libecj-bootstrap-native,
do_populate_sysroot', 'ecj-bootstrap-native.bb, do_patch', 'jamvm,
do_populate_sysroot'])
  Task 69 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_compile) (dependent Tasks ['ecj-bootstrap-native.bb,
do_configure'])
  Task 65 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_install) (dependent Tasks ['ecj-bootstrap-native.bb, do_compile'])
  Task 66 (/sources/meta-java/recipes-core/ecj/ecj-bootstrap-native.bb,
do_populate_sysroot) (dependent Tasks ['ecj-bootstrap-native.bb,
do_install'])
  Task 61 (/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_configure) (dependent Tasks ['ecj-bootstrap-native.bb,
do_populate_sysroot', 'libtool-native, do_populate_sysroot',
'gettext-minimal-native, do_populate_sysroot', 'gnu-config,
do_populate_sysroot', 'zip, do_populate_sysroot', 'fastjar,
do_populate_sysroot', 'autoconf, do_populate_sysroot',
'classpath-native, do_patch', 'automake, do_populate_sysroot'])
  Task 62 (/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_compile) (dependent Tasks ['classpath-native, do_configure'])
  Task 58 (/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_install) (dependent Tasks ['classpath-native, do_compile'])
  Task 59 (/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb,
do_populate_sysroot) (dependent Tasks ['classpath-native,
do_install'])
  Task 5 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_configure) (dependent Tasks ['jamvm, do_patch',
'ecj-bootstrap-native.bb, do_populate_sysroot', 'libtool-native,
do_populate_sysroot', 'libffi, do_populate_sysroot', 'gnu-config,
do_populate_sysroot', 'pkgconfig, do_populate_sysroot', 'zlib,
do_populate_sysroot', 'autoconf, do_populate_sysroot',
'classpath-native, do_populate_sysroot', 'automake,
do_populate_sysroot'])
  Task 6 (virtual:native:/sources/meta-java/recipes-core/jamvm/jamvm_git.bb,
do_compile) (dependent Tasks ['jamvm, do_configure'])


I have set PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" and
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"

The recipe ecj-bootstrap-native now depends on virtual/java-native and
provides virtual/javac-native.
The recipe jamvm depends on virtual/javac-native and provides
java-native. So none of them can be built since this patch.

Shouldn't jamvm depend on javac-initial-native?

Mit freundlichen Grüßen,
Sven Ebenfeld


2015-08-18 22:14 GMT+02:00 Mario Domenech Goulart <mario@ossystems.com.br>:
> The recipes below depended on a hardcoded native compile
> (ecj-initial-native).  Since we may use another native compiler to
> build them, we set the dependency in virtual/javac-native instead.
>
> * cacao
> * classpath-native
> * jamvm
>
> Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
> ---
>  recipes-core/cacao/cacao_1.6.1.bb               | 2 +-
>  recipes-core/classpath/classpath-native_0.99.bb | 2 +-
>  recipes-core/jamvm/jamvm.inc                    | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
> index 65aaf93..14ff019 100644
> --- a/recipes-core/cacao/cacao_1.6.1.bb
> +++ b/recipes-core/cacao/cacao_1.6.1.bb
> @@ -4,7 +4,7 @@ LICENSE  = "GPL-2.0"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
>  SECTION  = "interpreters"
>
> -DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-native bdwgc-native"
> +DEPENDS_class-native = "zlib-native libtool-native virtual/javac-native fastjar-native classpath-native bdwgc-native"
>  PROVIDES_class-native = "virtual/java-native"
>
>  DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc"
> diff --git a/recipes-core/classpath/classpath-native_0.99.bb b/recipes-core/classpath/classpath-native_0.99.bb
> index 02951b9..cf297d9 100644
> --- a/recipes-core/classpath/classpath-native_0.99.bb
> +++ b/recipes-core/classpath/classpath-native_0.99.bb
> @@ -1,7 +1,7 @@
>  require classpath-native.inc
>
>  LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
> -DEPENDS += "ecj-initial-native"
> +DEPENDS += "virtual/javac-native"
>
>  PR = "${INC_PR}.0"
>
> diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
> index 5893cbc..bed1c5d 100644
> --- a/recipes-core/jamvm/jamvm.inc
> +++ b/recipes-core/jamvm/jamvm.inc
> @@ -4,7 +4,7 @@ LICENSE = "GPL-2.0"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
>
>  DEPENDS = "zlib classpath virtual/javac-native libffi"
> -DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial-native libffi-native"
> +DEPENDS_virtclass-native = "zlib-native classpath-native virtual/javac-native libffi-native"
>
>  RDEPENDS_${PN} = "classpath"
>  RDEPENDS_${PN}_virtclass-native = ""
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler
@ 2015-08-18 20:14 Mario Domenech Goulart
  2015-08-19 11:53 ` Sven Ebenfeld
  0 siblings, 1 reply; 10+ messages in thread
From: Mario Domenech Goulart @ 2015-08-18 20:14 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Mario Domenech Goulart

The recipes below depended on a hardcoded native compile
(ecj-initial-native).  Since we may use another native compiler to
build them, we set the dependency in virtual/javac-native instead.

* cacao
* classpath-native
* jamvm

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 recipes-core/cacao/cacao_1.6.1.bb               | 2 +-
 recipes-core/classpath/classpath-native_0.99.bb | 2 +-
 recipes-core/jamvm/jamvm.inc                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
index 65aaf93..14ff019 100644
--- a/recipes-core/cacao/cacao_1.6.1.bb
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -4,7 +4,7 @@ LICENSE  = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 SECTION  = "interpreters"
 
-DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-native bdwgc-native"
+DEPENDS_class-native = "zlib-native libtool-native virtual/javac-native fastjar-native classpath-native bdwgc-native"
 PROVIDES_class-native = "virtual/java-native"
 
 DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc"
diff --git a/recipes-core/classpath/classpath-native_0.99.bb b/recipes-core/classpath/classpath-native_0.99.bb
index 02951b9..cf297d9 100644
--- a/recipes-core/classpath/classpath-native_0.99.bb
+++ b/recipes-core/classpath/classpath-native_0.99.bb
@@ -1,7 +1,7 @@
 require classpath-native.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
-DEPENDS += "ecj-initial-native"
+DEPENDS += "virtual/javac-native"
 
 PR = "${INC_PR}.0"
 
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index 5893cbc..bed1c5d 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
 DEPENDS = "zlib classpath virtual/javac-native libffi"
-DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial-native libffi-native"
+DEPENDS_virtclass-native = "zlib-native classpath-native virtual/javac-native libffi-native"
 
 RDEPENDS_${PN} = "classpath"
 RDEPENDS_${PN}_virtclass-native = ""
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-08-25 23:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 21:01 [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler Mario Domenech Goulart
2015-05-12 21:01 ` [meta-java][PATCH 2/3] Avoid parse time erros due to dependency on x11, for distros without x11 Mario Domenech Goulart
2015-05-12 21:01 ` [meta-java][PATCH 3/3] rxtx: drop dependency on fastjar-native; depend on virtual/javac-native Mario Domenech Goulart
2015-08-18 20:14 [meta-java][PATCH 1/3] Don't depend on a hardcoded compiler Mario Domenech Goulart
2015-08-19 11:53 ` Sven Ebenfeld
2015-08-20  7:25   ` Richard Leitner
2015-08-25  6:29     ` Richard Leitner
2015-08-25  6:38     ` Khem Raj
2015-08-25  6:46       ` Richard Leitner
2015-08-25 23:13         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.