Canonicalization Check fails (makes it impossible to depend JavaProject on NativeProject)

未关闭
#90 1 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

@dougxc 已经在做这个了。

开始于 2018年1月17日。

评估

这个 Issue 还没有评估数据。

描述

bug

The suite.py constellation below causes:

Traceback (most recent call last):
  File "/home/pwoegere/labs/xxx/mx_olpaw/mx_gate.py", line 267, in gate
    if mx.command_function('canonicalizeprojects')([]) != 0:
  File "/home/pwoegere/labs/xxx/mx_olpaw/mx.py", line 8931, in canonicalizeprojects
    if pkg in dep.extended_java_packages():
AttributeError: 'NativeProject' object has no attribute 'extended_java_packages'
gate: 17 Mar 2016 15:07:00: ABORT: Gate [0:00:11.244213] [disk (free/total): 305.7GB/430.1GB]
'NativeProject' object has no attribute 'extended_java_packages'

I think it should be possible for a JavaProject to depend on a NativeProject:

    "com.oracle.xxx.core.dis" : {
      "subDir" : "xxx",
      "sourceDirs" : ["src"],
      "dependencies" : [
        "com.oracle.xxx.core",
        "com.oracle.xxx.core.dis.native",
      ],
      "annotationProcessors" : [
        "graal-core:GRAAL_NODEINFO_PROCESSOR",
        "graal-core:GRAAL_REPLACEMENTS_VERIFIER",
        "graal-core:GRAAL_OPTIONS_PROCESSOR",
        "truffle:TRUFFLE_DSL_PROCESSOR",
      ],
      "javaCompliance" : "1.8",
      "checkstyle" : "com.oracle.xxx.truffle",
      "workingSets" : "XXX",
      "findbugs" : "false",
    },

    "com.oracle.xxx.core.dis.native" : {
      "native" : True,
      "subDir" : "xxx",
      "dependencies" : ["DISTORM"],
      "output" : "clibraries",
      "results" : [
        "libdistorm3.a",
        "include/distorm.h",
        "include/mnemonics.h",
      ]
    },

Here com.oracle.xxx.core.dis depends on com.oracle.xxx.core.dis.native. Unfortunately using the definition above results in the error shown before.

主要语言
Python
星标
205
派生
131
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

graalvm/mx 的其他 Issue

查看 graalvm/mx 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。