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

no type named 'fcontext_t' in namespace #2471

Closed
BryanFlynt-NOAA opened this issue Jan 30, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@BryanFlynt-NOAA
Copy link

commented Jan 30, 2017

FYI,
A compile issue with clang, Boost 1.63 and master branch of HPX downloaded from git today.
It compiles fine with boost 1.53 and same setup.

> g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

> make
Scanning dependencies of target hpx
[  0%] Building CXX object src/CMakeFiles/hpx.dir/error_code.cpp.o
[  0%] Building CXX object src/CMakeFiles/hpx.dir/exception.cpp.o
[  0%] Building CXX object src/CMakeFiles/hpx.dir/exception_list.cpp.o
[  0%] Building CXX object src/CMakeFiles/hpx.dir/hpx_init.cpp.o
In file included from /Users/nobody/Projects/hpx/hpx.src/src/hpx_init.cpp:21:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/policies/schedulers.hpp:15:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/policies/local_queue_scheduler.hpp:13:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/policies/thread_queue.hpp:13:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/policies/queue_helpers.hpp:13:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/thread_data.hpp:14:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/coroutine.hpp:37:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/coroutine_impl.hpp:40:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/context_base.hpp:44:
In file included from /Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/context_impl.hpp:112:
/Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/context_generic_context.hpp:291:29: error: 
      no type named 'fcontext_t' in namespace 'boost::context'
            boost::context::fcontext_t ctx_;
            ~~~~~~~~~~~~~~~~^
/Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/context_generic_context.hpp:211:37: error: 
      no member named 'make_fcontext' in namespace 'boost::context'
                    boost::context::make_fcontext(stack_pointer_, stack_...
                    ~~~~~~~~~~~~~~~~^
/Users/nobody/Projects/hpx/hpx.src/hpx/runtime/threads/coroutines/detail/context_generic_context.hpp:280:17: error: 
      no member named 'jump_fcontext' in namespace 'boost::context'; did you
      mean 'boost::context::detail::jump_fcontext'?
                boost::context::jump_fcontext(&from.ctx_, to.ctx_, to.cb...
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                boost::context::detail::jump_fcontext

And it just keeps going for many more lines ....

@hkaiser

This comment has been minimized.

Copy link
Member

commented Jan 30, 2017

Darn, Boost.Context just keeps on changing without notice. I hate that library...
I will have a look and try to fix it asap.

@BryanFlynt-NOAA

This comment has been minimized.

Copy link
Author

commented Jan 30, 2017

@hkaiser

This comment has been minimized.

Copy link
Member

commented Feb 5, 2017

Just some progress report on this: I have implemented the changes needed to compile and run HPX when using Boost.Context (V1.61 and up) - see here for the patch: https://github.com/STEllAR-GROUP/hpx/tree/fixing_2471.

However there seems to be a problem in Boost.Context preventing things from running properly which I have not been able to pinpoint yet. So, while things compile and run on a single core now, we still see strange segfaults as soon as HPX threads are being moved between cores.

@hkaiser hkaiser modified the milestones: 1.0.0, 1.1.0 Apr 23, 2017

@hkaiser

This comment has been minimized.

Copy link
Member

commented May 19, 2017

This has been fixed by merging #2606

@hkaiser hkaiser closed this May 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.