Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4559

Linker error: Unable to process the derived type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Environment:

      ONOS BUILD

    • Story Points:
      3

      Description

      code: https://gerrit.onosproject.org/#/c/9249/16

      Yang file:
      module ospf {
      namespace "urn:cisco:params:xml:ns:yang:ospf";
      // replace with IANA namespace when assigned
      prefix ospf;
      revision 2020-10-20

      { description "Initial revision."; }

      typedef type1

      { type int8; }

      typedef type2 { type type1; }

      typedef type3 { type int16; }

      typedef type4 { type int32; }
      typedef type5 { type int64; }

      typedef type6 { type uint8; }

      typedef type7 { type uint16; }

      typedef type8 { type uint32; }

      typedef type9 { type uint64; }

      typedef type10 { type type1; }

      typedef type11 { type int8; }

      typedef type12

      { type type1; }

      ///* need to impelement
      typedef type13

      { type decimal64; }

      typedef type14

      { type binary; }

      typedef type15

      { type bits; }

      //*/

      /*
      typedef type16

      { type instance-identifier; }

      typedef type17

      { type leafref; }

      typedef type18

      { type identityref; }

      */

      typedef type19

      { type string; }

      leaf typedef1

      { type type1; }

      leaf typedef2

      { type type2; }

      leaf typedef3

      { type type3; }

      leaf typedef4

      { type type4; }

      leaf typedef5

      { type type5; }

      leaf typedef6

      { type type6; }

      leaf typedef7

      { type type8; }

      leaf typedef9

      { type type9; }

      leaf typedef10

      { type type10; }

      leaf typedef11

      { type type11; }

      leaf typedef12

      { type type12; }

      leaf typedef13

      { type type13; }

      leaf typedef14

      { type type14; }

      leaf typedef15

      { type type15; }

      /*
      leaf typedef16

      { type type16; }

      leaf typedef17

      { type type17; }

      leaf typedef18

      { type type18; }

      */

      leaf typedef19

      { type type19; }

      }

      log:
      [INFO] Error in file: /home/root1/onos/utils/test/src/main/yang/typedef.yang
      Linker error: Unable to process the derived type.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.511 s
      [INFO] Finished at: 2016-05-18T17:12:28+05:30
      [INFO] Final Memory: 20M/383M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to Linker error: Unable to process the derived type. in /home/root1/onos/utils/test/src/main/yang/typedef.yang YANG file. -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to Linker error: Unable to process the derived type. in /home/root1/onos/utils/test/src/main/yang/typedef.yang YANG file.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Exception occured due to Linker error: Unable to process the derived type. in /home/root1/onos/utils/test/src/main/yang/typedef.yang YANG file.
      at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:190)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 20 more

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            huawei-adarsh Adarsh m
            Reporter:
            sathishmurugesan sathishkumar murugesan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: