emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.81k stars 3.31k forks source link

/include/CNIOBoringSSL_base.h:504:10: fatal error: 'memory' file not found #include <memory> #19994

Closed rajeshm20 closed 1 year ago

rajeshm20 commented 1 year ago

os : Ubuntu 22.04 LTS (arm64) swift 5.8 vapor framework: 4.78.0 toolbox: main (83d3503)

Error:-----

$ swift build && run Fetching https://github.com/vapor/fluent-mongo-driver.git Fetching https://github.com/vapor/leaf.git Fetched https://github.com/vapor/leaf.git (1.40s) Fetching https://github.com/vapor/fluent.git Fetched https://github.com/vapor/fluent-mongo-driver.git (1.48s) Fetching https://github.com/vapor/vapor.git from cache Fetched https://github.com/vapor/vapor.git (1.19s) Fetched https://github.com/vapor/fluent.git (2.15s) Computing version for https://github.com/vapor/leaf.git Computed https://github.com/vapor/leaf.git at 4.2.4 (0.32s) Fetching https://github.com/apple/swift-algorithms.git from cache Fetching https://github.com/vapor/leaf-kit.git Fetched https://github.com/apple/swift-algorithms.git (0.85s) Fetched https://github.com/vapor/leaf-kit.git (1.53s) Computing version for https://github.com/vapor/fluent.git Computed https://github.com/vapor/fluent.git at 4.8.0 (0.24s) Fetching https://github.com/vapor/fluent-kit.git Fetched https://github.com/vapor/fluent-kit.git (2.37s) Computing version for https://github.com/apple/swift-algorithms.git Computed https://github.com/apple/swift-algorithms.git at 1.0.0 (0.25s) Fetching https://github.com/apple/swift-numerics from cache Fetched https://github.com/apple/swift-numerics (1.04s) Computing version for https://github.com/vapor/vapor.git Computed https://github.com/vapor/vapor.git at 4.78.0 (0.31s) Fetching https://github.com/vapor/multipart-kit.git from cache Fetching https://github.com/vapor/websocket-kit.git from cache Fetched https://github.com/vapor/websocket-kit.git (0.86s) Fetching https://github.com/apple/swift-metrics.git from cache Fetched https://github.com/vapor/multipart-kit.git (0.97s) Fetching https://github.com/apple/swift-log.git from cache Fetched https://github.com/apple/swift-log.git (0.85s) Fetching https://github.com/apple/swift-nio-extras.git from cache Fetched https://github.com/apple/swift-metrics.git (0.97s) Fetching https://github.com/apple/swift-nio-http2.git from cache Fetched https://github.com/apple/swift-nio-extras.git (1.04s) Fetching https://github.com/apple/swift-nio-ssl.git from cache Fetched https://github.com/apple/swift-nio-http2.git (1.05s) Fetching https://github.com/apple/swift-nio.git from cache Fetched https://github.com/apple/swift-nio-ssl.git (1.19s) Fetching https://github.com/swift-server/swift-backtrace.git from cache Fetched https://github.com/swift-server/swift-backtrace.git (0.80s) Fetching https://github.com/vapor/routing-kit.git from cache Fetched https://github.com/apple/swift-nio.git (2.22s) Fetching https://github.com/apple/swift-crypto.git from cache Fetched https://github.com/vapor/routing-kit.git (0.89s) Fetching https://github.com/vapor/console-kit.git from cache Fetched https://github.com/apple/swift-crypto.git (0.88s) Fetching https://github.com/vapor/async-kit.git from cache Fetched https://github.com/vapor/console-kit.git (0.84s) Fetching https://github.com/swift-server/async-http-client.git from cache Fetched https://github.com/vapor/async-kit.git (0.95s) Fetched https://github.com/swift-server/async-http-client.git (0.88s) Computing version for https://github.com/apple/swift-nio-extras.git Computed https://github.com/apple/swift-nio-extras.git at 1.19.0 (0.29s) Computing version for https://github.com/swift-server/async-http-client.git Computed https://github.com/swift-server/async-http-client.git at 1.18.0 (0.25s) Fetching https://github.com/apple/swift-atomics.git from cache Fetching https://github.com/apple/swift-nio-transport-services.git from cache Fetched https://github.com/apple/swift-nio-transport-services.git (0.89s) Fetched https://github.com/apple/swift-atomics.git (0.89s) Computing version for https://github.com/apple/swift-numerics Computed https://github.com/apple/swift-numerics at 1.0.2 (0.25s) Computing version for https://github.com/apple/swift-nio.git Computed https://github.com/apple/swift-nio.git at 2.58.0 (0.34s) Fetching https://github.com/apple/swift-collections.git from cache Fetched https://github.com/apple/swift-collections.git (1.13s) Computing version for https://github.com/apple/swift-atomics.git Computed https://github.com/apple/swift-atomics.git at 1.1.0 (0.26s) Computing version for https://github.com/vapor/async-kit.git Computed https://github.com/vapor/async-kit.git at 1.17.0 (0.24s) Computing version for https://github.com/apple/swift-collections.git Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.23s) Computing version for https://github.com/apple/swift-log.git Computed https://github.com/apple/swift-log.git at 1.5.2 (0.23s) Computing version for https://github.com/apple/swift-nio-ssl.git Computed https://github.com/apple/swift-nio-ssl.git at 2.24.0 (0.25s) Computing version for https://github.com/vapor/routing-kit.git Computed https://github.com/vapor/routing-kit.git at 4.7.2 (0.23s) Computing version for https://github.com/vapor/multipart-kit.git Computed https://github.com/vapor/multipart-kit.git at 4.5.4 (0.23s) Computing version for https://github.com/swift-server/swift-backtrace.git Computed https://github.com/swift-server/swift-backtrace.git at 1.3.3 (0.24s) Computing version for https://github.com/apple/swift-nio-transport-services.git Computed https://github.com/apple/swift-nio-transport-services.git at 1.17.0 (0.23s) Computing version for https://github.com/vapor/fluent-mongo-driver.git Computed https://github.com/vapor/fluent-mongo-driver.git at 1.3.1 (0.24s) Fetching https://github.com/orlandos-nl/DNSClient.git Fetching https://github.com/orlandos-nl/MongoKitten.git Fetched https://github.com/orlandos-nl/DNSClient.git (1.98s) Fetched https://github.com/orlandos-nl/MongoKitten.git (3.25s) Computing version for https://github.com/orlandos-nl/DNSClient.git Computed https://github.com/orlandos-nl/DNSClient.git at 2.3.0 (0.23s) Computing version for https://github.com/orlandos-nl/MongoKitten.git Computed https://github.com/orlandos-nl/MongoKitten.git at 6.7.14 (0.28s) Fetching https://github.com/orlandos-nl/BSON.git Fetched https://github.com/orlandos-nl/BSON.git (2.49s) Computing version for https://github.com/orlandos-nl/BSON.git Computed https://github.com/orlandos-nl/BSON.git at 7.0.31 (0.69s) Computing version for https://github.com/vapor/leaf-kit.git Computed https://github.com/vapor/leaf-kit.git at 1.10.2 (0.24s) Computing version for https://github.com/apple/swift-metrics.git Computed https://github.com/apple/swift-metrics.git at 2.4.1 (0.23s) Computing version for https://github.com/vapor/fluent-kit.git Computed https://github.com/vapor/fluent-kit.git at 1.44.0 (0.24s) Fetching https://github.com/vapor/sql-kit.git Fetched https://github.com/vapor/sql-kit.git (2.59s) Computing version for https://github.com/vapor/sql-kit.git Computed https://github.com/vapor/sql-kit.git at 3.28.0 (0.24s) Computing version for https://github.com/apple/swift-nio-http2.git Computed https://github.com/apple/swift-nio-http2.git at 1.27.0 (0.24s) Computing version for https://github.com/vapor/console-kit.git Computed https://github.com/vapor/console-kit.git at 4.6.0 (0.23s) Computing version for https://github.com/vapor/websocket-kit.git Computed https://github.com/vapor/websocket-kit.git at 2.14.0 (0.24s) Computing version for https://github.com/apple/swift-crypto.git Computed https://github.com/apple/swift-crypto.git at 2.6.0 (0.25s) Creating working copy for https://github.com/vapor/sql-kit.git Working copy of https://github.com/vapor/sql-kit.git resolved at 3.28.0 Creating working copy for https://github.com/apple/swift-log.git Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2 Creating working copy for https://github.com/apple/swift-collections.git Working copy of https://github.com/apple/swift-collections.git resolved at 1.0.4 Creating working copy for https://github.com/vapor/routing-kit.git Working copy of https://github.com/vapor/routing-kit.git resolved at 4.7.2 Creating working copy for https://github.com/vapor/fluent-mongo-driver.git Working copy of https://github.com/vapor/fluent-mongo-driver.git resolved at 1.3.1 Creating working copy for https://github.com/vapor/vapor.git Working copy of https://github.com/vapor/vapor.git resolved at 4.78.0 Creating working copy for https://github.com/apple/swift-nio.git Working copy of https://github.com/apple/swift-nio.git resolved at 2.58.0 Creating working copy for https://github.com/vapor/fluent.git Working copy of https://github.com/vapor/fluent.git resolved at 4.8.0 Creating working copy for https://github.com/vapor/console-kit.git Working copy of https://github.com/vapor/console-kit.git resolved at 4.6.0 Creating working copy for https://github.com/apple/swift-crypto.git Working copy of https://github.com/apple/swift-crypto.git resolved at 2.6.0 Creating working copy for https://github.com/vapor/leaf-kit.git Working copy of https://github.com/vapor/leaf-kit.git resolved at 1.10.2 Creating working copy for https://github.com/apple/swift-nio-ssl.git Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.24.0 Creating working copy for https://github.com/apple/swift-algorithms.git Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.0.0 Creating working copy for https://github.com/vapor/fluent-kit.git Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.44.0 Creating working copy for https://github.com/apple/swift-metrics.git Working copy of https://github.com/apple/swift-metrics.git resolved at 2.4.1 Creating working copy for https://github.com/orlandos-nl/DNSClient.git Working copy of https://github.com/orlandos-nl/DNSClient.git resolved at 2.3.0 Creating working copy for https://github.com/apple/swift-nio-transport-services.git Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.17.0 Creating working copy for https://github.com/vapor/async-kit.git Working copy of https://github.com/vapor/async-kit.git resolved at 1.17.0 Creating working copy for https://github.com/vapor/leaf.git Working copy of https://github.com/vapor/leaf.git resolved at 4.2.4 Creating working copy for https://github.com/vapor/multipart-kit.git Working copy of https://github.com/vapor/multipart-kit.git resolved at 4.5.4 Creating working copy for https://github.com/swift-server/swift-backtrace.git Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.3 Creating working copy for https://github.com/vapor/websocket-kit.git Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.14.0 Creating working copy for https://github.com/orlandos-nl/BSON.git Working copy of https://github.com/orlandos-nl/BSON.git resolved at 7.0.31 Creating working copy for https://github.com/apple/swift-nio-http2.git Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.27.0 Creating working copy for https://github.com/apple/swift-atomics.git Working copy of https://github.com/apple/swift-atomics.git resolved at 1.1.0 Creating working copy for https://github.com/swift-server/async-http-client.git Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.18.0 Creating working copy for https://github.com/orlandos-nl/MongoKitten.git Working copy of https://github.com/orlandos-nl/MongoKitten.git resolved at 6.7.14 Creating working copy for https://github.com/apple/swift-numerics Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2 Creating working copy for https://github.com/apple/swift-nio-extras.git Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.19.0 Building for debugging... In file included from /home/rajeshm/GraphQLServer/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:109: In file included from /home/rajeshm/GraphQLServer/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_ssl.h:145: /home/rajeshm/GraphQLServer/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_base.h:504:10: fatal error: 'memory' file not found

include

     ^~~~~~~~

1 error generated. [257/1161] Compiling CNIOBoringSSLShims shims.c

rajeshm20 commented 1 year ago

This thread solved the issue https://github.com/apple/swift-nio-ssl/issues/105