Hi!
I'm trying to create a package for this library https://github.com/pboettch/json-schema-validator .
It's based on CMake so I wrote this simple Makefile, which seems to work ok:
include $(TOPDIR)/rules.mk
PKG_NAME:=json-schema-validator
PKG_VERSION:=2.1.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pboettch/json-schema-validator/
PKG_MIRROR_HASH:=7db957607c770876f127d170d84efcb2d8df53f36106e0035b4a9e0b08581793
PKG_SOURCE_VERSION:=$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/json-schema-validator-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/json-schema-validator-$(PKG_VERSION)
PKG_MAINTAINER:=Matteo Iervasi <matteo.iervasi@edalab.it>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING.LESSER
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/json-schema-validator
SECTION:=libs
CATEGORY:=Libraries
TITLE:=JSON schema validator for JSON for Modern C++
URL:=https://github.com/pboettch/json-schema-validator
DEPENDS:= \
+nlohmannjson \
+libstdcpp
endef
define Package/json-schema-validator/description
This is a C++ library for validating JSON documents based on a JSON Schema which itself should validate with draft-7 of JSON Schema Validation.
endef
CMAKE_OPTIONS+= \
-DBUILD_TESTS:bool=OFF \
-DBUILD_EXAMPLES:bool=OFF \
-DBUILD_SHARED_LIBS:bool=ON \
-DJSON_VALIDATOR_HUNTER:bool=OFF
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/nlohmann
$(CP) $(PKG_INSTALL_DIR)/usr/include/nlohmann/*.hpp $(1)/usr/include/nlohmann
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/cmake
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/* $(1)/usr/lib/cmake
endef
define Package/json-schema-validator/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,json-schema-validator))
$(eval $(call HostBuild))
But when I use it as a dependency in another package, the following error appears:
CMake Error at /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/usr/lib/cmake/nlohmann_json_schema_validator/nlohmann_json_schema_validatorTargets.cmake:74 (message):
The imported target "nlohmann_json_schema_validator" references the file
"/usr/lib/libnlohmann_json_schema_validator.so.2.1.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/usr/lib/cmake/nlohmann_json_schema_validator/nlohmann_json_schema_validatorTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/usr/lib/cmake/nlohmann_json_schema_validator/nlohmann_json_schema_validatorConfig.cmake:12 (include)
CMakeLists.txt:14 (find_package)
I checked the directory and the file is actually there, so I can't understand why this is happening!
As you can see in the Makefile I tried adding host build as done by other packages, but it didn't solve the issue, so I'm not sure how to proceed.
What can I do to solve this issue?
ynezz
March 1, 2022, 3:07pm
2
This looks like host path leakage, which is wrong:
/usr/lib/libnlohmann_json_schema_validator.so.2.1.0
I would guess it's something wrong in that CMakeLists.txt file of that "another package".
I suspect the same, as I tried to brutally copy-paste the compiled library to my host /usr/bin and it picked it.
I can't see what's wrong with the other CMakeLists.txt nor with its Makefile:
include $(TOPDIR)/rules.mk
PKG_NAME:=libdatabase-classes
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@gitlab.com:/edalab/boxio/gateway/libdatabase-classes
PKG_MIRROR_HASH:=cee2091d70475930cbebfcb447d0f1541d8465ed1d8b8f26245860f968fd2f56
PKG_SOURCE_VERSION:=2.0.0
PKG_MAINTAINER:=Matteo Iervasi <matteo.iervasi@edalab.it>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING.LESSER
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libdatabase-classes
SECTION:=libs
CATEGORY:=Libraries
URL:=https://gitlab.com/edalab/boxio/gateway/libdatabase-classes
TITLE:=libdatabase-classes
DEPENDS:= \
+nlohmannjson \
+json-schema-validator \
+qt5-xmlpatterns
endef
define Package/libdatabase-classes/description
Support library fo lse-wsn
endef
CMAKE_OPTIONS+= \
-DBUILD_TESTING:bool=OFF
define Package/libdatabase-classes/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libdatabase-classes))
I just specify the dependency using the DEPENDS
option.
As for the CMakeLists of that project, I just use find_package()
:
cmake_minimum_required(VERSION 3.3.1 FATAL_ERROR)
project(DataBaseClasses CXX)
set(PROJECT_VERSION_MAJOR "2")
set(PROJECT_VERSION_MINOR "0")
set(PROJECT_VERSION_PATCH "0")
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Qt5 COMPONENTS Core Xml XmlPatterns REQUIRED)
find_package(nlohmann_json 3.7.3 REQUIRED)
find_package(nlohmann_json_schema_validator REQUIRED)
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
option(BUILD_TESTING "Build tests" OFF)
option(BUILD_UTILS "Build util executables" OFF)
include(CTest)
qt5_add_resources(resources
resources/schemas.qrc
)
qt5_wrap_cpp(MOC_SRCS
// headers
)
set(DBC_SOURCES
// source file lists
)
set(DBC_BINDINGS
// other source file
)
if(EMSCRIPTEN)
add_executable(DataBaseClasses
${DBC_SOURCES}
${DBC_BINDINGS}
)
else()
add_library(DataBaseClasses
${DBC_SOURCES}
)
endif()
if(NOT EMSCRIPTEN)
add_library(DataBaseClasses::DataBaseClasses ALIAS DataBaseClasses)
endif()
set_target_properties(DataBaseClasses
PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
target_compile_definitions(DataBaseClasses
PRIVATE
PROJECT_VERSION="${PROJECT_VERSION}"
)
target_link_libraries(DataBaseClasses
PRIVATE
Qt5::XmlPatterns
nlohmann_json::nlohmann_json
nlohmann_json_schema_validator
PUBLIC
Qt5::Core
Qt5::Xml
)
if(EMSCRIPTEN)
set_target_properties(DataBaseClasses
PROPERTIES
LINK_FLAGS "-s EXPORT_ES6=1 -s MODULARIZE=1 -s EXPORT_NAME=\"DataBaseClasses\" -s ENVIRONMENT=\"web\" -s ALLOW_MEMORY_GROWTH=1 -s DEMANGLE_SUPPORT=1 --bind"
)
target_include_directories(DataBaseClasses
PRIVATE
${EMSCRIPTEN_ROOT_PATH}/system/include
)
add_custom_target(DataBaseClassesJsTest
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${PROJECT_SOURCE_DIR}/tests/js/index.html
${PROJECT_SOURCE_DIR}/tests/js/DataBaseClassesTest.js
${PROJECT_SOURCE_DIR}/tests/js/NodeTest.js
$<TARGET_FILE_DIR:DataBaseClasses>
SOURCES
${PROJECT_SOURCE_DIR}/tests/js/index.html
${PROJECT_SOURCE_DIR}/tests/js/DataBaseClassesTest.js
${PROJECT_SOURCE_DIR}/tests/js/NodeTest.js
COMMENT "Copying js tests to build directory" VERBATIM)
endif()
# Define headers for this library. PUBLIC headers are used for
# compiling the library, and will be added to consumers' build
# paths.
target_include_directories(DataBaseClasses PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE src ${LIBJSONSCHEMA_INCLUDE_DIRS})
##############################################
# Installation instructions
set(INSTALL_CONFIGDIR lib/cmake/DataBaseClasses)
install(TARGETS DataBaseClasses EXPORT DataBaseClassesTargets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin) # This is for Windows
install(DIRECTORY include/ DESTINATION include)
# This makes the project importable from the install directory
install(EXPORT DataBaseClassesTargets
FILE DataBaseClassesTargets.cmake
NAMESPACE DataBaseClasses::
DESTINATION ${INSTALL_CONFIGDIR}
)
# generate the version file for the config file
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/DataBaseClassesConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/DataBaseClassesConfig.cmake"
INSTALL_DESTINATION ${INSTALL_CONFIGDIR}
)
#Install the config, configversion and custom find modules
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/DataBaseClassesConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/DataBaseClassesConfigVersion.cmake
DESTINATION ${INSTALL_CONFIGDIR}
)
# This makes the project importable from the build directory
export(EXPORT DataBaseClassesTargets
FILE ${CMAKE_CURRENT_BINARY_DIR}/DataBaseClassesTargets.cmake
NAMESPACE DataBaseClasses::
)
# This registers the package with cmake user registry
export(PACKAGE DataBaseClasses)
################ TESTS ##################
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
################ UTILS ##################
if(BUILD_UTILS)
add_subdirectory(utils)
endif()
################# CPACK ###################
# COMMON VARIABLES
set(CPACK_PACKAGE_NAME "libDataBaseClasses")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Library used by LSE for managing the in memory database of a WSN network")
set(CPACK_PACKAGE_VENDOR "EDALab srl")
set(CPACK_PACKAGE_MAINTAINER "EDALab srl")
set(CPACK_PACKAGE_CONTACT "EDALab srl")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
if(UNIX AND NOT APPLE)
set(CPACK_GENERATOR "DEB")
endif()
include(CPack)
Looking at the generated CMake files for json_schema_validator, it appears there's something wrong with _IMPORT_PREFIX
:
# The installation prefix configured by this project.
set(_IMPORT_PREFIX "/usr")
# Create imported target nlohmann_json_schema_validator::nlohmann_json_schema_validator
add_library(nlohmann_json_schema_validator::nlohmann_json_schema_validator SHARED IMPORTED)
set_target_properties(nlohmann_json_schema_validator::nlohmann_json_schema_validator PROPERTIES
INTERFACE_COMPILE_FEATURES "cxx_range_for"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "nlohmann_json::nlohmann_json"
)
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/nlohmann_json_schema_validatorTargets-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()
In the Targets-release.cmake file then is referenced this _IMPORT_PREFIX
using the wrong path:
set_property(TARGET nlohmann_json_schema_validator::nlohmann_json_schema_validator APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(nlohmann_json_schema_validator::nlohmann_json_schema_validator PROPERTIES
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libnlohmann_json_schema_validator.so.2.1.0"
IMPORTED_SONAME_RELEASE "libnlohmann_json_schema_validator.so.1"
)
list(APPEND _IMPORT_CHECK_TARGETS nlohmann_json_schema_validator::nlohmann_json_schema_validator )
list(APPEND _IMPORT_CHECK_FILES_FOR_nlohmann_json_schema_validator::nlohmann_json_schema_validator "${_IMPORT_PREFIX}/lib/libnlohmann_json_schema_validator.so.2.1.0" )
Ok I've solved the problem!
It's the install path used in json-schema-validator that is wrong. Instead of:
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
DESTINATION
${INSTALL_CMAKE_DIR}
)
it should be used:
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
DESTINATION
lib/cmake/${PROJECT_NAME})
)
This way the _IMPORT_PREFIX
gets built correctly and everything goes well.
I have found that order matters in the includes
.
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
is handled differently than
include $(INCLUDE_DIR)/cmake.mk
include $(INCLUDE_DIR)/package.mk
Because of the nature of the expanding variables. If you feel up to testing, maybe swap the order around and see if that also doesn't fix the issue for you? Installation paths and scripts within the fakeroot typically work because the build system understanding it's starting in $(STAGING_DIR_HOST)
Interesting...
I tried swapping those two lines in the json-schema-validator Makefile, but that resulted in not being able to compile the package.
This is the error log:
Collecting package info: done
make[1]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware'
make[2]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/devel/ninja'
mkdir -p /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl
SHELL= flock /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/.ninja-1.10.2.tar.gz.flock -c ' /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/download.pl "/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl" "ninja-1.10.2.tar.gz" "ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed" "" "https://codeload.github.com/ninja-build/ninja/tar.gz/v1.10.2?" '
make[2]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/devel/ninja'
time: package/feeds/packages/ninja/host-compile#0.10#0.04#0.14
make[2]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/devel/meson'
mkdir -p /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl
SHELL= flock /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/.meson-0.56.0.tar.gz.flock -c ' /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/download.pl "/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl" "meson-0.56.0.tar.gz" "291dd38ff1cd55fcfca8fc985181dd39be0d3e5826e5f0013bf867be40117213" "" "https://files.pythonhosted.org/packages/source/m/meson" '
make[2]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/devel/meson'
time: package/feeds/packages/meson/host-compile#0.10#0.04#0.14
make[2]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/package/libs/toolchain'
echo "libc" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libatomic" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/package/libs/toolchain'
time: package/libs/toolchain/compile#0.08#0.03#0.12
make[2]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/libs/nlohmannjson'
mkdir -p /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl
SHELL= flock /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/.nlohmannjson-3.9.1.zip.flock -c ' /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/download.pl "/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl" "nlohmannjson-3.9.1.zip" "a88449d68aab8d027c5beefe911ba217f5ffcc0686ae1793d37f3d20698b37c6" "" "https://codeload.github.com/nlohmann/json/zip/v3.9.1?" '
make[2]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/feeds/packages/libs/nlohmannjson'
time: package/feeds/packages/nlohmannjson/compile#0.13#0.05#0.18
make[2]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/edalab/libs/json-schema-validator'
mkdir -p /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl
SHELL= flock /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/.json-schema-validator-2.1.0.tar.xz.flock -c ' /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/download.pl "/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl" "json-schema-validator-2.1.0.tar.xz" "411106a6c5388a21920294278c8e4beacb7d07d650c6a8f5c240efe63486e271" "" || ( /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/dl_github_archive.py --dl-dir="/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl" --url="https://github.com/pboettch/json-schema-validator/" --version="2.1.0" --subdir="json-schema-validator-2.1.0" --source="json-schema-validator-2.1.0.tar.xz" --hash="411106a6c5388a21920294278c8e4beacb7d07d650c6a8f5c240efe63486e271" || ( echo "Checking out files from the git repository..."; mkdir -p /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/dl && cd /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/dl && rm -rf json-schema-validator-2.1.0 && [ \! -d json-schema-validator-2.1.0 ] && git clone https://github.com/pboettch/json-schema-validator/ json-schema-validator-2.1.0 && (cd json-schema-validator-2.1.0 && git checkout 2.1.0 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd json-schema-validator-2.1.0 && git log -1 --format='\''@%ct'\''` && rm -rf json-schema-validator-2.1.0/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c json-schema-validator-2.1.0 | xz -zc -7e > /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/dl/json-schema-validator-2.1.0.tar.xz && mv /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/tmp/dl/json-schema-validator-2.1.0.tar.xz /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl/ && rm -rf json-schema-validator-2.1.0; ); ) '
touch /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.prepared_4f256bbfd68c4105d02f642f161516b8_6664517399ebbbc92a37c5bb081b5c53_check
. /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/include/shell.sh; xzcat /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/dl/json-schema-validator-2.1.0.tar.xz | tar -C /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0
touch /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.prepared_4f256bbfd68c4105d02f642f161516b8_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.configured_*
rm -f /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/target-mipsel_24kc_musl/stamp/.json-schema-validator_installed
(cd /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/./; if [ -x ./configure ]; then find /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/ -name config.guess | xargs -r chmod u+w; find /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/ -name config.guess | xargs -r -n1 cp --remove-destination /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/config.guess; find /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/ -name config.sub | xargs -r chmod u+w; find /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/ -name config.sub | xargs -r -n1 cp --remove-destination /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include/fortify -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include " LDFLAGS="-L/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -znow -zrelro " ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.built
touch /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include/fortify -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include/fortify -I/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include " LDFLAGS="-L/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -znow -zrelro " make -j1 -C /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0=json-schema-validator-2.1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" ;
make[3]: Entering directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0'
make[2]: *** [Makefile:65: /home/matteo/Documents/EDAlab/Dusun/dusun-firmware/build_dir/target-mipsel_24kc_musl/json-schema-validator-2.1.0/.built] Error 2
make[2]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/edalab/libs/json-schema-validator'
time: package/feeds/edalab/json-schema-validator/compile#0.09#0.05#0.14
ERROR: package/feeds/edalab/json-schema-validator failed to build.
make[1]: *** [package/Makefile:116: package/feeds/edalab/json-schema-validator/compile] Error 1
make[1]: Leaving directory '/home/matteo/Documents/EDAlab/Dusun/dusun-firmware'
make: *** [/home/matteo/Documents/EDAlab/Dusun/dusun-firmware/include/toplevel.mk:230: package/feeds/edalab/libdatabase-classes/compile] Error 2
system
Closed
March 14, 2022, 6:06pm
8
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.