Summary: | emerge frameworks fails on build of win32libs/gpg-error | ||
---|---|---|---|
Product: | kde-windows | Reporter: | Jeff <jeffjl.kde> |
Component: | buildsystem | Assignee: | KDE-Windows <kde-windows> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | grave | CC: | zrax0111 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: |
Description
Jeff
2015-07-22 17:47:53 UTC
GCC 5.x changes the preprocessor output, which breaks gpg-error's automatic header generation (there are other threads about this online -- it's not just MinGW that's broken). What I did to get around it was to modify the cmake patch to add the -P option to GCC. diff --git a/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff b/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff index e2d6e9a..ab389a1 100644 --- a/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff +++ b/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff @@ -52,10 +52,10 @@ diff -Nru -x '*~' libgpg-error-1.12.orig/CMakeLists.txt libgpg-error-1.12/CMakeLists.txt + +# if set, TARGET_CPP is the compiler of the target platform +if(TARGET_CPP) -+ set(ERR_COMPILER ${TARGET_CPP}) ++ set(ERR_COMPILER ${TARGET_CPP} -P) + set(INCLUDE_STRING "%TARGET_INCLUDE%") +else(TARGET_CPP) -+ set(ERR_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}) ++ set(ERR_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} -P) + set(HOST_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}) + set(INCLUDE_STRING "%INCLUDE%") +endif(TARGET_CPP) However, that is probably not portable to MSVC... Thank you. The -P fix got me past that problem. Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |