New GitHub issue #101295 from mkmoisen:<br>
<hr>
<pre>
# Bug report
Compiling Python 3.11.1 with the `-j` flag will result in an exit code 2, even though Python is successfully installed.
In Python 3.10.x the -j flag results in exit code 0 as expected.
To reproduce:
```
wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz && \
tar xzf Python-3.11.1.tgz && \
cd Python-3.11.1 && \
./configure --enable-optimizations && \
make altinstall -j 8
echo "exit code: $?"
```
This installs Python successfully, but the exit code is 2, not 0:
```
[root@38c4e1f16954 Python-3.11.1]# echo "exit code: $?"
exit code: 2
```
However Python was apparently installed successfully, for example `make` outputs:
```
0:01:40 load avg: 1.38 [43/44] test_xml_etree
0:01:41 load avg: 1.35 [44/44] test_xml_etree_c
Total duration: 1 min 42 sec
Tests result: SUCCESS
```
And we can execute Python without any apparent issue:
```
root@38c4e1f16954 Python-3.11.1]# ./python --version
Python 3.11.1
root@38c4e1f16954 Python-3.11.1]# ./python -c 'print("hello world")'
hello world
```
# Your environment
<!-- Include as many relevant details as possible about the environment you experienced the bug in -->
- CPython versions tested on: 3.11, 3.10x
- Operating system and architecture: RHEL
<!--
You can freely edit this text. Remove any lines you believe are unnecessary.
-->
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/101295">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>