"FSL gnome release package" build fails at python build stage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"FSL gnome release package" build fails at python build stage

2,859 Views
Robb1z
Contributor I

Hello,

I am trying to build a minimal gnome environment using the "FSL gnome release package" build option in ltib.

However, my build is failing at the python build stage.  I did some digging and found a similar problem with fontconfig but attempting to apply the solution to my python.spec proved unsuccessful.

Here is the relevant output:

creating Makefile
+ make python Parser/pgen
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes   Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o Python/mysnprintf.o Parser/tokenizer_pgen.o Parser/printgrammar.o Parser/pgenmain.o -lpthread -ldl  -lutil -o Parser/pgen
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE -o Modules/config.o Modules/config.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE -DPYTHONPATH='":plat-linux3:lib-tk"' \
        -DPREFIX='"/usr/local"' \
        -DEXEC_PREFIX='"/usr/local"' \
        -DVERSION='"2.4"' \
        -DVPATH='""' \
        -o Modules/getpath.o ./Modules/getpath.c
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: Parser/tokenizer_pgen.o: Relocations in generic ELF (EM: 40)
Parser/tokenizer_pgen.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [Parser/pgen] Error 1
make: *** Waiting for unfinished jobs....
./Modules/getpath.c: In function 'copy_absolute':
./Modules/getpath.c:230: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result
error: Bad exit status from /home/robb/ARM_board/L2.6.35_11.09.01_ER_source/ltib/tmp/rpm-tmp.85951 (%build)


RPM build errors:
    Bad exit status from /home/robb/ARM_board/L2.6.35_11.09.01_ER_source/ltib/tmp/rpm-tmp.85951 (%build)
Build time for python: 20 seconds

Failed building python

Labels (1)
0 Kudos
4 Replies

939 Views
Robb1z
Contributor I

That did it...

Would love to know what that means because I came across it again while cross-compiling some custom applications and a 'make clean' didn't solve it... but I'll settle for a workaround for now!

Thanks Jorge.

0 Kudos

939 Views
LeonardoSandova
Specialist I

I just tried to reproduce the problem executing the above command but the issue was not present; I believe you found it when just running './ltib'

./ltib -m prep -p python && ./ltib -m scbuild -p python

I am not sure why the make clean solves the issues. Perhaps adding this extra command on the python spec can avoid this, not sure.

Leo

0 Kudos

939 Views
JorgeMuaᄆoz
Contributor I

Hi I had the same problem, I never knew why it failed.
The solution is to go to the folder were Python was being build and do a 'make clean', then you can run ltib again and see it compile it without problems.

0 Kudos

939 Views
zhiyancao
Contributor II

Thank you.

0 Kudos