Skip to content

Instructions for submodule initialization are missing --recurse-submodules #10547

@enghitalo

Description

@enghitalo

WARNING: if the bug you are reporting has or may have security implications,
we ask that you report it privately to
[email protected]
so that we can prepare and release a fix before publishing the details.
See SECURITY.md.

Summary

System information

Linux hitalo 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug  2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

|:-------------------|:-------------------
|OS                  |linux, Ubuntu 24.04 LTS
|Processor           |16 cpus, 64bit, little endian, AMD Ryzen 7 5800H with Radeon Graphics
|Memory              |13.01GB/30.7GB
|                    |
|cc version          |cc (GCC) 14.2.0
|gcc version         |gcc (GCC) 14.2.0
|clang version       |Ubuntu clang version 18.1.3 (1)
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.1 (89ce854a99238d04116a3d9b5afe241eec90c6c3)
|glibc version       |ldd (Ubuntu GLIBC 2.39-0ubuntu8.3) 2.39

Mbed TLS version (number or commit id):
Operating system and version:
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:

Expected behavior

Not error

Actual behavior

*WARNING: if the actual behaviour suggests memory corruption (like a crash or an error
from a memory checker), then the bug should be assumed to have security
implications (until proven otherwise), and we ask what you report it privately,
see the note at the top of this template.

  • with cmake
CMake Error at tf-psa-crypto/CMakeLists.txt:349 (message):
  /home/hitalo/mbedtls/tf-psa-crypto/framework/CMakeLists.txt not found.  Run
  `git submodule update --init` from the source tree to fetch the submodule
  contents.


-- Configuring incomplete, errors occurred!
  • with make
make: *** No targets specified and no makefile found.  Stop.

Steps to reproduce

git clone https://github.com/Mbed-TLS/mbedtls.git
cd mbedtls
git submodule update --init
cmake .

Additional information

  • ls /home/hitalo/mbedtls/tf-psa-crypto/framework return empty
  • tree tree -a -P "*make*" --prune .
.
├── cmake
│   └── MbedTLSConfig.cmake.in
├── CMakeFiles
│   ├── 3.28.3
│   │   ├── CMakeCCompiler.cmake
│   │   └── CMakeSystem.cmake
│   └── cmake.check_cache
├── framework
│   ├── exported.make
│   └── scripts
│       ├── make_generated_files.py
│       └── quiet
│           ├── cmake
│           └── make
├── pkgconfig
│   └── JoinPaths.cmake
├── programs
│   └── test
│       ├── cmake_package
│       │   └── cmake_package.c
│       ├── cmake_package_install
│       │   └── cmake_package_install.c
│       └── cmake_subproject
│           └── cmake_subproject.c
├── scripts
│   ├── common.make
│   ├── legacy.make
│   ├── make_generated_files.bat
│   └── tmp_ignore_makefiles.sh
├── tests
│   └── make-in-docker.sh
└── tf-psa-crypto
    ├── ChangeLog.d
    │   └── cmake-package-version.txt
    ├── cmake
    │   └── TF-PSA-CryptoConfig.cmake.in
    ├── drivers
    │   └── driver.cmake
    ├── pkgconfig
    │   └── JoinPaths.cmake
    └── programs
        └── test
            ├── cmake_package
            │   └── cmake_package.c
            ├── cmake_package_install
            │   └── cmake_package_install.c
            └── cmake_subproject
                └── cmake_subproject.c

25 directories, 24 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsize-xsEstimated task size: extra small (a few hours at most)

    Type

    Projects

    Status

    1.0 Bugfixes

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions