Comments (7)
We have the same issue on Raspbian GNU/Linux 9 (stretch)
with NodeJS
$npm i aws-crt
> [email protected] install /home/pi/station-backend/node_modules/aws-crt
> node ./scripts/install.js
info TOOL Using Unix Makefiles generator.
info TOOL Building only the install target, as specified from the command line.
info CMD CONFIGURE
info TOOL Building only the install target, as specified from the command line.
info RUN cmake "/home/pi/station-backend/node_modules/aws-crt" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/pi/station-backend/node_modules/aws-crt/build/Release" -DCMAKE_JS_INC="/home/pi/.cmake-js/node-arm/v12.13.1/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.13.1" -DNODE_ARCH="arm" -DCMAKE_EXPORT_COMPILE_COMMANDS="true" -DCMAKE_JS_PLATFORM="linux" -DCMAKE_JS_ARCH="arm"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Using submodule dependencies
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS - Success
-- Performing Test AWS_HAVE_MSVC_MULX
-- Performing Test AWS_HAVE_MSVC_MULX - Failed
-- Performing Test AWS_ARCH_INTEL
-- Performing Test AWS_ARCH_INTEL - Failed
-- Performing Test AWS_HAVE_GCC_INLINE_ASM
-- Performing Test AWS_HAVE_GCC_INLINE_ASM - Success
-- Performing Test AWS_HAVE_EXECINFO
-- Performing Test AWS_HAVE_EXECINFO - Success
-- Performing Test HAVE_M_AVX2_FLAG
-- Performing Test HAVE_M_AVX2_FLAG - Failed
-- Performing Test HAVE_AVX2_INTRINSICS
-- Performing Test HAVE_AVX2_INTRINSICS - Failed
-- Performing Test HAVE_MM256_EXTRACT_EPI64
-- Performing Test HAVE_MM256_EXTRACT_EPI64 - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Packaging currently only supported on Fedora.
-- Found LibCrypto: /usr/lib/arm-linux-gnueabihf/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.a
-- Attempting to try_compile PQ ASM
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Error at /home/pi/station-backend/node_modules/aws-crt/build/CMakeFiles/CMakeTmp/CMakeLists.txt:15 (add_executable):
Cannot find source file:
/home/pi/station-backend/node_modules/aws-crt/aws-common-runtime/s2n/tests/unit/s2n_pq_asm_noop_test.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: cmTC_6fa2d
CMake Error: Cannot determine link language for target "cmTC_6fa2d".
CMake Error: Internal CMake error, TryCompile generation of cmake failed
-- PQ ASM try_compile failed - using generic C code for PQ crypto
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.a
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.so
-- LibCrypto Static Lib: /usr/lib/arm-linux-gnueabihf/libcrypto.a
-- Configuring incomplete, errors occurred!
See also "/home/pi/station-backend/node_modules/aws-crt/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/station-backend/node_modules/aws-crt/build/CMakeFiles/CMakeError.log".
ERR! OMG Process terminated: 1
(node:19423) UnhandledPromiseRejectionWarning: Error: Process terminated: 1
at ChildProcess.<anonymous> (/home/pi/station-backend/node_modules/cmake-js/lib/processHelpers.js:29:32)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
(node:19423) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19423) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm WARN [email protected] No repository field.
+ [email protected]
updated 1 package and audited 752 packages in 52.399s
18 packages are looking for funding
run `npm fund` for details
found 2 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Jose Carlos Ramos Carmenates
from aws-crt-nodejs.
Hello,
It looks like everybody is stuck on the same problem. I know it sounds like a dumb question, but to start off, does that file actually exist on your device (/home/pi/station-backend/node_modules/aws-crt/aws-common-runtime/s2n/tests/unit/s2n_pq_asm_noop_test.c)?
from aws-crt-nodejs.
I am having the same issue.
I can confirm that the file aws-crt/aws-common-runtime/s2n/tests/unit/s2n_pq_asm_noop_test.c
does not exist. Looking at the folder structure their are no test provides in the installed package contents.
from aws-crt-nodejs.
@carmenates09 any updates from you with this issue?
I don't see how I can move forward with using JS with AWS IoT on Raspberry PI without a build/binary for it. The older version of aws-iot-device-sdk
is no longer support and aws-iot-device-sdk-v2
depends on aws-crt.
The only option appears to be to use a different language?
It looks like the last build that works on the raspberry pi is v1.0.4
from aws-crt-nodejs.
I have ordered a pi and it should arrive tomorrow. I will try and make some progress on this once I have it up and running.
from aws-crt-nodejs.
No need for the PI it can be replicated in Docker.
Attached is a Dockerfile that allows build of the 1.0.4. Anything later than that fails.
from aws-crt-nodejs.
v1.2.3 of the v2 sdk has just been released and the source installation related error (s2n test file) should be fixed.
from aws-crt-nodejs.
Related Issues (20)
- Unsubscribing from MQTT topic quickly may cause SEGV HOT 32
- Lambda@Edge SigV4Asymmetric signing issue in Typescript for S3 Multi Region Access point MRAP HOT 4
- MqttConnection should refresh STS credentials for WSS connections on reconnect
- aws-crt mqtt library not working with Webpack 5 HOT 1
- Node and Browser versions of the `iot.AwsIotMqttConnectionConfigBuilder` do not provide the same API HOT 8
- Buffer constructor is deprecated (node) HOT 1
- Migrate browser samples to use aws-sdk v3
- Webpack build warning HOT 4
- Segmentation Fault immediately on require inside Worker threads on Linux HOT 6
- Improve error messages that are returned when an exception is thrown while attempting to subscribe in JS HOT 1
- upgrade axios to 1.x HOT 6
- Add Esbuild support HOT 15
- 'AWS Signer SigV4A Headers' unit test failing HOT 9
- yarn install for aws-crt-nodejs: CMake Error: CMAKE_C_COMPILER not set HOT 11
- Node binaries not loading from binding.js when hoisted to root of node_modules HOT 6
- IoT unsigned custom authentication builder broken HOT 10
- Support `aws-c-s3` HOT 1
- Default provider chain does not support SSO profile-defined credentials HOT 2
- upgrade axios to ^1.6.4 HOT 1
- IoT MQTT5 MqttConnectCustomAuthConfig has invalid typing for custom authorizer + browser HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-crt-nodejs.