Skip to contentSkip to conversation

meson: Explicitly require libcurl for chamelium

PATCH In review Arkadiusz Hiler 4 participants 6 messages May 9, 2019 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Explicitly require libcurl for chamelium

Chamelium uses xmlrpc client which:

  $ xmlrpc-c-config client --libs
  -L/usr/lib/x86_64-linux-gnu   -lxmlrpc_client -lxmlrpc  -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lcurl

Debian/Ubuntu (and perhaps others) lack dependency on libcurl-dev:

  $ apt depends libxmlrpc-core-c3-dev
  Depends: libxmlrpc-core-c3 (= 1.33.14-4)
  Suggests: xmlrpc-api-utils
  $ apt depends libxmlrpc-core-c3
  libxmlrpc-core-c3
  Depends: libc6 (>= 2.14)
  Depends: libcurl3 (>= 7.16.2)

Which causes:

/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
[14/711] Compiling C object 'tests/59830eb@@kms_atomic@exe/kms_atomic.c.o'.
ninja: build stopped: subcommand failed.

Debian's reportbug was used to report this issue. Meanwhile we can explicitly ask for libcurl.

---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 8196ab63..cbc37f7e 100644
@@ -196,6 +196,7 @@ chameliuminfo = 'No'
 if _build_chamelium
 	gsl = dependency('gsl', required : _chamelium_required)
 	alsa = dependency('alsa', required : _chamelium_required)
+	libcurl = dependency('libcurl', required : _chamelium_required)
 	chamelium = declare_dependency(dependencies : [
 		xmlrpc,
 		xmlrpc_util,
@@ -203,7 +204,7 @@ if _build_chamelium
 		gsl,
 		alsa,
 	], required : _chamelium_required)
-	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found()
+	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found() and libcurl.found()
 		config.set('HAVE_CHAMELIUM', 1)
 		chameliuminfo = 'Yes'
 		chamelium_found = true
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Arkadiusz Hiler

Chamelium uses xmlrpc client which:

  $ xmlrpc-c-config client --libs
  -L/usr/lib/x86_64-linux-gnu   -lxmlrpc_client -lxmlrpc  -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lcurl

Debian/Ubuntu (and perhaps others) lack dependency on libcurl-dev:

  $ apt depends libxmlrpc-core-c3-dev
  Depends: libxmlrpc-core-c3 (= 1.33.14-4)
  Suggests: xmlrpc-api-utils
  $ apt depends libxmlrpc-core-c3
  libxmlrpc-core-c3
  Depends: libc6 (>= 2.14)
  Depends: libcurl3 (>= 7.16.2)

Which causes:

/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
[14/711] Compiling C object 'tests/59830eb@@kms_atomic@exe/kms_atomic.c.o'.
ninja: build stopped: subcommand failed.

Quoted 5 lines

Debian's reportbug was used to report this issue. Meanwhile we can explicitly ask for libcurl.

Quoted 32 lines
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 8196ab63..cbc37f7e 100644
@@ -196,6 +196,7 @@ chameliuminfo = 'No'
 if _build_chamelium
 	gsl = dependency('gsl', required : _chamelium_required)
 	alsa = dependency('alsa', required : _chamelium_required)
+	libcurl = dependency('libcurl', required : _chamelium_required)
 	chamelium = declare_dependency(dependencies : [
 		xmlrpc,
 		xmlrpc_util,
@@ -203,7 +204,7 @@ if _build_chamelium
 		gsl,
 		alsa,
 	], required : _chamelium_required)
-	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found()
+	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found() and libcurl.found()
 		config.set('HAVE_CHAMELIUM', 1)
 		chameliuminfo = 'Yes'
 		chamelium_found = true
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v1 1/1
#2 lore raw
In reply to Arkadiusz Hiler
Quoted 7 lines · Arkadiusz Hiler

Chamelium uses xmlrpc client which:

  $ xmlrpc-c-config client --libs
  -L/usr/lib/x86_64-linux-gnu   -lxmlrpc_client -lxmlrpc  -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lcurl

Debian/Ubuntu (and perhaps others) lack dependency on libcurl-dev:

Quoted 8 lines
  $ apt depends libxmlrpc-core-c3-dev
  Depends: libxmlrpc-core-c3 (= 1.33.14-4)
  Suggests: xmlrpc-api-utils
  $ apt depends libxmlrpc-core-c3
  libxmlrpc-core-c3
  Depends: libc6 (>= 2.14)
  Depends: libcurl3 (>= 7.16.2)

I don't see us installing libcurl-dev explicitly in gitlab-CI. Does kms_chamelium build there properly?

There was a case reported earlier of missing a dependency to liblzma-dev from libdw-dev in Ubuntu 16.04, fixed in later releases. Just wanted to leave a comment here that the difference in that case was that libdw is a required dependency and explicitly checking liblzma in meson doesn't lead to a working build, just different error messages.

Quoted 41 lines

Which causes:

/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
[14/711] Compiling C object 'tests/59830eb@@kms_atomic@exe/kms_atomic.c.o'.
ninja: build stopped: subcommand failed.

Debian's reportbug was used to report this issue. Meanwhile we can explicitly ask for libcurl.

---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 8196ab63..cbc37f7e 100644
@@ -196,6 +196,7 @@ chameliuminfo = 'No'
 if _build_chamelium
 	gsl = dependency('gsl', required : _chamelium_required)
 	alsa = dependency('alsa', required : _chamelium_required)
+	libcurl = dependency('libcurl', required : _chamelium_required)
 	chamelium = declare_dependency(dependencies : [
 		xmlrpc,
 		xmlrpc_util,
@@ -203,7 +204,7 @@ if _build_chamelium
 		gsl,
 		alsa,
 	], required : _chamelium_required)
-	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found()
+	if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found() and libcurl.found()
 		config.set('HAVE_CHAMELIUM', 1)
 		chameliuminfo = 'Yes'
 		chamelium_found = true
Signature · 1 line
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw
Quoted 12 lines · Petri Latvala
Quoted 11 lines · Arkadiusz Hiler

Chamelium uses xmlrpc client which:

  $ xmlrpc-c-config client --libs
  -L/usr/lib/x86_64-linux-gnu   -lxmlrpc_client -lxmlrpc  -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lcurl

Debian/Ubuntu (and perhaps others) lack dependency on libcurl-dev:

  $ apt depends libxmlrpc-core-c3-dev
  Depends: libxmlrpc-core-c3 (= 1.33.14-4)
  Suggests: xmlrpc-api-utils
Quoted 7 lines
Quoted 4 lines
  $ apt depends libxmlrpc-core-c3
  libxmlrpc-core-c3
  Depends: libc6 (>= 2.14)
  Depends: libcurl3 (>= 7.16.2)

I don't see us installing libcurl-dev explicitly in gitlab-CI. Does kms_chamelium build there properly?

Apparently I was blind, in addition to only searching for libcurl-dev.

Signature · 5 lines
Petri Latvala
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for meson: Explicitly require libcurl for chamelium

In reply to Arkadiusz Hiler
== Series Details ==

== Series Details ==

Series: meson: Explicitly require libcurl for chamelium
URL : https://patchwork.freedesktop.org/series/60452/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6069 -> IGTPW_2955
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60452/revisions/1/mbox/

Changes
-------

No changes found

Participating hosts (51 -> 44)
------------------------------

Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-kbl-r

Build changes
-------------

* IGT: IGT_4974 -> IGTPW_2955

CI_DRM_6069: 7dcd3d663bc180ef9e7dcc5d5f5adebee1f285bf @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2955: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/
IGT_4974: 23200bc1b008542bd4d744755540b07881d41fae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for meson: Explicitly require libcurl for chamelium

In reply to Arkadiusz Hiler
== Series Details ==

== Series Details ==

Series: meson: Explicitly require libcurl for chamelium
URL : https://patchwork.freedesktop.org/series/60452/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6069_full -> IGTPW_2955_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60452/revisions/1/mbox/

Known issues
------------

Here are the changes found in IGTPW_2955_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_tiled_swapping@non-threaded:
- shard-iclb: [PASS][1] -> [FAIL][2] ([fdo#108686])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb1/igt@[email protected]

* igt@i915_suspend@debugfs-reader:
- shard-apl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108566]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-apl7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-apl7/igt@[email protected]

* igt@kms_cursor_crc@cursor-256x256-suspend:
- shard-kbl: [PASS][5] -> [DMESG-WARN][6] ([fdo#108566]) +5 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-kbl4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-kbl3/igt@[email protected]

* igt@kms_cursor_crc@cursor-256x85-random:
- shard-apl: [PASS][7] -> [FAIL][8] ([fdo#103232])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-apl5/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-apl5/igt@[email protected]
- shard-kbl: [PASS][9] -> [FAIL][10] ([fdo#103232])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-kbl1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-kbl4/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen:
- shard-glk: [PASS][11] -> [FAIL][12] ([fdo#103167])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-glk3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-glk3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html

* igt@kms_frontbuffer_tracking@fbc-stridechange:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#103167]) +7 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb8/igt@[email protected]

* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][15] -> [FAIL][16] ([fdo#103166])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb6/igt@[email protected]

* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109441]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb2/igt@kms_psr@psr2_primary_mmap_gtt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb6/igt@kms_psr@psr2_primary_mmap_gtt.html

* igt@kms_setmode@basic:
- shard-iclb: [PASS][19] -> [FAIL][20] ([fdo#99912])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb7/igt@[email protected]

* igt@kms_sysfs_edid_timing:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#100047])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb6/igt@kms_sysfs_edid_timing.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb3/igt@kms_sysfs_edid_timing.html

* igt@perf_pmu@rc6:
- shard-kbl: [PASS][23] -> [SKIP][24] ([fdo#109271])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-kbl2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-kbl5/igt@[email protected]

#### Possible fixes ####

* igt@i915_pm_rpm@system-suspend-execbuf:
- shard-kbl: [INCOMPLETE][25] ([fdo#103665] / [fdo#107807]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-kbl1/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-kbl2/igt@[email protected]

* igt@i915_suspend@sysfs-reader:
- shard-apl: [DMESG-WARN][27] ([fdo#108566]) -> [PASS][28] +5 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-apl5/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-apl8/igt@[email protected]
- shard-kbl: [DMESG-WARN][29] ([fdo#108566]) -> [PASS][30] +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-kbl1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-kbl2/igt@[email protected]

* igt@kms_cursor_crc@cursor-128x42-offscreen:
- shard-hsw: [INCOMPLETE][31] ([fdo#103540]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-hsw7/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-hsw6/igt@[email protected]

* igt@kms_cursor_legacy@cursor-vs-flip-toggle:
- shard-hsw: [FAIL][33] ([fdo#103355]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-hsw8/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-hsw2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-gtt:
- shard-glk: [FAIL][35] ([fdo#103167]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-glk8/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-gtt.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-glk7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: [FAIL][37] ([fdo#103167]) -> [PASS][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb8/igt@[email protected]

* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [SKIP][39] ([fdo#109642]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb7/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb2/igt@[email protected]

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][41] ([fdo#109441]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6069/shard-iclb3/igt@kms_psr@psr2_sprite_plane_move.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html

[fdo#100047]: https://bugs.freedesktop.org/show_bug.cgi?id=100047
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103355]: https://bugs.freedesktop.org/show_bug.cgi?id=103355
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (10 -> 6)
------------------------------

Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005

Build changes
-------------

* IGT: IGT_4974 -> IGTPW_2955
* Piglit: piglit_4509 -> None

CI_DRM_6069: 7dcd3d663bc180ef9e7dcc5d5f5adebee1f285bf @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2955: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/
IGT_4974: 23200bc1b008542bd4d744755540b07881d41fae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2955/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev