Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: 'generated-sources/externc/duplicates' is not a file. #15

Open
jleistner opened this issue Aug 27, 2020 · 4 comments
Open

Comments

@jleistner
Copy link

Hi there,

I'm running into problems when compiling Apache Royale and they seem to be related to royale-typedefs:

compc:
     [java] args:
     [java] +royalelib=externs/frameworks
     [java] -targets=SWF
     [java] -external-library-path+=/home/user/royale-fork/royale-typedefs/node/../js/target/js.swc
     [java] -load-config=/home/user/royale-fork/royale-typedefs/node/target/compile-as-config.xml
     [java] -metadata.date=08/27/20 10:51 +0200
     [java] -metadata.dateFormat=MM/dd/yy HH:mm Z
     [java] -output=/home/user/royale-fork/royale-typedefs/node/target/node.swc
     [java] 0.271622474 seconds
     [java] /home/user/royale-fork/royale-typedefs/node/target/compile-as-config.xml(33): col: 0 unable to open '/home/user/royale-fork/royale-typedefs/node/target/generated-sources/externc/duplicates'.
     [java] /home/user/royale-fork/royale-typedefs/node/target/compile-as-config.xml (line: 33)
     [java] 
     [java]         </source-path>
     [java] 
     [java] 
     [java] /home/user/royale-fork/royale-typedefs/node/target/compile-as-config.xml(45): col: 0 'generated-sources/externc/duplicates' is not a file.
     [java] /home/user/royale-fork/royale-typedefs/node/target/compile-as-config.xml (line: 45)
     [java] 
     [java]     </include-sources>
     [java] 
     [java] 

BUILD FAILED
/home/user/royale-fork/royale-asjs/build.xml:1850: The following error occurred while executing this line:
/home/user/royale-fork/royale-asjs/build.xml:1938: The following error occurred while executing this line:
/home/user/royale-fork/royale-typedefs/build.xml:65: The following error occurred while executing this line:
/home/user/royale-fork/royale-typedefs/node/build.xml:235: Java returned: 4

If I remove lines 32 and 44 from node/src/main/config/compile-as-config.xml everything works fine but I don't know if this could pose problems somewhere else.

Regards
Jonathan

@carlosrovira
Copy link
Contributor

Hi, we need more info about how you're building. I guess it should be something in your environment since the build was working right in Windows, Mac and Linux (in CI servers) for long time.

@jleistner
Copy link
Author

Hi @carlosrovira,

this is my system info:
Ubuntu 20.04.1 LTS

Java version:

openjdk version "1.8.0_232"
OpenJDK Runtime Environment Corretto-8.232.09.1 (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM Corretto-8.232.09.1 (build 25.232-b09, mixed mode)

Ant version:

Apache Ant(TM) version 1.10.8 compiled on May 10 2020

This is how I build Royale (develop branch):

git clone
cd royale-asjs
ant all

Let me know if you need more information.

@carlosrovira
Copy link
Contributor

carlosrovira commented Aug 28, 2020

I think that's the problem. To build from sources you need a bit more. Here's a script I use to build daily in Mac:
https://gist.github.com/carlosrovira/200753108de263fa43e80d3228213509
Note that it makes much more, since is to build ANT and Maven (since I want to ensure I don't break anything), also it build SDK with Maven and I can uncomment parts to sync repos.

For ANT you'll see you need to clone also compiler and typedefs repos and you must have ant commands to wipe previous builds.

HTH

Carlos

@jleistner
Copy link
Author

Thanks for the information. I will take a look at the script and do some testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants