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

MSVC 2015 Compiler crash when building HPX #2574

Closed
Naios opened this issue Mar 31, 2017 · 5 comments
Closed

MSVC 2015 Compiler crash when building HPX #2574

Naios opened this issue Mar 31, 2017 · 5 comments

Comments

@Naios
Copy link
Contributor

Naios commented Mar 31, 2017

On revision 5609f1c MSVC 2015 with Update 3 (v14.0.25431.01) crashes when building HPX:

hpx\src\runtime\agas\big_boot_barrier.cpp(289): fatal error C1001: An internal error has occurred in the compiler.

Probably this is related to the operator& in file src/runtime/agas/big_boot_barrier.cpp and the following lines:

  • ar & typenames
  • ar & num_localities
  • ar & used_cores
    template <typename Archive>
    void serialize(Archive & ar, const unsigned int)
    {
        ar & endpoints;
        ar & primary_ns_ptr;
        ar & symbol_ns_ptr;
        ar & cores_needed;
        ar & num_threads;
        ar & hostname;
        ar & typenames;
     // ^^^^^^^^^^^^^^^
        ar & prefix;
    }

... and ...

    template <typename Archive>
    void serialize(Archive & ar, const unsigned int)
    {
        ar & prefix;
        ar & agas_locality;
        ar & locality_ns_address;
        ar & primary_ns_address;
        ar & component_ns_address;
        ar & symbol_ns_address;
        ar & num_localities;
     // ^^^^^^^^^^^^^^^
        ar & used_cores;
     // ^^^^^^^^^^^^^^^
        ar & agas_endpoints;
        ar & ids;
        ar & endpoints;
    }
@hkaiser
Copy link
Member

hkaiser commented Mar 31, 2017

Can you give use more details on what cmake opetion you have used, please? Also, what build type is failing (Debug, Release, etc.)?

FWIW, I'm using this version of VS to develop HPX and I have not seen this compiler error before.

@Naios
Copy link
Contributor Author

Naios commented Mar 31, 2017

It's the Release build type which is failing, the Debug build succeeds.

CMake was run with the VisualStudio 14 Win64 generator using boost 1.63 x64 and -DHPX_WITH_HWLOC=OFF.
My CMake cache is the following: CMakeCache.txt.

@hkaiser
Copy link
Member

hkaiser commented Mar 31, 2017

Thanks, I have it reproduced and will investigate. As a workaround, please build with RelWithDebInfo. We know that works.

@hkaiser
Copy link
Member

hkaiser commented Apr 12, 2017

@Naios Could you please verify whether #2585 solves your issue and report back?

@Naios
Copy link
Contributor Author

Naios commented Apr 12, 2017

@hkaiser I can confirm that the fix provided by the fixing_2574 (#2585) branch solves this issue.

@hkaiser hkaiser modified the milestones: 1.0.0, 1.1.0 Apr 23, 2017
@hkaiser hkaiser closed this as completed Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants