This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4: : makefile:167: recipe for target 'post-build' failed

Part Number: AM263P4


Tool/software:

I received AM263Px LaunchPad Development Kit now and installed Code Compser Studio from TI Web.

I am testing 'hello_world" but below problems.

Output message is 

103] Boot multi-core ELF image: am263px:r5fss0-0:freertos:ti-arm-clang C:/Users/hkmoo/workspace_ccstheia/hello_world_am263px-lp_r5fss0-0_freertos_ti-arm-clang/Release/hello_world_am263px-lp_r5fss0-0_freertos_ti-arm-clang.mcelf ...
[104]python C:/ti/mcu_plus_sdk_am263px_10_01_00_31/tools/boot/multicore-elf/genimage.py --core-img=0:Release/hello_world_am263px-lp_r5fss0-0_freertos_ti-arm-clang.out --output=C:/Users/hkmoo/workspace_ccstheia/hello_world_am263px-lp_r5fss0-0_freertos_ti-arm-clang/Release/hello_world_am263px-lp_r5fss0-0_freertos_ti-arm-clang.mcelf --merge-segments=true --tolerance-limit=0 --ignore-context=false --xip=0x60000000:0x68000000 --xlat="" --max_segment_size=8192
[105]makefile_ccs_bootimage_gen:87: recipe for target 'all' failed
[106]Python gmake[3]: *** [all] Error 9009
[107]makefile:167: recipe for target 'post-build' failed
[108]gmake[2]: [post-build] Error 2 (ignored)

Please check and guide to me.

  • Hi Hong,

    Apologies you had to face this issue. From the first looks of it, it is pointing to missing dependency of cypyptography python module

  • Please make sure you have installed all the dependency mentioned in requirements.txt file present in SDK:C:\ti\mcu_plus_sdk_am263px_10_01_00_27\requirements.txt

    bcrypt==4.2.1
    cffi==1.17.1
    construct==2.10.70
    cryptography==2.8
    paramiko==2.9.3
    pycparser==2.22
    pyelftools==0.31
    PyNaCl==1.5.0
    pyserial==3.5
    six==1.16.0
    tqdm==4.67.1
    xmodem==0.4.7
  • I installed "C:\ti\mcu_plus_sdk_am263px_10_01_00_31>python -m pip install -r requirements.txt --proxy=" and still below error message now.

    Please guide me.

    C:\ti\mcu_plus_sdk_am263px_10_01_00_31>python -m pip install -r requirements.txt --proxy=
    Collecting bcrypt==4.2.1 (from -r requirements.txt (line 1))
    Using cached bcrypt-4.2.1-cp39-abi3-win_amd64.whl.metadata (10 kB)
    Collecting cffi==1.17.1 (from -r requirements.txt (line 2))
    Using cached cffi-1.17.1-cp313-cp313-win_amd64.whl.metadata (1.6 kB)
    Collecting construct==2.10.70 (from -r requirements.txt (line 3))
    Using cached construct-2.10.70-py3-none-any.whl.metadata (4.2 kB)
    Collecting cryptography==2.8 (from -r requirements.txt (line 4))
    Using cached cryptography-2.8.tar.gz (504 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Preparing metadata (pyproject.toml) ... done
    Collecting paramiko==2.9.3 (from -r requirements.txt (line 5))
    Using cached paramiko-2.9.3-py2.py3-none-any.whl.metadata (4.6 kB)
    Collecting pycparser==2.22 (from -r requirements.txt (line 6))
    Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
    Collecting pyelftools==0.31 (from -r requirements.txt (line 7))
    Using cached pyelftools-0.31-py3-none-any.whl.metadata (381 bytes)
    Collecting PyNaCl==1.5.0 (from -r requirements.txt (line 8))
    Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl.metadata (8.7 kB)
    Requirement already satisfied: pyserial==3.5 in c:\users\hkmoo\appdata\local\programs\python\python313\lib\site-packages (from -r requirements.txt (line 9)) (3.5)
    Collecting six==1.16.0 (from -r requirements.txt (line 10))
    Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
    Requirement already satisfied: tqdm==4.67.1 in c:\users\hkmoo\appdata\local\programs\python\python313\lib\site-packages (from -r requirements.txt (line 11)) (4.67.1)
    Requirement already satisfied: xmodem==0.4.7 in c:\users\hkmoo\appdata\local\programs\python\python313\lib\site-packages (from -r requirements.txt (line 12)) (0.4.7)
    Requirement already satisfied: colorama in c:\users\hkmoo\appdata\local\programs\python\python313\lib\site-packages (from tqdm==4.67.1->-r requirements.txt (line 11)) (0.4.6)
    Using cached bcrypt-4.2.1-cp39-abi3-win_amd64.whl (153 kB)
    Using cached cffi-1.17.1-cp313-cp313-win_amd64.whl (182 kB)
    Using cached construct-2.10.70-py3-none-any.whl (63 kB)
    Using cached paramiko-2.9.3-py2.py3-none-any.whl (210 kB)
    Using cached pycparser-2.22-py3-none-any.whl (117 kB)
    Using cached pyelftools-0.31-py3-none-any.whl (180 kB)
    Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl (212 kB)
    Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
    Building wheels for collected packages: cryptography
    Building wheel for cryptography (pyproject.toml) ... error
    error: subprocess-exited-with-error

    × Building wheel for cryptography (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [138 lines of output]
    <string>:14: DeprecationWarning: pkg_resources is deprecated as an API. See setuptools.pypa.io/.../pkg_resources.html
    running bdist_wheel
    running build
    running build_py
    creating build\lib.win-amd64-cpython-313\cryptography
    copying src\cryptography\exceptions.py -> build\lib.win-amd64-cpython-313\cryptography
    copying src\cryptography\fernet.py -> build\lib.win-amd64-cpython-313\cryptography
    copying src\cryptography\utils.py -> build\lib.win-amd64-cpython-313\cryptography
    copying src\cryptography\__about__.py -> build\lib.win-amd64-cpython-313\cryptography
    copying src\cryptography\__init__.py -> build\lib.win-amd64-cpython-313\cryptography
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat
    copying src\cryptography\hazmat\_der.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat
    copying src\cryptography\hazmat\_oid.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat
    copying src\cryptography\hazmat\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat
    creating build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\base.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\certificate_transparency.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\extensions.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\general_name.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\name.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\ocsp.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\oid.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    copying src\cryptography\x509\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\x509
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\backends
    copying src\cryptography\hazmat\backends\interfaces.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends
    copying src\cryptography\hazmat\backends\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings
    copying src\cryptography\hazmat\bindings\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\cmac.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\constant_time.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\hashes.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\hmac.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\keywrap.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\padding.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\poly1305.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\aead.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\backend.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ciphers.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\cmac.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\decode_asn1.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\dh.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\dsa.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ec.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ed25519.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ed448.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\encode_asn1.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\hashes.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\hmac.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ocsp.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\poly1305.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\rsa.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\utils.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\x25519.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\x448.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\x509.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\backends\openssl
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\binding.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\_conditional.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\bindings\openssl
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\dh.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\dsa.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\ec.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\ed25519.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\ed448.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\padding.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\rsa.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\utils.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\x25519.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\x448.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\asymmetric
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\aead.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\algorithms.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\base.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\modes.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\ciphers
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\concatkdf.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\hkdf.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\kbkdf.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\pbkdf2.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\scrypt.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\x963kdf.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\kdf
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\serialization
    copying src\cryptography\hazmat\primitives\serialization\base.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\serialization
    copying src\cryptography\hazmat\primitives\serialization\pkcs12.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\serialization
    copying src\cryptography\hazmat\primitives\serialization\ssh.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\serialization
    copying src\cryptography\hazmat\primitives\serialization\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\serialization
    creating build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\hotp.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\totp.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\utils.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\__init__.py -> build\lib.win-amd64-cpython-313\cryptography\hazmat\primitives\twofactor
    running egg_info
    writing src\cryptography.egg-info\PKG-INFO
    writing dependency_links to src\cryptography.egg-info\dependency_links.txt
    writing requirements to src\cryptography.egg-info\requires.txt
    writing top-level names to src\cryptography.egg-info\top_level.txt
    reading manifest file 'src\cryptography.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs\_build'
    warning: no previously-included files found matching 'vectors'
    warning: no previously-included files matching '*' found under directory 'vectors'
    warning: no previously-included files found matching 'azure-pipelines.yml'
    warning: no previously-included files found matching '.azure-pipelines'
    warning: no previously-included files found matching '.travis.yml'
    warning: no previously-included files found matching '.travis'
    warning: no previously-included files matching '*' found under directory '.azure-pipelines'
    warning: no previously-included files matching '*' found under directory '.travis'
    warning: no previously-included files found matching 'release.py'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files found matching 'dev-requirements.txt'
    warning: no previously-included files found matching 'rtd-requirements.txt'
    warning: no previously-included files found matching 'tox.ini'
    adding license file 'LICENSE'
    adding license file 'LICENSE.APACHE'
    adding license file 'LICENSE.BSD'
    adding license file 'LICENSE.PSF'
    adding license file 'AUTHORS.rst'
    writing manifest file 'src\cryptography.egg-info\SOURCES.txt'
    running build_ext
    generating cffi module 'build\\temp.win-amd64-cpython-313\\Release\\_padding.c'
    creating build\temp.win-amd64-cpython-313\Release
    generating cffi module 'build\\temp.win-amd64-cpython-313\\Release\\_constant_time.c'
    generating cffi module 'build\\temp.win-amd64-cpython-313\\Release\\_openssl.c'
    building '_openssl' extension
    creating build\temp.win-amd64-cpython-313\Release\build\temp.win-amd64-cpython-313\Release
    "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\hkmoo\AppData\Local\Programs\Python\Python313\include -IC:\Users\hkmoo\AppData\Local\Programs\Python\Python313\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.43.34808\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.43.34808\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcbuild\temp.win-amd64-cpython-313\Release\_openssl.c /Fobuild\temp.win-amd64-cpython-313\Release\build\temp.win-amd64-cpython-313\Release\_openssl.obj
    _openssl.c
    build\temp.win-amd64-cpython-313\Release\_openssl.c(579): fatal error C1083: 포함 파일을 열 수 없습니다. 'openssl/opensslv.h': No such file or directory
    error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for cryptography
    Failed to build cryptography
    ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography)

    C:\ti\mcu_plus_sdk_am263px_10_01_00_31>

  • Hi ,

    1. Make sure you have Openssl v3.x installed

    2, If you are facing issues installing cryptography v2.8, you can install whatever latest version is available with pip package manager

    After that restart your CCS/build terminal and try again.

    Hope this helps.

    Regards,
    Shaunak