Skip to contentSkip to conversation

meson: Mingw64 gcc doesn't recognize system include_type for sdl2

PATCH Superseded [email protected] 3 participants 4 messages Aug 25, 2020 – Aug 27, 2020 Arm/Amlogic Meson SoC support

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Mingw64 gcc doesn't recognize system include_type for sdl2

From: Yonggang Luo <[email protected]>

---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meson.build +1 -2
index df5bf728b5..a3585881e1 100644
@@ -224,8 +224,7 @@ if 'CONFIG_BRLAPI' in config_host
   brlapi = declare_dependency(link_args: config_host['BRLAPI_LIBS'].split())
 endif
 
-sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static,
-                 include_type: 'system')
+sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static)
 sdl_image = not_found
 if sdl.found()
   # work around 2.0.8 bug
Signature · 1 line
2.27.0.windows.1
#1 lore raw

Hi

Quoted 22 lines · On Tue, Aug 25, 2020 at 4:17 AM <[email protected]> wrote:

From: Yonggang Luo <[email protected]>

---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meson.build +1 -2
index df5bf728b5..a3585881e1 100644
@@ -224,8 +224,7 @@ if 'CONFIG_BRLAPI' in config_host
   brlapi = declare_dependency(link_args:
 config_host['BRLAPI_LIBS'].split())
 endif
 
-sdl = dependency('sdl2', required: get_option('sdl'), static:
 enable_static,
-                 include_type: 'system')
+sdl = dependency('sdl2', required: get_option('sdl'), static:
 enable_static)

sdl_image = not_found
if sdl.found()

Quoted 6 lines
   # work around 2.0.8 bug
--
2.27.0.windows.1

Which version of gcc are you using?

Paolo, why did you you -isystem includes here? (if it's on purpose, it's worth to document it in build-system.rst since it takes sdl as an example and doesn't mention this)

Signature · 1 line
Marc-André Lureau
#2 lore raw

I am using gcc 10

```
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\CI-Tools\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/CI-Tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.2.0/configure --prefix=/mingw64
--with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
--libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
--with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++
--enable-shared --enable-static --enable-libatomic --enable-threads=posix
--enable-graphite --enable-fully-dynamic-string
--enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes
--disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-isl-version-check --enable-lto --enable-libgomp
--disable-multilib --enable-checking=release --disable-rpath
--disable-win32-registry --disable-nls --disable-werror --disable-symvers
--disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64
--with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64
--with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=
https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Rev1, Built by MSYS2 project)

```
Quoted 42 lines · Marc-André Lureau

Hi

Quoted 22 lines · On Tue, Aug 25, 2020 at 4:17 AM <[email protected]> wrote:

From: Yonggang Luo <[email protected]>

---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meson.build +1 -2
index df5bf728b5..a3585881e1 100644
@@ -224,8 +224,7 @@ if 'CONFIG_BRLAPI' in config_host
   brlapi = declare_dependency(link_args:
 config_host['BRLAPI_LIBS'].split())
 endif
 
-sdl = dependency('sdl2', required: get_option('sdl'), static:
 enable_static,
-                 include_type: 'system')
+sdl = dependency('sdl2', required: get_option('sdl'), static:
 enable_static)

sdl_image = not_found
if sdl.found()

Quoted 6 lines
   # work around 2.0.8 bug
--
2.27.0.windows.1

Which version of gcc are you using?

Paolo, why did you you -isystem includes here? (if it's on purpose, it's worth to document it in build-system.rst since it takes sdl as an example and doesn't mention this)

--
Marc-André Lureau

Signature · 6 lines
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo
#3 lore raw
In reply to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series seems to have some coding style problems. See output below for more information:

Type: series
Message-id: [email protected]
Subject: [PATCH] meson: Mingw64 gcc doesn't recognize system include_type for sdl2

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
700cdc8 meson: Mingw64 gcc doesn't recognize system include_type for sdl2

=== OUTPUT BEGIN ===
ERROR: Missing Signed-off-by: line(s)

total: 1 errors, 0 warnings, 9 lines checked

Commit 700cdc84f4ae (meson: Mingw64 gcc doesn't recognize system include_type for sdl2) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1

The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]