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 warnings about inconsistent dll linkage when building runGui.exe #2251

Closed
scpeters opened this issue Nov 21, 2023 · 3 comments · Fixed by #2254
Closed

Windows warnings about inconsistent dll linkage when building runGui.exe #2251

scpeters opened this issue Nov 21, 2023 · 3 comments · Fixed by #2254
Assignees
Labels
bug Something isn't working

Comments

@scpeters
Copy link
Member

Environment

  • OS Version: Jenkins windows CI machines
  • Source or binary build? source build of gz-sim7

Description

Steps to reproduce

  1. Run https://build.osrfoundation.org/view/ign-garden/job/gz_sim-7-win

Output

  gz.cc

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(46,1): warning C4273: 'gzSimVersion': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(24,36): message : see previous definition of 'gzSimVersion' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(52,1): warning C4273: 'simVersionHeader': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(28,36): message : see previous definition of 'simVersionHeader' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(59,1): warning C4273: 'cmdVerbosity': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(32,35): message : see previous definition of 'cmdVerbosity' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(73,1): warning C4273: 'worldInstallDir': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(35,42): message : see previous definition of 'worldInstallDir' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(81,1): warning C4273: 'findFuelResource': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(87,42): message : see previous definition of 'findFuelResource' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(143,1): warning C4273: 'runServer': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(62,34): message : see previous definition of 'runServer' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.cc(424,1): warning C4273: 'runGui': inconsistent dll linkage [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

C:\J\workspace\gz_sim-7-win\ws\gz-sim\src\gz.hh(80,34): message : see previous definition of 'runGui' [C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\src\runGui.vcxproj]

  gz.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance

     Creating library C:/J/workspace/gz_sim-7-win/ws/build/gz-sim7/lib/Release/runGui.lib and object C:/J/workspace/gz_sim-7-win/ws/build/gz-sim7/lib/Release/runGui.exp

  Generating code

  Finished generating code

  runGui.vcxproj -> C:\J\workspace\gz_sim-7-win\ws\build\gz-sim7\bin\Release\runGui.exe
@scpeters scpeters added the bug Something isn't working label Nov 21, 2023
@scpeters
Copy link
Member Author

Looking in the code history, I see that gz.hh was modified in #1911 (March 3, 2023) to make Garden windows CI greener. Then the runGui executable was added to citadel in #1962 (May 2, 2023) and merged forward to Garden in #2098 (August 29, 2023), which I believe is when these warnings were introduced.

@mjcarroll mjcarroll self-assigned this Nov 21, 2023
@mjcarroll
Copy link
Contributor

I have a fix for this (that I thought I already applied).

@mjcarroll
Copy link
Contributor

Close by #2254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants