You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/18 14:36:12 UTC

[GitHub] [pulsar] tisonkun created a discussion: Strange failure when build Pulsar Docker image on M1

GitHub user tisonkun created a discussion: Strange failure when build Pulsar Docker image on M1

When debugging https://github.com/apache/pulsar/issues/12944, I encounter several strange failures. Here I'll share them and see if others encounter them also.

NOTE: These failures don't exist in CI. Thus I think they're strange.

1. `cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent`

```
[INFO] DOCKER> Step 14/25 : ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in a47a209de148
[INFO] DOCKER> Removing intermediate container a47a209de148
[INFO] DOCKER> ---> 6a9d5c8543b8
[INFO] DOCKER> Step 15/25 : RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in d55c15e90ed1
[INFO] DOCKER> [91m/bin/sh: 1: cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent

[INFO] DOCKER> Removing intermediate container d55c15e90ed1
[ERROR] DOCKER> Unable to build image [apachepulsar/java-test-image] : "The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2"  ["The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2" ]
```

After add `RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/security` before `RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security` in `docker/pulsar/Dockerfile` and `test/docker-images/java-test-image/Dockerfile`, this issue vanished.

2. `FileNotFoundError: [Errno 2] No such file or directory: 'cc'`

```
File "/tmp/pip-install-od2wltzl/grpcio/setup.py", line 149, in check_linker_need_libatomic
cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'],
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cc'
```

See details in https://github.com/apache/pulsar/issues/12944#issuecomment-1219300666.

Does `ubuntu:20.04` contain `cc`? If so, why does it fail on my local env. If not, why does it succeed in CI?

3. After I add `gcc` in the `apt install` list, it can find `cc`, but later it fails with `Python.h not found`.
4. After I add `python-dev` in the `apt install` list, it still fails with `Python.h not found`.

cc @lhotari @nodece @michaeljmarshall 

GitHub link: https://github.com/apache/pulsar/discussions/17166

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

For grpcio issues, we may try to upgrade the version if there's no regression. It seems we should upgrade the one inside bookkeeper first.

grpcio-1.47.0 doesn't require c++ compilation on ARM64:

```
$ pip3 install grpcio  
Collecting grpcio
  Using cached grpcio-1.47.0-cp310-cp310-macosx_12_0_arm64.whl
Requirement already satisfied: six>=1.5.2 in /opt/homebrew/lib/python3.10/site-packages (from grpcio) (1.16.0)
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0
$ arch
arm64
```

Reference:

* https://github.com/apache/bookkeeper/pull/2432
* https://github.com/apache/pulsar/issues/7477
* https://github.com/grpc/grpc/pull/25418

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424343

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Cool! Those sound reasonable. Multi-arch is hard >_<

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424326

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

For grpcio issues, we may try to upgrade the version if there's no regression. It seems we should upgrade the one inside bookkeeper first.

grpcio-1.47.0 still requires c++ compilation on ARM64:

```
$ pip3 install --no-cache-dir grpcio
Collecting grpcio
  Downloading grpcio-1.47.0.tar.gz (21.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.9/21.9 MB 3.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: six>=1.5.2 in /opt/homebrew/lib/python3.10/site-packages (from grpcio) (1.16.0)
Building wheels for collected packages: grpcio
  Building wheel for grpcio (setup.py) ... done
  Created wheel for grpcio: filename=grpcio-1.47.0-cp310-cp310-macosx_12_0_arm64.whl size=3782471 sha256=6f3f24c7454a7d9f2c3af8f1605b44c1ceffb6297220caeb2b849279b4ae1b7f
  Stored in directory: /private/var/folders/n2/rnpcrm6x3mb2c1jn1dkdb33c0000gn/T/pip-ephem-wheel-cache-uf4eynha/wheels/52/6c/59/4d81bb3e311148848df61c2eed3aac904414f3d18dcf365ace
Successfully built grpcio
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0
$ arch
arm64
```

Reference:

* https://github.com/apache/bookkeeper/pull/2432
* https://github.com/apache/pulsar/issues/7477
* https://github.com/grpc/grpc/pull/25418

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424343

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

For grpcio issues, we may try to upgrade the version if there's no regression. It seems we should upgrade the one inside bookkeeper first.

grpcio-1.47.0 doesn't require c++ compilation:

```
$ pip3 install grpcio  
Collecting grpcio
  Using cached grpcio-1.47.0-cp310-cp310-macosx_12_0_arm64.whl
Requirement already satisfied: six>=1.5.2 in /opt/homebrew/lib/python3.10/site-packages (from grpcio) (1.16.0)
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0
```

Reference:

* https://github.com/apache/bookkeeper/pull/2432
* https://github.com/grpc/grpc/pull/25418

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424343

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

For grpcio issues, we may try to upgrade the version if there's no regression. It seems we should upgrade the one inside bookkeeper first.

Reference:

* https://github.com/apache/bookkeeper/pull/2432
* https://github.com/grpc/grpc/pull/25418

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424343

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] BewareMyPower added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user BewareMyPower added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Oh it's right. The current grpcio version is 1.28, see https://github.com/apache/pulsar/blob/e16a35dbc5b18c45ab9549b5143d849958b996a7/pulsar-client-cpp/python/setup.py#L86

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424385

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

For grpcio issues, we may try to upgrade the version if there's no regression. It seems we should upgrade the one inside bookkeeper first.

grpcio-1.47.0 doesn't require c++ compilation on ARM64:

```
$ pip3 install grpcio  
Collecting grpcio
  Using cached grpcio-1.47.0-cp310-cp310-macosx_12_0_arm64.whl
Requirement already satisfied: six>=1.5.2 in /opt/homebrew/lib/python3.10/site-packages (from grpcio) (1.16.0)
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0
$ arch
arm64
```

Reference:

* https://github.com/apache/bookkeeper/pull/2432
* https://github.com/grpc/grpc/pull/25418

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424343

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] BewareMyPower edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user BewareMyPower edited a comment on the discussion: Strange failure when build Pulsar Docker image on M1

Oh it's right. The current grpcio version is 1.27, see https://github.com/apache/pulsar/blob/e16a35dbc5b18c45ab9549b5143d849958b996a7/pulsar-client-cpp/python/setup.py#L86

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424385

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

UPDATED: These issues should be all answered by https://github.com/apache/pulsar/issues/12944#issuecomment-1103444708.

When debugging https://github.com/apache/pulsar/issues/12944, I encounter several strange failures. Here I'll share them and see if others encounter them also.

NOTE: These failures don't exist in CI. Thus I think they're strange.

1. `cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent`

```
[INFO] DOCKER> Step 14/25 : ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in a47a209de148
[INFO] DOCKER> Removing intermediate container a47a209de148
[INFO] DOCKER> ---> 6a9d5c8543b8
[INFO] DOCKER> Step 15/25 : RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in d55c15e90ed1
[INFO] DOCKER> [91m/bin/sh: 1: cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent

[INFO] DOCKER> Removing intermediate container d55c15e90ed1
[ERROR] DOCKER> Unable to build image [apachepulsar/java-test-image] : "The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2"  ["The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2" ]
```

After add `RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/security` before `RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security` in `docker/pulsar/Dockerfile` and `test/docker-images/java-test-image/Dockerfile`, this issue vanished.

2. `FileNotFoundError: [Errno 2] No such file or directory: 'cc'`

```
File "/tmp/pip-install-od2wltzl/grpcio/setup.py", line 149, in check_linker_need_libatomic
cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'],
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cc'
```

See details in https://github.com/apache/pulsar/issues/12944#issuecomment-1219300666.

Does `ubuntu:20.04` contain `cc`? If so, why does it fail on my local env. If not, why does it succeed in CI?

3. After I add `gcc` in the `apt install` list, it can find `cc`, but later it fails with `Python.h not found`.
4. After I add `python-dev` in the `apt install` list, it still fails with `Python.h not found`.

cc @lhotari @nodece @michaeljmarshall 

GitHub link: https://github.com/apache/pulsar/discussions/17166

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] BewareMyPower added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user BewareMyPower added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

You can debug it by executing the commands inside the ubuntu:20.04 container.

```bash
docker run -it -v $PWD:/pulsar ubuntu:20.04
```

---- 

Regarding the 1st question, I think it's caused by https://github.com/apache/pulsar/blob/e16a35dbc5b18c45ab9549b5143d849958b996a7/docker/pulsar/Dockerfile#L80.

The directory might not be java-17-openjdk-**amd64**.

Regarding the 2nd question, yes, it doesn't contain `cc` by default. I think the problem happened during `pip3 install grpcio`. I suspect gRPC must be compiled from source in ARM arch (the arch of docker container is the same with the host) so it requires the GCC. Here are the outputs in my env, no C++ compilation is needed.

```bash
$ pip3 install grpcio
Collecting grpcio
  Downloading grpcio-1.47.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
     |████████████████████████████████| 4.5 MB 16 kB/s 
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from grpcio) (1.14.0)
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0
```

Regarding the 4th question, first you should install `python3-dev` because `python-dev` is for Python2. Then, the `python3-dev` is installed to `/usr/local/python3.8` directory, which is not included in the default search path of GCC.

Maybe you can set the `C_INCLUDE_PATH` environment variable. See the following commands and outputs in my container:

```bash
$ ls /usr/include/python3.8/Python.h 
/usr/include/python3.8/Python.h
$ cat 1.c
#include <Python.h>

int main() {
	return 0;
}
$ gcc 1.c
1.c:1:10: fatal error: Python.h: No such file or directory
    1 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
$ C_INCLUDE_PATH=/usr/include/python3.8 gcc 1.c
$ echo $?
0
```

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424174

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

**UPDATED: These issues should be all answered by https://github.com/apache/pulsar/issues/12944#issuecomment-1103444708.**

---

When debugging https://github.com/apache/pulsar/issues/12944, I encounter several strange failures. Here I'll share them and see if others encounter them also.

NOTE: These failures don't exist in CI. Thus I think they're strange.

1. `cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent`

```
[INFO] DOCKER> Step 14/25 : ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in a47a209de148
[INFO] DOCKER> Removing intermediate container a47a209de148
[INFO] DOCKER> ---> 6a9d5c8543b8
[INFO] DOCKER> Step 15/25 : RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in d55c15e90ed1
[INFO] DOCKER> [91m/bin/sh: 1: cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent

[INFO] DOCKER> Removing intermediate container d55c15e90ed1
[ERROR] DOCKER> Unable to build image [apachepulsar/java-test-image] : "The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2"  ["The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2" ]
```

After add `RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/security` before `RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security` in `docker/pulsar/Dockerfile` and `test/docker-images/java-test-image/Dockerfile`, this issue vanished.

2. `FileNotFoundError: [Errno 2] No such file or directory: 'cc'`

```
File "/tmp/pip-install-od2wltzl/grpcio/setup.py", line 149, in check_linker_need_libatomic
cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'],
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cc'
```

See details in https://github.com/apache/pulsar/issues/12944#issuecomment-1219300666.

Does `ubuntu:20.04` contain `cc`? If so, why does it fail on my local env. If not, why does it succeed in CI?

3. After I add `gcc` in the `apt install` list, it can find `cc`, but later it fails with `Python.h not found`.
4. After I add `python-dev` in the `apt install` list, it still fails with `Python.h not found`.

cc @lhotari @nodece @michaeljmarshall 

GitHub link: https://github.com/apache/pulsar/discussions/17166

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun edited a discussion: Strange failure when build Pulsar Docker image on M1

These issues should be all answered by https://github.com/apache/pulsar/issues/12944#issuecomment-1103444708.

When debugging https://github.com/apache/pulsar/issues/12944, I encounter several strange failures. Here I'll share them and see if others encounter them also.

NOTE: These failures don't exist in CI. Thus I think they're strange.

1. `cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent`

```
[INFO] DOCKER> Step 14/25 : ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in a47a209de148
[INFO] DOCKER> Removing intermediate container a47a209de148
[INFO] DOCKER> ---> 6a9d5c8543b8
[INFO] DOCKER> Step 15/25 : RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
[INFO] DOCKER> 
[INFO] DOCKER> ---> Running in d55c15e90ed1
[INFO] DOCKER> [91m/bin/sh: 1: cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent

[INFO] DOCKER> Removing intermediate container d55c15e90ed1
[ERROR] DOCKER> Unable to build image [apachepulsar/java-test-image] : "The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2"  ["The command '/bin/sh -c echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security' returned a non-zero code: 2" ]
```

After add `RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/security` before `RUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security` in `docker/pulsar/Dockerfile` and `test/docker-images/java-test-image/Dockerfile`, this issue vanished.

2. `FileNotFoundError: [Errno 2] No such file or directory: 'cc'`

```
File "/tmp/pip-install-od2wltzl/grpcio/setup.py", line 149, in check_linker_need_libatomic
cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'],
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cc'
```

See details in https://github.com/apache/pulsar/issues/12944#issuecomment-1219300666.

Does `ubuntu:20.04` contain `cc`? If so, why does it fail on my local env. If not, why does it succeed in CI?

3. After I add `gcc` in the `apt install` list, it can find `cc`, but later it fails with `Python.h not found`.
4. After I add `python-dev` in the `apt install` list, it still fails with `Python.h not found`.

cc @lhotari @nodece @michaeljmarshall 

GitHub link: https://github.com/apache/pulsar/discussions/17166

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

Posted by GitBox <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: Strange failure when build Pulsar Docker image on M1

I think it's 1.27 :)

GitHub link: https://github.com/apache/pulsar/discussions/17166#discussioncomment-3424407

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org