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

specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] on macOS #4

Open
maltekliemann opened this issue Jan 3, 2021 · 0 comments

Comments

@maltekliemann
Copy link
Member

If you cd into the project directory on macOS Terminal using the incorrect casing (e.g. cd DrMock if the directory is called drmock), then the following occurs:

In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/mocs_compilation.cpp:2:
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/moc_EmitMock.cpp:10:
/Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/../../DrMock/mock/EmitMock.h:7:10: error: 
      non-portable path to file '"/Users/malte/drmock/tests/mocker/IEmit.h"'; specified path differs in
      case from file name on disk [-Werror,-Wnonportable-include-path]
#include "/Users/malte/DrMock/tests/mocker/IEmit.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "/Users/malte/drmock/tests/mocker/IEmit.h"
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/mocs_compilation.cpp:3:
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/moc_QObjectMock.cpp:10:
/Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/../../DrMock/mock/QObjectMock.h:7:10: error: 
      non-portable path to file '"/Users/malte/drmock/tests/mocker/IQObject.h"'; specified path differs
      in case from file name on disk [-Werror,-Wnonportable-include-path]
#include "/Users/malte/DrMock/tests/mocker/IQObject.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "/Users/malte/drmock/tests/mocker/IQObject.h"
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/mocs_compilation.cpp:4:
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/moc_SignalsMock.cpp:10:
/Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/../../DrMock/mock/SignalsMock.h:7:10: error: 
      non-portable path to file '"/Users/malte/drmock/tests/mocker/ISignals.h"'; specified path differs
      in case from file name on disk [-Werror,-Wnonportable-include-path]
#include "/Users/malte/DrMock/tests/mocker/ISignals.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "/Users/malte/drmock/tests/mocker/ISignals.h"
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/mocs_compilation.cpp:5:
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/moc_SlotsMock.cpp:10:
/Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/../../DrMock/mock/SlotsMock.h:7:10: error: 
      non-portable path to file '"/Users/malte/drmock/tests/mocker/ISlots.h"'; specified path differs
      in case from file name on disk [-Werror,-Wnonportable-include-path]
#include "/Users/malte/DrMock/tests/mocker/ISlots.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "/Users/malte/drmock/tests/mocker/ISlots.h"
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/mocs_compilation.cpp:6:
In file included from /Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/moc_UseQtMock.cpp:10:
/Users/malte/DrMock/build/tests/mocker/DrMockQtMock_autogen/U4H3QIWQU5/../../DrMock/mock/UseQtMock.h:7:10: error: 
      non-portable path to file '"/Users/malte/drmock/tests/mocker/IUseQt.h"'; specified path differs
      in case from file name on disk [-Werror,-Wnonportable-include-path]
#include "/Users/malte/DrMock/tests/mocker/IUseQt.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "/Users/malte/drmock/tests/mocker/IUseQt.h"

This might happen on other case-insensitive filesystems. Note that only Qt-related files are affected. The same error occurs in projects using DrMock.

@maltekliemann maltekliemann changed the title specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] on macOS specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] on macOS Jul 21, 2021
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

1 participant