by mgrecki » Fri Jan 27, 2017 2:58 pm
it is a shame, that clearly pointed-out errors are not corrected for months. There is nothing more irritating than downloading a software package and be not able to compile it following README etc. I want to say that the idea of parallella board is wonderful and even hardware in spite of bad USB experience is OK, but the SW part is really painful. That concerns also PAL which should be fully reliable. Look, the hardware platform is the same, the software base (OS and ESDK) is the same - why the package developer cannot see it is not compilable? Always something must be corrected and adjusted....
That was general remark, now going back to PAL. On fresh system with newest ESDK and PAL you cannot compile examples. That was already mentioned November last year... Further, even if the examples are excluded in .configure it is not possible to make "make install", since the installation scripts cannot find epiphany-elf-ranlib. You have to put the full path to it in the libtool script (at pal/devices/epiphany directory) to complete installation.... (probably there is simpler and more elegant way, but this one was easiest to find).
Then, since examples cannot be compiled, I wrote a simple PAL program (I just copied the example from PAL README.md. Almost immediately it has occurred the p_load function has lost func parameter. In compensation the p_run function has got it. OK, I have corrected.... Compile again, some minor other corrections and viola: there is linked program. Run it..... and "SIGSEGV. In p_close function.
OK, I want to debug library. No idea how to compile with -g, maybe setting CFLAGS will enable it. Trying to ./configure -> error. I have to make make distclean before. Well, trying -> errors. And now it is hopeless situation. I cannot make configure, the only way is probably get a fresh clone and start again. Well, it is not impossible, but should it be like that?
No idea why there are these problems... if I can run any example and then make it more rich and complex I can even find and correct some library errors. But only when I have some starting point.... If already at the begging there are problems I am discouraged. And tired.
So the PAL in current version require further debugging. Probably I will dig in a little, but this way is completely not effective and heavily losing time.