Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 05-15-2006, 06:52 PM   #1
LQ Newbie
Registered: May 2006
Posts: 8

Rep: Reputation: 0
Cross Compile Embedded

Hi All,

I have had several issues attempting to compile a gpe-image. Everytime I use bitbake to create a gpe-image, it falls over, complaining about PREFERRED_PROVIDERS not being set, properly and DISTRO versions. I have however set them in my local.conf file, but I just don't know which versions I can combine with what, so I get a working gpe-image....

Is there anyone which could let me know what exisiting packages I should use and what parameters I should use in my local.conf file for a successful gpe-image so I can run gtk on an embedded device?

Old 05-24-2006, 10:43 PM   #2
LQ Newbie
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Here is some more specific information.....

NOTE: Using cache in '/stuff/build/tmp/cache'
Parsing .bb files, please wait...done.
NOTE: Parsing finished. 0 cached, 3304 parsed, 88 skipped, 0 masked.
NOTE: build 200605251312: started

OE Build Configuration:
OE_REVISION = "4689c198b9377662259edcd5ff48375cfb709ee8"
TARGET_OS = "linux"
MACHINE = "lpd7a400"
DISTRO = "familiar"
DISTRO_VERSION = "v0.8.4-rc1"
TARGET_FPU = "soft"

NOTE: current path: gpe-image (gpe-image)
| make[2]: Leaving directory `/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/build.i686-linux.arm-linux/gcc/intl'
| gcc -c -I/stuff/build/tmp/staging/i686-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I/stuff/build/tmp/staging/i686-linux/include -I. -If -I/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc -I/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f -I/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/config -I/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/../include /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c -o f/com.o
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c: In function ‘ffecom_char_args_x_’:
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c:1938: warning: pointer targets in passing argument 2 of ‘build_string’ differ in signedness
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c: In function ‘ffecom_constantunion’:
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c:10528: warning: pointer targets in passing argument 2 of ‘build_string’ differ in signedness
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c:10549: warning: pointer targets in passing argument 2 of ‘build_string’ differ in signedness
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c: At top level:
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.c:11080: error: conflicting types for ‘ffecom_gfrt_basictype’
| /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/gcc/f/com.h:236: error: previous declaration of ‘ffecom_gfrt_basictype’ was here
| make[1]: *** [f/com.o] Error 1
| make[1]: Leaving directory `/stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/gcc-3.3.4/build.i686-linux.arm-linux/gcc'
| make: *** [all-gcc] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /stuff/build/tmp/work/i686-linux/gcc-cross-3.3.4-r3/temp/log.do_compile.9506
NOTE: package gcc-cross-3.3.4-r3: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package gcc-cross-3.3.4: failed
ERROR: Build of gpe-image failed

Here are my local.conf parameters

DL_DIR = "${HOME}/downloads"
BBFILES := "/stuff/*/*.bb"

# Use the BBMASK below to instruct BitBake to _NOT_ consider some .bb files
# This is a regulary expression, so be sure to get your parenthesis balanced.

# Select between multiple alternative providers, if more than one is eligible.
#PREFERRED_PROVIDERS += "virtual/qte:qte virtual/libqpe:libqpe-opie"
#PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-qpe"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
PREFERRED_PROVIDERS += "virtual/xserver:xserver-kdrive"
PREFERRED_PROVIDERS += "virtual/gconf:gconf-dbus"




# Uncomment this to specify where BitBake should create its temporary files.
# Note that a full build of everything in OpenEmbedded will take GigaBytes of hard
# disk space, so make sure to free enough space. The default TMPDIR is
# <build directory>/tmp
# Don't use symlinks in in the path to avoid problems
# TMPDIR = /usr/local/projects/oetmp

# Uncomment this to specify a machine to build for. See the conf directory
# for machines currently known to OpenEmbedded.
MACHINE = "lpd7a400"

# Use this to specify the target architecture. Note that this is only
# needed when building for a machine not known to OpenEmbedded. Better use
# the MACHINE attribute (see above)
#TARGET_ARCH = "arm"

# Use this to specify the target operating system. The default is "linux",
# for a normal linux system with glibc. Set this to "linux-uclibc" if you want
# to build a uclibc based system.
TARGET_OS = "linux"
# TARGET_OS = "linux-uclibc"



# Add the required image file system types below. Valid are jffs2, tar, cramfs and ext2
IMAGE_FSTYPES = "jffs2 tar"

# Uncomment this to disable the parse cache (not recommended).
# CACHE = ""

# Uncomment this if you want BitBake to emit debugging output
BBDEBUG = "yes"

# Uncomment this if you want BitBake to emit the log if a build fails.

# Specifies a location to search for pre-generated tarballs when fetching
# a cvs:// URI. Outcomment this, if you always want to pull directly from CVS.

export GNU_MIRROR = ""
export DEBIAN_MIRROR = ""
export GPE_MIRROR = ""
export XLIBS_MIRROR = ""
export GNOME_MIRROR = ""
Hopefully someone knows what is going on.

By looking at the error messages I think it is the versions I have specified of gcc that is wrong...
Old 06-30-2006, 06:39 AM   #3
LQ Newbie
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0

I have a similar error with bitbake (for nylon dist with mips cpu).

I also suspect it may be a gcc / glibc version problem.

Did you solve this?




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I cross compile the kernel? Basel Slackware 5 09-07-2005 06:23 AM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration