Harris Lee
07/04/2022, 5:48 AM9.17.2
to 10.0.0-beta.60
it causes GLIBC error
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /app/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.so)
is there any fix / recommendation to work around that?Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 6:04 AMroot@05bea7a0a1d7:/app/app# apt list libc6
Listing... Done
libc6/now 2.24-11+deb9u4 amd64 [installed,local]
root@05bea7a0a1d7:/app/app# ldd --version
ldd (Debian GLIBC 2.24-11+deb9u4) 2.24
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Harris Lee
07/04/2022, 6:04 AMHarris Lee
07/04/2022, 6:08 AMHarris Lee
07/04/2022, 6:09 AMnode:14-slim
Harris Lee
07/04/2022, 6:12 AMHarris Lee
07/04/2022, 6:19 AMDebian GNU/Linux 10 (buster)
now it complaints
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 6:23 AMMatt (pactflow.io / pact-js / pact-go)
Timothy Jones
07/04/2022, 10:30 AM.so
file compiled on demand? It could be a problem in the toolchain somewhere.Timothy Jones
07/04/2022, 10:30 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
07/04/2022, 10:41 AMlibpact_ffi.so
<-- is this compiled by the rust thingy, or by the node-gyp machinery? (I forget)Timothy Jones
07/04/2022, 10:45 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
07/04/2022, 10:48 AMHarris Lee
07/04/2022, 10:27 PMHarris Lee
07/04/2022, 10:27 PMTimothy Jones
07/04/2022, 10:28 PMHarris Lee
07/04/2022, 10:31 PMbeta
it was working btwHarris Lee
07/04/2022, 10:32 PMFROM `{THIS IS ORGANISAION AWS}`/node:14-slim
RUN apt-get update -y && \
apt-get install -y git g++ libpq-dev awscli curl && \
curl -L "<https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64>" \
-o /usr/local/bin/cc-test-reporter && \
chmod +x /usr/local/bin/cc-test-reporter && \
rm -rf /var/lib/apt/lists/*
RUN yarn global add aws-cdk@latest typescript ts-node
COPY package.json /app/package.json
COPY yarn.lock /app/yarn.lock
WORKDIR /app
RUN yarn
Timothy Jones
07/04/2022, 10:33 PMTimothy Jones
07/04/2022, 10:33 PMHarris Lee
07/04/2022, 10:35 PM"@pact-foundation/pact": "~9.17.2",
to beta version 10.0.0-beta.60
lolTimothy Jones
07/04/2022, 10:36 PMHarris Lee
07/04/2022, 10:36 PMHarris Lee
07/05/2022, 3:13 AM#9 175.8 make: Entering directory '/app/node_modules/@pact-foundation/pact-core/build'
#9 175.8 CXX(target) Release/obj.target/pact/native/addon.o
#9 175.8 CXX(target) Release/obj.target/pact/native/ffi.o
#9 175.8 CXX(target) Release/obj.target/pact/native/consumer.o
#9 175.8 CXX(target) Release/obj.target/pact/native/provider.o
#9 175.8 CXX(target) Release/obj.target/pact/native/plugin.o
#9 175.8 SOLINK_MODULE(target) Release/obj.target/pact.node
#9 175.8 /usr/bin/ld: skipping incompatible /app/node_modules/@pact-foundation/pact-core/ffi/libpact_ffi.so when searching for -lpact_ffi
#9 175.8 /usr/bin/ld: cannot find -lpact_ffi
#9 175.8 collect2: error: ld returned 1 exit status
#9 175.8 make: *** [<http://pact.target.mk:152|pact.target.mk:152>: Release/obj.target/pact.node] Error 1
#9 175.8 make: Leaving directory '/app/node_modules/@pact-foundation/pact-core/build'
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/05/2022, 3:32 AMdocker build .
command
4. then you can see this error on your terminal 🙂Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/05/2022, 3:34 AMMatt (pactflow.io / pact-js / pact-go)
/usr/bin/ld: skipping incompatible /app/node_modules/@pact-foundation/pact-core/ffi/libpact_ffi.so when searching for -lpact_ffithat’s the key line. Are you running on M1 by any chance?
Harris Lee
07/05/2022, 3:41 AMHarris Lee
07/05/2022, 3:42 AMMatt (pactflow.io / pact-js / pact-go)
docker build --platform linux/amd64 .
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/05/2022, 3:46 AMHarris Lee
07/05/2022, 3:46 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/05/2022, 3:55 AMHarris Lee
07/05/2022, 5:14 AMdocker build --platform linux/amd64 -t test-pact-beta .
4. after build image, run docker run test-pact-beta
Harris Lee
07/05/2022, 5:14 AM/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /app/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.so)
at Runtime._loadModule (node_modules/jest-runtime/build/index.js:893:29)
at bindings (node_modules/bindings/bindings.js:112:48)
at Object.<anonymous> (node_modules/@pact-foundation/pact-core/src/ffi/index.ts:6:21)
Harris Lee
07/05/2022, 5:14 AMHarris Lee
07/05/2022, 6:15 AMnode:18-slim
it does not cause error lol so only node 14, and 16