[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-issues
Subject:    [oe-issues] [Bug 1534] New: diet-x11 fails due to wrong target arch
From:       bugzilla-daemon () tinman ! treke ! net (bugzilla-daemon at tinman ! treke ! net)
Date:       2006-10-27 15:35:00
Message-ID: 20061027153500.A1EB740169D () tinman ! treke ! net
[Download RAW message or body]

http://bugs.openembedded.org/show_bug.cgi?id=1534

           Summary: diet-x11 fails due to wrong target arch
           Product: Openembedded
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Distributions
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: mpanczyk at gmail.com
         QAContact: tinderbox-oe at gmx.net


Bitbaking diet-x11 fails due to wrong arch. The files ../src/util/makekeys and
../util/makestrs are compiled with CC parameter set to arm-linux-gcc
-march=armv5te -mtune=xscale - while they are needed during crosscompilation.
This results in errors like : 
makekeys:

===
 x11-X11R7.1-1.0.1-r1/libX11-X11R7.1-1.0.1/src/util'
| ../src/util/makekeys < /mnt/nfs/tmp/staging/arm-linux/include/X11/keysymdef.h
> ks_tables_h
| /bin/sh: ../src/util/makekeys: cannot execute binary file
| make[1]: *** [ks_tables.h] Error 126
===

and makestrs:

===
| ../util/makestrs -i
/mnt/nfs/tmp/work/armv5te-linux/libxt-X11R7.1-1.0.2-r0/libXt-X11R7.1-1.0.2  <
/mnt/nfs/tmp/work/armv5te-linux/libxt-X11R7.1-1.0.2-r0/libXt-X11R7.1-1.0.2/util/string.list
> StringDefs.c
| /bin/sh: ../util/makestrs: cannot execute binary file
| make[2]: *** [StringDefs.c] Error 126

===.

A simple and dumb solution I have made was :
For makekeys:
in
tmp/work/armv5te-linux/diet-x11-X11R7.1-1.0.1-r1/libX11-X11R7.1-1.0.1/src/util/Makefile
edit and substitute the line:
CC = arm-linux-gcc -march=armv5te -mtune=xscale
with 
CC = gcc
 then in the same directory
(tmp/work/armv5te-linux/diet-x11-X11R7.1-1.0.1-r1/libX11-X11R7.1-1.0.1/src/util/)
make clean && make 
And simmilar for makestrs:
in
tmp/work/armv5te-linux/libxt-X11R7.1-1.0.2-r0/libXt-X11R7.1-1.0.2/util/Makefile
do simmilar as above (in the dir
tmp/work/armv5te-linux/libxt-X11R7.1-1.0.2-r0/libXt-X11R7.1-1.0.2/util/).

This simple (but dumb) solutions work for a while. I know that this can be made
more proffecionally using Makefile.in and Makefile.am. 

Sorry - I am not able to create patches - lack of knowlage and practise. Could
somebody do it ? 

Michal


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic