1

使用了以下选项

  1. ./bootstrap.sh--with-toolset=qcc

  2. b2工具集=qcc target-os=qnxnto threadapi=pthread link=static -l240 --layout=system --without-python cxxflags="-Vgcc_ntoarmv7le -Y_gpp -Wc,-std=gnu++0x -D_LITTLE_ENDIAN" linkflags=" -Vgcc_ntoarmv7le -Y_gpp -lang-c++" -j7

看到以下错误


qcc.compile.c++ bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o libs\filesystem\src\operations.cpp: In function 'void boost::filesystem::detail::permissions(const boost::filesystem::path&, boost::filesystem::perms, boost::system::error_code*)': libs\filesystem\src\operations.cpp:1486:11: error: '::fchmodat' has not been declared
       if (::fchmodat(AT_FDCWD, p.c_str(), mode_cast(prms),
           ^ cc: C:/Users/bilahari.akkiraju/qnx700/host/win64/x86_64/usr/lib/gcc/arm-unknown-nto-qnx7.0.0eabi/5.4.0/cc1plus caught signal 1
    "QCC" -Wc,-ftemplate-depth-128 -Vgcc_ntoarmv7le -Y_gpp -Wc,-std=gnu++0x -D_LITTLE_ENDIAN -O3 -Wc,-finline-functions -Wc,-Wno-inline -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o" "libs\filesystem\src\operations.cpp"
...failed qcc.compile.c++ bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o... ...skipped <pbin.v2\libs\filesystem\build\qcc\release\link-static>libboost_filesystem.a for lack of <pbin.v2\libs\filesystem\build\qcc\release\link-static>operations.o... ...skipped <pstage\lib>libboost_filesystem.a for lack of <pbin.v2\libs\filesystem\build\qcc\release\link-static>libboost_filesystem.a ...failed updating 1 target ...skipped 2 targets...

在我的 windows 10 机器上构建,关于如何解决这个问题的任何想法?

4

1 回答 1

1

我也有同样的问题。这是由于 boost 调用了 QNX 7 或更早版本中不存在的函数。

这个问题有一个可能的解决方案的错误条目: https ://github.com/boostorg/filesystem/issues/89

简而言之:在第 1482 行为 Boost 1.68.0 的“filesystem/src/operations.cpp”中的函数“permissions”中添加以下行:

&& !(defined(__QNX__) && (_NTO_VERSION <= 700)) \

请注意,对 QNX 7 或更早版本 (_NTO_VERSION) 进行版本检查。修改未来版本(参见_NTO_VERSION 描述)。

此致

于 2018-11-12T14:09:54.737 回答