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

Windows compilation failure on master/v2.0.0 since today #171

Closed
traversaro opened this issue Jan 30, 2020 · 8 comments · Fixed by #172
Closed

Windows compilation failure on master/v2.0.0 since today #171

traversaro opened this issue Jan 30, 2020 · 8 comments · Fixed by #172
Assignees
Labels
Milestone

Comments

@traversaro
Copy link
Member

traversaro commented Jan 30, 2020

Today there has been a regression on the master branch (apparently the robotology-superbuild uses the master branch as both stable and unstable tags for wearables and human-dynamics-estimation, and this may be a problem as we catch certain issues only when they land in master). In particular, Windows compilation is now failing with this error:

2020-01-30T11:43:43.6865797Z     Generating Code...
2020-01-30T11:43:46.7622726Z D:\a\robotology-superbuild\robotology-superbuild\robotology\human-dynamics-estimation\devices\HumanStateProvider\InverseVelocityKinematics\InverseVelocityKinematics.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\human-dynamics-estimation\devices\HumanStateProvider\HumanStateProvider.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\human-dynamics-estimation.vcxproj]
2020-01-30T11:43:46.9773425Z     Building Custom Rule D:/a/robotology-superbuild/robotology-superbuild/robotology/human-dynamics-estimation/publishers/HumanStatePublisher/CMakeLists.txt
2020-01-30T11:43:47.0788678Z     HumanStatePublisher.cpp

See https://github.com/robotology/robotology-superbuild/runs/416976325 for a related failure.
You can read more in detail about the error in https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1128?view=vs-2019 , even if I am not sure what is actually creating it, as the HumanStatePublisher.cpp does not seems to be so big. However, to fix it is should be sufficient to just pass the /bigobj option to the compiler when compiling the compilation units of that library, by adding:

if(MSVC)
  target_compile_options(HumanStatePublisher PRIVATE /bigobj)
endif()
@traversaro traversaro changed the title Windows compilation failure on master since today Windows compilation failure on master/v2.0.0 since today Jan 31, 2020
@traversaro
Copy link
Member Author

@lrapetti @Yeshasvitvs This regression is quite critical for the whole robotology-superbuild CI system. If you are ot able to work on it, could you at least comment on when you think you can work on this, so that we can organize how to deal with this, for example disabling this software in the CI?

Thanks a lot.

@lrapetti
Copy link
Member

@lrapetti @Yeshasvitvs This regression is quite critical for the whole robotology-superbuild CI system. If you are ot able to work on it, could you at least comment on when you think you can work on this, so that we can organize how to deal with this, for example disabling this software in the CI?

Thanks a lot.

If the fix concern just adding the few line you mentioned above I can do it, but unfortunately I am not sure I will be able to do any actual test on Windows today.

Anyway is the link in your comment above correct:

See https://github.com/robotology/robotology-superbuild/runs/416976325 for a related failure.

because I see an error related to robots-configuration there

@traversaro
Copy link
Member Author

If the fix concern just adding the few line you mentioned above I can do it, but unfortunately I am not sure I will be able to do any actual test on Windows today.

Even if that does not fix it, "perhaps" failing the compilation is for sure better then "for sure" failing the compilation. Furthermore, once the fix is pushed to master, we can see immediately if it works via the jobs of the robotology-superbuild are fixed.

Anyway is the link in your comment above correct:

See https://github.com/robotology/robotology-superbuild/runs/416976325 for a related failure.

because I see an error related to robots-configuration there

Yes. The messages related to robots-configuration at the end are just warnings, the error related to human-dynamics-estimation are at line 42087 (hint: search for "fatal error").

lrapetti added a commit that referenced this issue Jan 31, 2020
@lrapetti
Copy link
Member

@traversaro please check #172 if it is what you were suggesting

@traversaro
Copy link
Member Author

@lrapetti it is!

lrapetti added a commit that referenced this issue Jan 31, 2020
@traversaro
Copy link
Member Author

Unfortunatly the failure is also in other devices, see https://github.com/robotology/robotology-superbuild/pull/338/checks?check_run_id=420219032 :

2020-01-31T23:42:11.4468211Z D:\a\robotology-superbuild\robotology-superbuild\robotology\human-dynamics-estimation\devices\HumanStateProvider\InverseVelocityKinematics\InverseVelocityKinematics.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\human-dynamics-estimation\devices\HumanStateProvider\HumanStateProvider.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\human-dynamics-estimation.vcxproj]

@traversaro traversaro mentioned this issue Feb 1, 2020
9 tasks
@lrapetti lrapetti reopened this Feb 3, 2020
@lrapetti lrapetti added this to the Iteration 31 milestone Feb 3, 2020
@lrapetti
Copy link
Member

lrapetti commented Feb 3, 2020

Unfortunatly the failure is also in other devices, see https://github.com/robotology/robotology-superbuild/pull/338/checks?check_run_id=420219032 :

2020-01-31T23:42:11.4468211Z D:\a\robotology-superbuild\robotology-superbuild\robotology\human-dynamics-estimation\devices\HumanStateProvider\InverseVelocityKinematics\InverseVelocityKinematics.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\human-dynamics-estimation\devices\HumanStateProvider\HumanStateProvider.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\human-dynamics-estimation.vcxproj]

PR adding to HumanStateProvider and HumanDynamicsEstimator (#174)

@claudia-lat claudia-lat modified the milestones: Iteration 31, Iteration 32 Feb 3, 2020
@lrapetti lrapetti self-assigned this Feb 3, 2020
@lrapetti
Copy link
Member

lrapetti commented Feb 3, 2020

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

Successfully merging a pull request may close this issue.

3 participants