LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 06-12-2012, 08:52 AM   #1
asifiqbalrs
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Cross-compile oprofile user tools issues


Hi,

I'm sorry to have woken up a rather sleeping thread. But I'm facing a similar issue.

I'm pretty new to linux, especially the cross compiling stuff.

I'm trying to cross compile oprofile for ARM cortex A8, using the codesourcery toolchain.

I'm pretty much following the steps mentioned in the link:

http://old.nabble.com/cross-compilin...d19438124.html

oprofile is dependent on the popt and binutils/libiberty library, so here is the steps I follow as mentioned in the link above:

1. Cross compile the popt libraries.


cd popt-1.14
mkdir arm
POPT=$PWD
cd arm
../configure --host=arm-none-linux-gnueabi
make


2. Cross compile the binutils libraries.

cd binutils-2.12
mkdir arm
BINUTILS=$PWD
cd arm
../configure --build=x86-none-linux-gnu --host=arm-none-linux-gnueabi
make

3. Cross compile the oprofile binaries, which includes the libraries compiled in the above two steps,

cd oprofile-0.9.7
mkdir arm
cd arm
../configure --host=arm-none-linux-gnueabi \
--with-kernel-support \
--with-extra-libs=$POPT/arm/.libs:$BINUTILS/arm/bfd/.libs \
--with-extra-includes=$POPT:$BINUTILS/arm/bfd:$BINUTILS/bfd:$BINUTILS/include \
CC=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-gcc \
CXX=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-g++ \
CPP=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-cpp \
AR=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-ar \
STRIP=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-strip \
AS=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-as \
RANLIB=/opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-ranlib


but when I try to make after this particular configuration, I hit an issue:

config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make[2]: Entering directory `/home/asif/binutils-2.22/arm/binutils'
if [ -r sysinfo.c ]; then \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow sysinfo.c ; \
else \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow ../../binutils/sysinfo.c ; \
fi
/usr/local/bin/as: 1: Syntax error: word unexpected (expecting ")")

Few lines from the config.log indicating the error

configure:12789: /opt/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -c -g -O2 conftest.c >&5
configure:12789: $? = 0
configure:12804: result: 4
configure:12858: checking for build system executable suffix
/usr/local/bin/as: 1: Syntax error: word unexpected (expecting ")")


Please let me know if you need any more clarifications, early help would be much appriciated.
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using oprofile on Centos Linux Unable to complete dump of oprofile data Frank36 Linux - Newbie 0 04-26-2011 11:42 AM
what tools should i use to code a cross platform software? ciden Programming 4 12-01-2010 10:35 AM
sms server tools cross compiling golden_boy615 Programming 1 03-28-2010 12:09 PM
Cross Compile Tools on Linux for FreeBSD rabh Linux - Software 1 03-04-2009 09:37 PM
New to LQ with Cross Platform tools RufusG LinuxQuestions.org Member Intro 1 08-27-2008 02:30 AM


All times are GMT -5. The time now is 03:08 AM.

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