RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    PS3 controller install fails missing sys/cdefs.h

    Scheduled Pinned Locked Moved Help and Support
    ps3controller
    5 Posts 2 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hobwellH
      hobwell
      last edited by hobwell

      Re: ps3 controller installation issues

      I'm having the same issue as in the post above (title says it all really). I have the most up-to-date setup script already.

      I suspect this has something to do with having made the RetroPie image into a format Noobs could install. I vaguely remember a step where some directories needed to be removed for this purpose.

      Is there anything I can do to fix the issue? I'm pretty new to Linux and find this all a bit daunting.

      Here is the install log:

      System: Linux retropie 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l
      GNU/Linux

      = = = = = = = = = = = = = = = = = = = = =
      Installing dependencies for 'ps3controller' : PS3 controller driver and pair via
      sixad
      = = = = = = = = = = = = = = = = = = = = =

      /home/pi/RetroPie-Setup/tmp/build/ps3controller /home/pi

      = = = = = = = = = = = = = = = = = = = = =
      Getting sources for 'ps3controller' : PS3 controller driver and pair via sixad
      = = = = = = = = = = = = = = = = = = = = =

      git clone --recursive --depth 1 "https://github.com/RetroPie/sixad.git" "/home/p
      i/RetroPie-Setup/tmp/build/ps3controller/sixad"
      Cloning into '/home/pi/RetroPie-Setup/tmp/build/ps3controller/sixad'...
      /home/pi
      /home/pi/RetroPie-Setup/tmp/build/ps3controller /home/pi

      = = = = = = = = = = = = = = = = = = = = =
      Building 'ps3controller' : PS3 controller driver and pair via sixad
      = = = = = = = = = = = = = = = = = = = = =

      rm -f ~ bins/
      mkdir -p bins
      mkdir -p bins
      g++ -O2 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=har
      d -ftree-vectorize -funsafe-math-optimizations -U__GCC_HAVE_SYNC_COMPARE_AND_SWA
      P_2 -O2 -Wall -DSHORT_NAME -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp
      shared.cpp textfile.cpp -o bins/sixad-bin pkg-config --cflags --libs bluez -l
      pthread -fpermissive
      cc -O2 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
      -ftree-vectorize -funsafe-math-optimizations -pipe -Wl,-Bsymbolic-functions six
      pair.c -o bins/sixpair pkg-config --cflags --libs libusb
      In file included from /usr/include/string.h:25:0,
      from sixpair.c:30:
      /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or direct
      ory

      include <sys/cdefs.h>

                           ^
      

      compilation terminated.
      In file included from /usr/include/stdio.h:27:0,
      from /usr/include/bluetooth/bluetooth.h:33,
      from bluetooth.h:21,
      from sixad-bin.cpp:18:
      /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or direct
      ory

      include <sys/cdefs.h>

                           ^
      

      compilation terminated.
      Makefile:26: recipe for target 'sixpair_bin' failed
      make: *** [sixpair_bin] Error 1
      make: *** Waiting for unfinished jobs....
      In file included from /usr/include/stdio.h:27:0,
      from /usr/include/bluetooth/bluetooth.h:33,
      from bluetooth.h:21,
      from bluetooth.cpp:18:
      /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or direct
      ory

      include <sys/cdefs.h>

                           ^
      

      compilation terminated.
      In file included from /usr/include/unistd.h:25:0,
      from shared.h:21,
      from shared.cpp:18:
      /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or direct
      ory

      include <sys/cdefs.h>

                           ^
      

      compilation terminated.
      In file included from /usr/include/arm-linux-gnueabihf/c++/4.9/bits/os_defines.h
      :39:0,
      from /usr/include/arm-linux-gnueabihf/c++/4.9/bits/c++config.h:
      430,
      from /usr/include/c++/4.9/cstdlib:41,
      from textfile.h:21,
      from textfile.cpp:18:
      /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or direct
      ory

      include <sys/cdefs.h>

                           ^
      

      compilation terminated.
      Makefile:18: recipe for target 'sixad_bins' failed
      make: *** [sixad_bins] Error 1
      /home/pi
      Could not successfully build ps3controller - PS3 controller driver and pair via
      sixad (/home/pi/RetroPie-Setup/tmp/build/ps3controller/sixad/bins/sixad-bin not
      found).

      Log ended at: Sun 14 Jan 00:27:24 UTC 2018
      Total running time: 0 hours, 0 mins, 3 secs

      edmaul69E 1 Reply Last reply Reply Quote 0
      • edmaul69E
        edmaul69 @hobwell
        last edited by

        @hobwell if you have a sony brand not bootleg ps3 controller just uninstall the sixad driver and install it with the regular bluetooth.

        https://retropie.org.uk/forum/topic/11638/dualshock-3-4-testers-needed

        hobwellH 1 Reply Last reply Reply Quote 0
        • hobwellH
          hobwell
          last edited by

          Thanks! It was able to see the (native) controller, but couldn't connect. So a little closer now. In trying to get it to work I blindly did a bunch of stuff which may have borked my install. I'm going to re-image RetroPie and try from scratch. I'll let you know if it works.

          1 Reply Last reply Reply Quote 0
          • hobwellH
            hobwell @edmaul69
            last edited by

            @edmaul69 no dice sadly. Had to reup retropie and install ps3controller driver.

            edmaul69E 1 Reply Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @hobwell
              last edited by

              @hobwell are you sure its not a bootleg controller?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.