compiling modules fail [solved]

Started by escho, April 16, 2016, 12:41:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

escho

I wanted to compile ML, but the modules fail to compile. ML-core compiles fine. Happens on both, 600D and 6D and happens with all modules. Latest source-code ML-unified.

Last time, I compiled, was about a year ago, without problems.

What did I change in this year:
1. last year OpenSuse 13.1 64bit, now OpenSuse Leap 42.1 64bit
2. last year compiling in main sytem, now compiling in a virtual machine
3. last year compiling system-language= german, now system-language=english

Using gcc-arm-none-eabi-4_9-2015q1, same than last year.

I donĀ“t know, where i should start searching the fault.



------------------------6D------------------------------------
make clean

../../Makefile.filerules:35: warning: overriding recipe for target 'autoexec.bin'
Makefile:13: warning: ignoring old recipe for target 'autoexec.bin'
make 6D

make -C  /home/edgar/ML/magic-lantern/platform/6D.116
make[1]: Entering directory '/home/edgar/ML/magic-lantern/platform/6D.116'
[ VERSION  ]   ../../platform/6D.116/version.bin
[ CPP      ]   magiclantern.lds
...
...
...
Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  EXIDX          0x06bde0 0x00c87de0 0x00c87de0 0x00008 0x00008 R   0x4
  LOAD           0x000100 0x00c1c100 0x00c1c100 0x6bce8 0x7ca24 RWE 0x100
[ XOR_CHK  ]   ../../build_tools/xor_chk
[ OBJCOPY  ]   autoexec.bin
[ OBJCOPY  ]   autoexec.bin
[ XOR_CHK  ]   autoexec.bin
[ SYMBOLS  ]   magiclantern.sym
[ CP       ]   6D_116.sym
make[1]: Leaving directory '/home/edgar/ML/magic-lantern/platform/6D.116'



------------------------mlv_rec------------------------------------
make clean

make

Updated HGVERSION
[ README   ]   module_strings.h
Traceback (most recent call last):
  File "../readme2modulestrings.py", line 113, in <module>
    txt = run('cat README.rst | grep -v -E "^:([^:])+:.+$" | ' + rst2htmlCommand + ' | python ../html2text.py -b 700 | sed "s/\r$//"')
TypeError: cannot concatenate 'str' and 'NoneType' objects
../Makefile.modules:39: recipe for target 'module_strings.h' failed
make: *** [module_strings.h] Error 1
cp: cannot stat '/home/edgar/ML/magic-lantern/modules/mlv_rec/mlv_rec.mo': No such file or directory
cp: cannot stat '/home/edgar/ML/magic-lantern/modules/mlv_rec/mlv_dump': No such file or directory
edgar@linux-pzco:~>
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed


a1ex

From the error:


TypeError: cannot concatenate 'str' and 'NoneType' objects


In the affected line, you have:


    txt = run('cat README.rst | grep -v -E "^:([^:])+:.+$" | ' + rst2htmlCommand + ' | python ../html2text.py -b 700 | sed "s/\r$//"')


- a function call (but the error does not refer to any line in that function, so the call wasn't made)
- two constant strings and a variable, concatenated
- therefore, that variable must be None
- why? most likely rst2html was not found

Of course, a better error message would be handy.

escho

ThankYou, Walter and Alex

I installed pyhon3-docutils and now raw_rec is compiled fine.

Edgar
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed

escho

Just in addition for myself:
I have to add these packages on my 64bit-machine, to be able to compile mlv_dump and cr2hdr:
gcc-32bit
glibc-devel-32bit
https://sternenkarten.com/
600D, 6D, openSUSE Tumbleweed