Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612074

Summary: media-plugins/kodi-peripheral-joystick-1.2.1 : /.../ButtonMapTranslator.cpp:100:53: error: invalid conversion from ‘int’ to ‘JOYSTICK_DRIVER_PRIMITIVE_TYPE’ [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
media-plugins:kodi-peripheral-joystick-1.2.1:20170308-031542.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-03-08 18:08:07 UTC
/usr/bin/x86_64-pc-linux-gnu-g++  -DBUILD_KODI_ADDON -DHAVE_LINUX_JOYSTICK -DHAVE_UDEV -Dperipheral_joystick_EXPORTS -I/var/tmp/portage/media-plugins/kodi-peripheral-joystick-1.2.1/work/peripheral.joystick-1.2.1/src -I/usr/include/kodi -I/usr/include/p8-platform   -DNDEBUG -O2 -pipe -march=native -std=c++11 -fPIC   -D_LINUX -DTARGET_POSIX -DTARGET_LINUX -DHAVE_SSE=1 -DHAVE_SSE2=1 -DHAVE_SSE3=1 -DHAVE_SSSE3=1 -DHAVE_SSE4_1=1 -o CMakeFiles/peripheral.joystick.dir/src/buttonmapper/ButtonMapTranslator.cpp.o -c /var/tmp/portage/media-plugins/kodi-peripheral-joystick-1.2.1/work/peripheral.joystick-1.2.1/src/buttonmapper/ButtonMapTranslator.cpp
/var/tmp/portage/media-plugins/kodi-peripheral-joystick-1.2.1/work/peripheral.joystick-1.2.1/src/buttonmapper/ButtonMapTranslator.cpp: In static member function ‘static ADDON::DriverPrimitive JOYSTICK::ButtonMapTranslator::ToDriverPrimitive(const string&, JOYSTICK_DRIVER_PRIMITIVE_TYPE)’:
/var/tmp/portage/media-plugins/kodi-peripheral-joystick-1.2.1/work/peripheral.joystick-1.2.1/src/buttonmapper/ButtonMapTranslator.cpp:100:53: error: invalid conversion from ‘int’ to ‘JOYSTICK_DRIVER_PRIMITIVE_TYPE’ [-fpermissive]
         primitive = ADDON::DriverPrimitive(std::atoi(strPrimitive.substr(1).c_s
                                                     ^
In file included from /var/tmp/portage/media-plugins/kodi-peripheral-joystick-1.2.1/work/peripheral.joystick-1.2.1/src/buttonmapper/ButtonMapTranslator.h:22:0,

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop_20170228-191423) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-03-08 18:08:11 UTC
Created attachment 466332 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-08 18:08:14 UTC
Created attachment 466334 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-03-08 18:08:17 UTC
Created attachment 466336 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-03-08 18:08:20 UTC
Created attachment 466338 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-03-08 18:08:23 UTC
Created attachment 466340 [details]
media-plugins:kodi-peripheral-joystick-1.2.1:20170308-031542.log
Comment 6 Toralf Förster gentoo-dev 2017-03-08 18:08:27 UTC
Created attachment 466342 [details]
temp.tbz2
Comment 7 Craig Andrews gentoo-dev 2017-03-17 12:46:25 UTC
Reported upstream: https://github.com/xbmc/peripheral.joystick/issues/91
Comment 8 Craig Andrews gentoo-dev 2017-03-17 20:27:06 UTC
pull request: https://github.com/gentoo/gentoo/pull/4232