Build of -m32 fossilize terminating with errors

オープン
#229 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, cpp
領域
build-system, cli

調査の方向性

cli/cli_parser.cpp、特に next_sint()、next_uint()、next_double() から始め、次に CFLAGS=-m32 CXXFLAGS=-m32 cmake .. と cmake --build .. で失敗を再現します。数値解析の呼び出しを、ログに示されている char* 引数型と照合してください。32 ビットビルドが正常に完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

build log
❯ mkdir build32 && cd build32 && CFLAGS=-m32 CXXFLAGS=-m32 cmake .. && CFLAGS=-m32 CXXFLAGS=-m32 cmake --build .
-- The CXX compiler identification is GNU 13.2.1
-- The C compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at cli/SPIRV-Tools/CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- No build type selected, default to Debug
CMake Warning (dev) at cli/SPIRV-Tools/CMakeLists.txt:240 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  cli/SPIRV-Tools/CMakeLists.txt:250 (find_host_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12", minimum required is "3") 
-- Did not find googletest, tests will not be built. To enable tests place googletest in '<spirv-dir>/external/googletest'.
CMake Deprecation Warning at cli/SPIRV-Cross/CMakeLists.txt:22 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- Found Git: /usr/bin/git (found version "2.41.0") 
-- SPIRV-Cross: Git hash: 210a8001
CMake Warning (dev) at cli/SPIRV-Cross/CMakeLists.txt:462 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found version "3.12") 
SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
-- Configuring done (1.4s)
-- Generating done (0.3s)
-- Build files have been written to: /home/mikhail/packaging-work/git/Fossilize/build32
[  1%] Building C object CMakeFiles/miniz.dir/miniz/miniz.c.o
[  1%] Linking C static library libminiz.a
[  1%] Built target miniz
[  1%] Building CXX object CMakeFiles/fossilize.dir/fossilize.cpp.o
[  1%] Building CXX object CMakeFiles/fossilize.dir/fossilize_application_filter.cpp.o
[  2%] Building CXX object CMakeFiles/fossilize.dir/varint.cpp.o
[  2%] Building CXX object CMakeFiles/fossilize.dir/fossilize_db.cpp.o
[  2%] Building CXX object CMakeFiles/fossilize.dir/path.cpp.o
[  2%] Building CXX object CMakeFiles/fossilize.dir/fossilize_external_replayer.cpp.o
[  4%] Linking CXX static library libfossilize.a
[  4%] Built target fossilize
[  4%] Building CXX object layer/CMakeFiles/VkLayer_fossilize.dir/device.cpp.o
[  4%] Building CXX object layer/CMakeFiles/VkLayer_fossilize.dir/instance.cpp.o
[  4%] Building CXX object layer/CMakeFiles/VkLayer_fossilize.dir/dispatch.cpp.o
[  5%] Building CXX object layer/CMakeFiles/VkLayer_fossilize.dir/dispatch_helper.cpp.o
[  5%] Linking CXX shared library libVkLayer_fossilize.so
[  5%] Built target VkLayer_fossilize
[  5%] Building C object cli/CMakeFiles/volk.dir/volk/volk.c.o
[  7%] Linking C static library libvolk.a
[  7%] Built target volk
[  8%] Building CXX object cli/CMakeFiles/cli-utils.dir/cli_parser.cpp.o
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp: In member function ‘int Fossilize::CLIParser::next_sint()’:
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp:83:25: error: invalid initialization of reference of type ‘const std::wstring&’ {aka ‘const std::__cxx11::basic_string<wchar_t>&’} from expression of type ‘char*’
   83 |         auto val = stol(*argv);
      |                         ^~~~~
In file included from /usr/include/c++/13/string:54,
                 from /home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.hpp:26,
                 from /home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp:23:
/usr/include/c++/13/bits/basic_string.h:4265:23: note: in passing argument 1 of ‘long int std::__cxx11::stol(const std::wstring&, std::size_t*, int)’
 4265 |   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp: In member function ‘unsigned int Fossilize::CLIParser::next_uint()’:
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp:104:26: error: invalid initialization of reference of type ‘const std::wstring&’ {aka ‘const std::__cxx11::basic_string<wchar_t>&’} from expression of type ‘char*’
  104 |         auto val = stoul(*argv);
      |                          ^~~~~
/usr/include/c++/13/bits/basic_string.h:4270:24: note: in passing argument 1 of ‘long unsigned int std::__cxx11::stoul(const std::wstring&, std::size_t*, int)’
 4270 |   stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |         ~~~~~~~~~~~~~~~^~~~~
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp: In member function ‘double Fossilize::CLIParser::next_double()’:
/home/mikhail/packaging-work/git/Fossilize/cli/cli_parser.cpp:125:27: error: invalid initialization of reference of type ‘const std::wstring&’ {aka ‘const std::__cxx11::basic_string<wchar_t>&’} from expression of type ‘char*’
  125 |         double val = stod(*argv);
      |                           ^~~~~
/usr/include/c++/13/bits/basic_string.h:4290:23: note: in passing argument 1 of ‘double std::__cxx11::stod(const std::wstring&, std::size_t*)’
 4290 |   stod(const wstring& __str, size_t* __idx = 0)
      |        ~~~~~~~~~~~~~~~^~~~~
gmake[2]: *** [cli/CMakeFiles/cli-utils.dir/build.make:76: cli/CMakeFiles/cli-utils.dir/cli_parser.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:830: cli/CMakeFiles/cli-utils.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
主要言語
C++
スター
800
フォーク
82
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/Fossilize のほかの issue

ValveSoftware/Fossilize の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。