14 Replies Latest reply on Jul 4, 2014 6:45 PM by harshmer

    unable to execute i586-poky-linux-uclibc-gcc: No such file or directory

    harshmer

      Hi Guys,

       

      "unable to execute i586-poky-linux-uclibc-gcc: No such file or directory

      error: Setup script exited with error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1"


      While installing a package called "Gevent" i came across this error

       

      root@clanton:~# easy_install gevent

      Searching for gevent

      Reading https://pypi.python.org/simple/gevent/

      Best match: gevent 1.0.1

      Downloading https://pypi.python.org/packages/source/g/gevent/gevent-1.0.1.tar.gz#md5=7b952591d1a0174d6eb6ac47bd975ab6

      Processing gevent-1.0.1.tar.gz

      Writing /tmp/easy_install-ZGUC4G/gevent-1.0.1/setup.cfg

      Running gevent-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZGUC4G/gevent-1.0.1/egg-dist-tmp-gSwMts

      Running '/bin/sh /var/volatile/tmp/easy_install-ZGUC4G/gevent-1.0.1/libev/configure > configure-output.txt' in /var/volatile/tmp/easy_install-ZGUC4G/gevent-1.0.1/build/temp.linux-i586-2.7/libev

      configure: error: newly created file is older than distributed files!

      Check your system clock

      unable to execute i586-poky-linux-uclibc-gcc: No such file or directory

      error: Setup script exited with error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1

      root@clanton:~#

       

       

      Has anyone come across this error? Any help would be appreciated.

       

      Thanks a lot

       

      Regards,

      Harsh

        • 1. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
          JPMontero_Intel

          Hi

          I tried installing the getevent 1.0.1 and greelet 0.4.2 and I got the same error for both of them. I’ll keep researching on this.

          Regards
          JPMontero_Intel

          1 of 1 people found this helpful
          • 2. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
            mhahn

            silly question: do you actually have gcc installed at all?

            1 of 1 people found this helpful
            • 3. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
              harshmer

              According to the error i think the gcc is not installed. Thats what my question is "where could i and how could i install this i586 poky linux gcc thingy.? I researched a bit but the information that i got was quite confusing and perhaps i couldn't understand.

               

              Even i think the same that gcc is not installed in the standard linux image for the galileo. Any assistance on this problem from your side mhahn?

               

              Thanks for your time looking into this issue. its really bugging me.

              • 4. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                AlexT_Intel

                gcc is not installed out of the box. You can either create a cross-compilation toolchain by following instructions in BSP build guide or install it from my package repo (Package Repo Configuration Instructions). Here's a blog post outlining the steps to get it installed: Installing development tools onto Galileo official Linux image

                1 of 1 people found this helpful
                • 5. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                  harshmer

                  Hi Alex,

                  Thanks for your response. I've been looking at your posts in the community have come across your dev-tools image. http://telekinect.media.mit.edu/galileo/image-devtools-1.0.1-1.tar.bz2 i have installed this version and now i have the gcc in it.

                  But now i ran into new problem i.e. while installing greenlet or gevent, for ex greenlet i encountered new error

                   

                  root@clanton:/media/realroot/greenlet-0.4.2# python setup.py install

                  running install

                  running build

                  running build_ext

                  creating /tmp/tmpuKbWhk/tmp

                  creating /tmp/tmpuKbWhk/tmp/tmpuKbWhk

                  i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c /tmp/tmpuKbWhk/simple.c -o /tmp/tmpuKbWhk/tmp/tmpuKbWhk/simple.o

                  /tmp/tmpuKbWhk/simple.c:1:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]

                  building 'greenlet' extension

                  creating build

                  creating build/temp.linux-i586-2.7

                  i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-i586-2.7/greenlet.o

                  In file included from greenlet.c:5:0:

                  greenlet.h:8:20: fatal error: Python.h: No such file or directory

                  compilation terminated.

                  error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1

                   

                  I have underlined the error statements.


                  I researched a bit over this error about python.h missing and the results i found says that python-dev package is missing, but python2.7 is already installed in the image isn't it?

                  the command to install python-dev is sudo ... but i cant run sudo or other things on the this image.


                  Can you please help for this issue or what can be done to install python-dev environment in this image? I'm this close in operating the wemo device through the galileo. But first in need to install greenlet and gevent which needs to be installed so that i can proceed ahead.


                  Thanks for your time for looking into this issue.


                  • 6. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                    mhahn

                    if you are already root (which the shown output says) you don't need any sudo to run root commands.

                    Well, you'll need python-dev. Not sure whether there are ipk packages available for your image. You can try

                    opkg list | grep python

                     

                    If it shows a python-dev package try

                    opkg install python-dev

                    1 of 1 people found this helpful
                    • 7. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                      harshmer

                      Hi mhahn,

                       

                      Thaanks for the info.. I'll try and keep it posted. i hope it works.. cause i need to install gevent for my other package to function.

                       

                      Ok i tried .

                      this is what i got.

                       

                      root@clanton:~# opkg list|grep python

                      libpython2.7-1.0 - 2.7.3-r0.3

                      python-2to3 - 2.7.3-r0.3

                      python-audio - 2.7.3-r0.3

                      python-bsddb - 2.7.3-r0.3

                      python-codecs - 2.7.3-r0.3

                      python-compile - 2.7.3-r0.3

                      python-compiler - 2.7.3-r0.3

                      python-compression - 2.7.3-r0.3

                      python-core - 2.7.3-r0.3

                      python-crypt - 2.7.3-r0.3

                      python-ctypes - 2.7.3-r0.3

                      python-curses - 2.7.3-r0.3

                      python-datetime - 2.7.3-r0.3

                      python-db - 2.7.3-r0.3

                      python-debugger - 2.7.3-r0.3

                      python-difflib - 2.7.3-r0.3

                      python-distutils - 2.7.3-r0.3

                      python-doctest - 2.7.3-r0.3

                      python-elementtree - 2.7.3-r0.3

                      python-email - 2.7.3-r0.3

                      python-fcntl - 2.7.3-r0.3

                      python-gdbm - 2.7.3-r0.3

                      python-hotshot - 2.7.3-r0.3

                      python-html - 2.7.3-r0.3

                      python-idle - 2.7.3-r0.3

                      python-image - 2.7.3-r0.3

                      python-io - 2.7.3-r0.3

                      python-json - 2.7.3-r0.3

                      python-lang - 2.7.3-r0.3

                      python-logging - 2.7.3-r0.3

                      python-mailbox - 2.7.3-r0.3

                      python-math - 2.7.3-r0.3

                      python-mime - 2.7.3-r0.3

                      python-misc - 2.7.3-r0.3

                      python-mmap - 2.7.3-r0.3

                      python-modules - 2.7.3-r0.3

                      python-multiprocessing - 2.7.3-r0.3

                      python-netclient - 2.7.3-r0.3

                      python-netserver - 2.7.3-r0.3

                      python-nose - 1.2.1-r0

                      python-numbers - 2.7.3-r0.3

                      python-numpy - 1.7.0-r0

                      python-opencv - 2.4.9-r1

                      python-pickle - 2.7.3-r0.3

                      python-pkgutil - 2.7.3-r0.3

                      python-pprint - 2.7.3-r0.3

                      python-profile - 2.7.3-r0.3

                      python-pydoc - 2.7.3-r0.3

                      python-re - 2.7.3-r0.3

                      python-readline - 2.7.3-r0.3

                      python-resource - 2.7.3-r0.3

                      python-robotparser - 2.7.3-r0.3

                      python-shell - 2.7.3-r0.3

                      python-smtpd - 2.7.3-r0.3

                      python-sqlite3 - 2.7.3-r0.3

                      python-sqlite3-tests - 2.7.3-r0.3

                      python-stringold - 2.7.3-r0.3

                      python-subprocess - 2.7.3-r0.3

                      python-syslog - 2.7.3-r0.3

                      python-terminal - 2.7.3-r0.3

                      python-tests - 2.7.3-r0.3

                      python-textutils - 2.7.3-r0.3

                      python-threading - 2.7.3-r0.3

                      python-tkinter - 2.7.3-r0.3

                      python-unittest - 2.7.3-r0.3

                      python-unixadmin - 2.7.3-r0.3

                      python-xml - 2.7.3-r0.3

                      python-xmlrpc - 2.7.3-r0.3

                      python-zlib - 2.7.3-r0.3

                       

                      but the one you mentioned is not there,

                      Is there any other package in this list you might know which can help. Sorry i'm asking many questions, but once its working i can put up the whole solution to all the problems.

                       

                      Thanks for your time and efforts in looking for solutions.

                       

                      Regards,

                      Harsh

                      • 8. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                        mhahn

                        no, you really need python-dev. For my image:

                        # opkg list | grep python-dev  

                        python-dev - 2.7.3-r0.3

                         

                        I guess AlexT should be able to help on python-dev ipk for the telekinect image you chose

                        1 of 1 people found this helpful
                        • 9. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                          harshmer

                          thanks mhahn for the info.

                           

                          can you share your linux image with me and i'm still wondering that if your linux image has gcc installed in it?

                          Can you please share your linux image?

                           

                          And if AlexT could help me with python-dev ipk for the dev-tools image?

                           

                          Thanks mhahn.

                           

                          Regards,

                          Harsh

                          • 10. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                            mhahn

                            Not sure whether this is of any help for you:

                            I actually built devkit-daisy-multilibc branch from meta-intel-iot-devkit - Intel IoT Developer Kit metadata. A bitbake devkit-dev-prof-image will build with gcc and python-dev.

                            • 11. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                              harshmer

                              thanks mhahn.

                               

                              To be honest I actually don't know what to do with that devkit-daisy-multilibc file as i'm not a core developer for this stuff. I'm a complete noob for these stuff. This is my 1st time i'm dealing with embedded programming.

                               

                              If you can share your full image with me please? or what needs to be done with the above link about devkit-daisy-multilibc? I'm actually confused now.

                              I'm sorry but i could use some help.

                               

                              Thanks again.

                              Harsh

                              • 12. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                                mhahn

                                Well, I feared it won't be of too much help to you. You'd have to build the image yourself (Yocto bitbake) with this link. It's actually not too hard to do. But it requires a Linux box with at least 40 GB free disk space. On a virtual machine Linux on a laptop it takes me a couple of hours to build an image - of course you can significantly get the time down running on a workstation or server. Sorry, can't share an image right now. An older version would be available on Intel® IOT Developer Kit

                                • 13. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                                  AlexT_Intel

                                  There is python-dev in the package repo (http://alextgalileo.altervista.org/pkgrepo/i586/python-dev_2.7.3-r0.3_i586.ipk) and I see it's present in the package index, so you should be able to install it without problems. Just run "opkg update && opkg install python-dev".

                                   

                                  By the way, I see you're using image-devtools-1.0.1-1, I've updated the image a couple of times since then, so I'd suggest you to use that one, it has some important things updated/fixed such as AES encryption in libgcrypt or newer Node.js and OpenCV. And looks like I've pasted wrong links in my newest message in the thread devoted to that image, I've just updated them. Use these links for download:

                                   

                                  http://telekinect.media.mit.edu/galileo/image-devtools-1.0.1-3.tar.bz2

                                  http://telekinect.media.mit.edu/galileo/image-devtools-1.0.1-3.tar.bz2.md5sum

                                   

                                  And then try the abovemenioned opkg commands out, I think that should do it for you.

                                  • 14. Re: unable to execute i586-poky-linux-uclibc-gcc: No such file or directory
                                    harshmer

                                    Thanks a Milllion AlexT. The new image worked perfectly fine. Sorry for my late response as i was on holiday.

                                    I had to follow steps as well mentioned in Package Repo Configuration Instructions and then update the package. But for me the "cat" command didnt work. so i had to echo "/etc/opkg/base-feeds.conf src ...... and the links for "all.. clanton.. and i586" and run the opkg update. and then install python-dev.

                                    After installing python-dev i could successfully instal the gevent and "ouimeaux" library. Now my main target is to control the wemo device through this ouimeaux library which is python based.

                                     

                                    Thanks a million guys JPMontero_Intel mhahnAlexT_Intel for your effort and time for solving this issue.

                                    Cheers!