Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error: fmicontext.hpp #89

Open
xmirabel opened this issue May 15, 2023 · 3 comments
Open

Compilation error: fmicontext.hpp #89

xmirabel opened this issue May 15, 2023 · 3 comments

Comments

@xmirabel
Copy link

xmirabel commented May 15, 2023

A compilation error occurs in src/proxyfmu/fmi/fmicontext.hpp

It is needed to add the following headers:
#include <cstdlib>
#include <cstdio>
#include <array>

@markaren
Copy link
Collaborator

Which compiler and language version are you using?

@xmirabel
Copy link
Author

Hello, thank you for your attention.
gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.

@xmirabel
Copy link
Author

cmake --build .
Current proxyfmu version: 0.3.2

-- Conan: checking conan executable
-- Conan: Found program /usr/bin/conan
-- Conan: Version found Conan version 1.60.0

-- Conan: checking conan executable
-- Conan: Found program /usr/bin/conan
-- Conan: Version found Conan version 1.60.0

-- Conan: Adding osp remote repository (https://osp.jfrog.io/artifactory/api/conan/conan-local) verify ssl (True)
-- Conan: Automatic detection of conan settings from cmake
-- Conan: build_type was added as an argument. Not using the autodetected one.
-- Conan: compiler was added as an argument. Not using the autodetected one.
-- Conan: compiler.version was added as an argument. Not using the autodetected one.
-- Conan: compiler.libcxx was added as an argument. Not using the autodetected one.
-- Conan: Settings= -s;build_type=Release;-s;compiler=gcc;-s;compiler.version=11;-s;compiler.libcxx=libstdc++11
-- Conan: checking conan executable
-- Conan: Found program /usr/bin/conan
-- Conan: Version found Conan version 1.60.0

-- Conan executing: /usr/bin/conan install /home/xmirabel/.vs/proxy-fmu/conanfile.py -s build_type=Release -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -g=cmake --build=missing
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Version ranges solved
Version range '>=1.1 <4' required by 'thrift/0.13.0' resolved to 'openssl/3.1.0' in local cache
Version range '>=1.1 <4' required by 'libevent/2.1.12' valid for downstream requirement 'openssl/3.1.0'

conanfile.py (proxyfmu/0.3.2): Installing package
Requirements
boost/1.81.0 from 'conancenter' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
cli11/2.3.1 from 'conancenter' - Cache
fmilibrary/2.3 from 'osp' - Cache
libbacktrace/cci.20210118 from 'conancenter' - Cache
libevent/2.1.12 from 'conancenter' - Cache
openssl/3.1.0 from 'conancenter' - Cache
thrift/0.13.0 from 'conancenter' - Cache
zlib/1.2.13 from 'conancenter' - Cache
Packages
boost/1.81.0:dc8aedd23a0f0a773a5fcdcfe1ae3e89c4205978 - Cache
bzip2/1.0.8:c32092bf4d4bb47cf962af898e02823f499b017e - Cache
cli11/2.3.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
fmilibrary/2.3:062863c92a5a0a247840166e9f84ebe8d10786b9 - Cache
libbacktrace/cci.20210118:dfbe50feef7f3c6223a476cd5aeadb687084a646 - Cache
libevent/2.1.12:744865c0fd1992178231b45ce66d5e20c576ae3c - Cache
openssl/3.1.0:304480252b01879c8641f79a653b593b8f26cf9f - Cache
thrift/0.13.0:5fd365ad4f604076734522e1ae2ea6e3a017cdc6 - Cache
zlib/1.2.13:dfbe50feef7f3c6223a476cd5aeadb687084a646 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
cli11/2.3.1: Already installed!
fmilibrary/2.3: Already installed!
libbacktrace/cci.20210118: Already installed!
zlib/1.2.13: Already installed!
boost/1.81.0: Already installed!
openssl/3.1.0: Already installed!
libevent/2.1.12: Already installed!
thrift/0.13.0: Already installed!
thrift/0.13.0: Appending PATH env var with : /home/xmirabel/.conan/data/thrift/0.13.0///package/5fd365ad4f604076734522e1ae2ea6e3a017cdc6/bin
conanfile.py (proxyfmu/0.3.2): Generator txt created conanbuildinfo.txt
conanfile.py (proxyfmu/0.3.2): Generator cmake created conanbuildinfo.cmake
conanfile.py (proxyfmu/0.3.2): Aggregating env generators
conanfile.py (proxyfmu/0.3.2): Generated conaninfo.txt
conanfile.py (proxyfmu/0.3.2): Generated graphinfo
WARN: libevent/2.1.12: requirement openssl/[>=1.1 <4] overridden by thrift/0.13.0 to openssl/3.1.0
-- Conan: Loading conanbuildinfo.cmake
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /home/xmirabel/.vs/proxy-fmu/build
-- Conan: Compiler GCC>=5, checking major version 11
-- Conan: Checking correct version: 11
-- Found Boost: /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.71") found components: filesystem
-- Thrift.h => /home/xmirabel/.conan/data/thrift/0.13.0///package/5fd365ad4f604076734522e1ae2ea6e3a017cdc6/include/thrift
-- THRIFT_INCLUDE_DIRS= /home/xmirabel/.conan/data/thrift/0.13.0///package/5fd365ad4f604076734522e1ae2ea6e3a017cdc6/include/thrift
-- THRIFT_LIBRARIES= /home/xmirabel/.conan/data/thrift/0.13.0///package/5fd365ad4f604076734522e1ae2ea6e3a017cdc6/lib/libthrift.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xmirabel/.vs/proxy-fmu/build
Consolidate compiler generated dependencies of target fmilibwrapper
[ 40%] Built target fmilibwrapper
Consolidate compiler generated dependencies of target proxyfmu-service
[ 55%] Built target proxyfmu-service
Consolidate compiler generated dependencies of target proxyfmu
[ 60%] Linking CXX executable ../bin/proxyfmu
/usr/bin/ld: CMakeFiles/proxyfmu.dir/handlers/boot_service_handler.cpp.o: in function proxyfmu::start_process(std::filesystem::__cxx11::path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int&, std::mutex&, std::condition_variable&)': boot_service_handler.cpp:(.text+0x13b6): undefined reference to boost::filesystem::path::find_parent_path_size() const'
collect2: error: ld returned 1 exit status
gmake[2]: *** [tool/CMakeFiles/proxyfmu.dir/build.make:154: bin/proxyfmu] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:216: tool/CMakeFiles/proxyfmu.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants