Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot compile with x.4
27-12-2012, 11:06 PM,
#1
Cannot compile with x.4
Hi,

I am using revision 679.

Every time that I hit the compile button I get the following error:

Code:
Traceback (most recent call last):
  File "/home/matias/ide/wxgui/pinguino.py", line 394, in OnVerify
    retour=self.compile(filename, self.curBoard)
  File "/home/matias/ide/wxgui/pinguino.py", line 772, in compile
    stdout=fichier, stderr=STDOUT)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 8] Formato de ejecutable incorrecto

Any ideas?

Thanks,
Matías
Reply
28-12-2012, 12:11 AM,
#2
RE: Cannot compile with x.4
Is it the same with all the examples and no matter what board you select?

Details of your OS?

John
Reply
28-12-2012, 12:48 AM,
#3
RE: Cannot compile with x.4
I am running Arch Linux with kernel 3.6, Python 2.7.

This problem always happens, without regarding the device nor the code.

Pingüino IDE x.3 works fine for me, albeit it does not support 26J50 very well, the board which I am working now.
Reply
28-12-2012, 10:22 AM, (This post was last modified: 28-12-2012, 10:23 AM by pingotg.)
#4
RE: Cannot compile with x.4
Have a look in the .py files at the lines shown and I suspect it'll be trying to run an external command (maybe make). If so, the error is saying it's not a proper executable, which might mean it's finding the wrong program. Supposing I've guessed right so far, it would then mean either a file with the same name has wrongly been marked executable (x permission) or the PATH (or possibly an ld setting such as LD_LIBRARY_PATH) is wrong.

The 8 errno value is meant to help!

John
Reply
30-12-2012, 03:00 PM, (This post was last modified: 30-12-2012, 03:01 PM by Benito.)
#5
RE: Cannot compile with x.4
Hi, First sorry for my English. I also had the same problem. I note that there is another thread http://forum.pinguino.cc/showthread.php?tid=3750 that was the one that helped me fix it. This error occurs on computers with 32bit linux. PinguinoX4 sdcc only have 64bit compiled binary.

To fix it I downloaded the latest svn of sdcc (sdcc-snapshot-i386-unknown-linux2.5-20121228-8293.tar) decompress in a folder and replace the folder "Pinguino/linux/p8/bin" by the bin of sdcc .

SDCC depends on the utility called gputils and you must install.

"sudo apt-get install gputils"

PInguinoX3 has two folders "Pinguino/linux/p8/bin" (32bit binary) and "Pinguino/linux/p8/bin2" (64bit binary). PinguinoX4 simply "Pinguino/linux/p8/bin" (64bit binary). It may be good to implement the same system as PinguinoX3, and at PinguinoX4 booting, check if installed gputils.

Best regards,
Benito
Reply
02-01-2013, 12:40 AM,
#6
RE: Cannot compile with x.4
I could solve the problem with your indications. Indeed, my Linux is 32-bits.

I installed gputils a replaced the following binaries:
  • gpasm
  • gplink
  • sdcc
  • sdcpp

Thanks!
Matías
Reply
02-01-2013, 07:47 PM,
#7
RE: Cannot compile with x.4
Thanks matias ! that work now,

I have installed gputils and copy gpasm and gplink from /usr/bin to Pinguino/p8/bin folder

I had already copy a 32b version of the sdcc few week ago.

Sorry for my English, i'm French
timiti29
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)