microsoft / microsoft/msix-packaging

[BUG] Unable to compile on Linux / Clang 16.0.6

Open
#596 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-MSIX SDK Bug
Dominant language
C
Stars
1.1k
Forks
193
Avg merge
2h 16m
Merged PRs (30d)
2

Description

Command: ./makelinux.sh

[ 94%] Building CXX object src/msix/CMakeFiles/msix.dir/common/MSIXResource.cpp.o
[ 95%] Building CXX object src/msix/CMakeFiles/msix.dir/common/Log.cpp.o
[ 95%] Building CXX object src/msix/CMakeFiles/msix.dir/common/UnicodeConversion.cpp.o
[ 95%] Building CXX object src/msix/CMakeFiles/msix.dir/common/Encoding.cpp.o
In file included from /var/home/haecker-felix/Downloads/msix-packaging-MSIX-Core-1.2-release/src/msix/common/Encoding.cpp:11:
/var/home/haecker-felix/Downloads/msix-packaging-MSIX-Core-1.2-release/src/inc/internal/Encoding.hpp:14:50: error: use of undeclared identifier 'uint8_t'
    std::string Base32Encoding(const std::vector<uint8_t>& bytes);
                                                 ^
/var/home/haecker-felix/Downloads/msix-packaging-MSIX-Core-1.2-release/src/inc/internal/Encoding.hpp:15:22: error: no member named 'uint8_t' in namespace 'std'
    std::vector<std::uint8_t> GetBase64DecodedValue(const std::string& value);
                ~~~~~^
2 errors generated.
make[2]: *** [src/msix/CMakeFiles/msix.dir/build.make:146: src/msix/CMakeFiles/msix.dir/common/Encoding.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:567: src/msix/CMakeFiles/msix.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
clang version 16.0.6 (Fedora 16.0.6-2.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/inc/internal/Encoding.hpp and the failing src/msix/common/Encoding.cpp build step shown in the report. Run ./makelinux.sh with Clang 16.0.6 to reproduce the undeclared uint8_t errors; done means the Linux build completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, linux
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.