You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw the CONTRIBUTING.md, so I tried to build aws-cdk-lib. But It could not succeed.
I forked GitHub repo and executed following steps that is same as docs except using nvm on May 31.
NODE_OPTIONS=--max-old-space-size=8192 npx lerna run build --scope=aws-cdk-lib --verbose
When I execute npx lerna run build command, The Error: spawn EBADF occurred. How I can build successfully?
Expected Behavior
I can build successfully.
Current Behavior
The following error occurred.
% NODE_OPTIONS=--max-old-space-size=8192 npx lerna run build --scope=aws-cdk-lib --verbose
lerna notice cli v6.6.2
lerna verb rootPath /Users/takahiro.tsuchiya/development/playground/aws-cdk
lerna notice filter including "aws-cdk-lib"
lerna info filter [ 'aws-cdk-lib' ]
lerna verb run Nx target configuration was found. Task dependencies will be automatically included.
> Lerna (powered by Nx) Running target build for project aws-cdk-lib and 8 tasks it depends on:
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> aws-cdk-lib:build
yarn run v1.22.19
$ cdk-build
x fixtures/
x fixtures/symlinks/
x fixtures/test1/
x fixtures/test1/external-link.txt
x fixtures/test1/file1.txt
x fixtures/test1/local-link.txt
x fixtures/test1/subdir/
x fixtures/test1/subdir2/
x fixtures/test1/subdir2/empty-subdir/
x fixtures/test1/subdir2/subdir3/
x fixtures/test1/subdir2/subdir3/file3.txt
x fixtures/test1/subdir2/empty-subdir/.hidden
x fixtures/test1/subdir/file2.txt
x fixtures/symlinks/external-dir-link
x fixtures/symlinks/external-link.txt
x fixtures/symlinks/indirect-external-link.txt
x fixtures/symlinks/local-dir-link
x fixtures/symlinks/local-link.txt
x fixtures/symlinks/normal-dir/
x fixtures/symlinks/normal-file.txt
x fixtures/symlinks/normal-dir/file-in-subdir.txt
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AlternatePathHint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Explanation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ServerCertificateSummary","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectPeerBgpConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkEdge","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkSegment","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AnalysisError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DashboardError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"OutputColumn","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DataSetConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TemplateError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ThemeError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConfigParameter","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcSecurityGroup","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ClusterEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TargetAddress","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectionAliasAssociation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
warning JSII6: A "peerDependency" on "constructs" at "^10.0.0" means you should take a "devDependency" on "constructs" at "10.0.0" (found "^10.0.0")
aws-apigateway/lib/domain-name.ts:132:19 - warning JSII5019: The property name "domainName" conflicts with the declaring class "DomainName". This will result in renaming the class to "_DomainName" in C#. Consider renaming "domainName".
132 public readonly domainName: string;
~~~~~~~~~~
aws-apigateway/lib/domain-name.ts:117:14
117 export class DomainName extends Resource implements IDomainName {
~~~~~~~~~~
The declaring class is introduced here
aws-apigateway/lib/gateway-response.ts:217:19 - warning JSII5019: The property name "responseType" conflicts with the declaring class "ResponseType". This will result in renaming the class to "_ResponseType" in C#. Consider renaming "responseType".
217 public readonly responseType: string;
~~~~~~~~~~~~
aws-apigateway/lib/gateway-response.ts:101:14
101 export class ResponseType {
~~~~~~~~~~~~
The declaring class is introduced here
aws-codepipeline/lib/artifact.ts:15:17 - warning JSII5019: The method name "artifact" conflicts with the declaring class "Artifact". This will result in renaming the class to "_Artifact" in C#. Consider renaming "artifact".
15 public static artifact(name: string): Artifact {
~~~~~~~~
aws-codepipeline/lib/artifact.ts:8:14
8 export class Artifact {
~~~~~~~~
The declaring class is introduced here
aws-codepipeline/lib/artifact.ts:124:17 - warning JSII5019: The method name "artifactPath" conflicts with the declaring class "ArtifactPath". This will result in renaming the class to "_ArtifactPath" in C#. Consider renaming "artifactPath".
124 public static artifactPath(artifactName: string, fileName: string): ArtifactPath {
~~~~~~~~~~~~
aws-codepipeline/lib/artifact.ts:123:14
123 export class ArtifactPath {
~~~~~~~~~~~~
The declaring class is introduced here
aws-ec2/lib/connections.ts:69:19 - warning JSII5019: The property name "connections" conflicts with the declaring class "Connections". This will result in renaming the class to "_Connections" in C#. Consider renaming "connections".
69 public readonly connections: Connections;
~~~~~~~~~~~
aws-ec2/lib/connections.ts:68:14
68 export class Connections implements IConnectable {
~~~~~~~~~~~
The declaring class is introduced here
aws-ec2/lib/instance.ts:316:19 - warning JSII5019: The property name "instance" conflicts with the declaring class "Instance". This will result in renaming the class to "_Instance" in C#. Consider renaming "instance".
316 public readonly instance: CfnInstance;
~~~~~~~~
aws-ec2/lib/instance.ts:286:14
286 export class Instance extends Resource implements IInstance {
~~~~~~~~
The declaring class is introduced here
aws-ecr-assets/lib/image-asset.ts:80:39 - warning JSII5019: The property name "platform" conflicts with the declaring class "Platform". This will result in renaming the class to "_Platform" in C#. Consider renaming "platform".
80 private constructor(public readonly platform: string) { }
~~~~~~~~
aws-ecr-assets/lib/image-asset.ts:56:14
56 export class Platform {
~~~~~~~~
The declaring class is introduced here
aws-lambda/lib/lambda-version.ts:180:19 - warning JSII5019: The property name "version" conflicts with the declaring class "Version". This will result in renaming the class to "_Version" in C#. Consider renaming "version".
180 public readonly version: string;
~~~~~~~
aws-lambda/lib/lambda-version.ts:114:14
114 export class Version extends QualifiedFunctionBase implements IVersion {
~~~~~~~
The declaring class is introduced here
/Users/takahiro.tsuchiya/development/playground/aws-cdk/packages/aws-cdk-lib/aws-lambda-nodejs/test/function.test.ts
34:1 warning Skipped test jest/no-disabled-tests
48:1 warning Skipped test jest/no-disabled-tests
64:1 warning Skipped test jest/no-disabled-tests
80:1 warning Skipped test jest/no-disabled-tests
90:1 warning Skipped test jest/no-disabled-tests
100:1 warning Skipped test jest/no-disabled-tests
117:1 warning Skipped test jest/no-disabled-tests
123:1 warning Skipped test jest/no-disabled-tests
135:1 warning Skipped test jest/no-disabled-tests
141:1 warning Skipped test jest/no-disabled-tests
145:1 warning Skipped test jest/no-disabled-tests
151:1 warning Skipped test jest/no-disabled-tests
157:1 warning Skipped test jest/no-disabled-tests
163:1 warning Skipped test jest/no-disabled-tests
173:1 warning Skipped test jest/no-disabled-tests
184:1 warning Skipped test jest/no-disabled-tests
197:1 warning Skipped test jest/no-disabled-tests
208:1 warning Skipped test jest/no-disabled-tests
/Users/takahiro.tsuchiya/development/playground/aws-cdk/packages/aws-cdk-lib/aws-lambda-nodejs/test/util.test.ts
15:3 warning Skipped test jest/no-disabled-tests
19:3 warning Skipped test jest/no-disabled-tests
23:3 warning Skipped test jest/no-disabled-tests
27:3 warning Skipped test jest/no-disabled-tests
31:3 warning Skipped test jest/no-disabled-tests
37:3 warning Skipped test jest/no-disabled-tests
44:3 warning Skipped test jest/no-disabled-tests
48:3 warning Skipped test jest/no-disabled-tests
54:3 warning Skipped test jest/no-disabled-tests
61:3 warning Skipped test jest/no-disabled-tests
65:3 warning Skipped test jest/no-disabled-tests
72:3 warning Skipped test jest/no-disabled-tests
80:3 warning Skipped test jest/no-disabled-tests
106:3 warning Skipped test jest/no-disabled-tests
121:3 warning Skipped test jest/no-disabled-tests
139:3 warning Skipped test jest/no-disabled-tests
150:3 warning Skipped test jest/no-disabled-tests
160:3 warning Skipped test jest/no-disabled-tests
167:3 warning Skipped test jest/no-disabled-tests
184:3 warning Skipped test jest/no-disabled-tests
217:3 warning Skipped test jest/no-disabled-tests
/Users/takahiro.tsuchiya/development/playground/aws-cdk/packages/aws-cdk-lib/cloud-assembly-schema/test/schema.test.ts
3:1 warning Skipped test jest/no-disabled-tests
✖ 40 problems (0 errors, 40 warnings)
Build times for aws-cdk-lib: Total time (2m53.1s) | /Users/takahiro.tsuchiya/development/playground/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii (1m52.0s) | ts-node ./scripts/verify-imports-resolve-same.ts && ts-node ./scripts/verify-imports-shielded.ts && ts-node ./cx-api/build-tools/flag-report.ts (7.1s) | ts-node -P tsconfig.dev.json scripts/gen.ts (3.3s) | npx ts-node -P tsconfig.dev.json region-info/build-tools/generate-static-data.ts && (cp -f $(node -p 'require.resolve("aws-sdk/apis/metadata.json")') custom-resources/lib/aws-custom-resource/sdk-api-metadata.json && rm -rf custom-resources/test/aws-custom-resource/cdk.out) && (rm -rf core/test/fs/fixtures && cd core/test/fs && tar -xzf fixtures.tar.gz) && (rm -rf assets/test/fs/fixtures && cd assets/test/fs && tar -xzvf fixtures.tar.gz) (2.0s)
Done in 173.70s.
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> Lerna (powered by Nx) Successfully ran target build for project aws-cdk-lib and 8 tasks it depends on
Nx read the output from the cache instead of running the command for 8 out of 9 tasks.
> Lerna (powered by Nx) spawn EBADF
Error: spawn EBADF
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:757:9)
at execFile (node:child_process:348:17)
at /Users/takahiro.tsuchiya/development/playground/aws-cdk/node_modules/nx/src/tasks-runner/cache.js:151:46
at new Promise (<anonymous>)
at Cache.<anonymous> (/Users/takahiro.tsuchiya/development/playground/aws-cdk/node_modules/nx/src/tasks-runner/cache.js:150:20)
at Generator.next (<anonymous>)
at /Users/takahiro.tsuchiya/development/playground/aws-cdk/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/takahiro.tsuchiya/development/playground/aws-cdk/node_modules/tslib/tslib.js:163:16)
Reproduction Steps
First, fork aws-cdk repo.
Next, Execute the following commands.
I'm on macOS 13.2.1, and I was unable to reproduce your exact steps, so I'm unsure what might be going wrong for you. I'm going to convert this to a discussion so that you can continue to receive support on this
Describe the bug
I saw the CONTRIBUTING.md, so I tried to build aws-cdk-lib. But It could not succeed.
I forked GitHub repo and executed following steps that is same as docs except using nvm on May 31.
When I execute
npx lerna run build
command, TheError: spawn EBADF
occurred. How I can build successfully?Expected Behavior
I can build successfully.
Current Behavior
The following error occurred.
Reproduction Steps
First, fork aws-cdk repo.
Next, Execute the following commands.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
packge.json says 0.0.0
Framework Version
No response
Node.js Version
v18.16.0
OS
macOS 13.4
Language
Typescript
Language Version
TypeScript (5.0.4)
Other information
I am using nvm to control node versions by project. nvm version is 0.39.3.
The text was updated successfully, but these errors were encountered: