LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2009, 11:21 PM   #1
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 0
Unhappy cross-compiling parted ;make[2]: *** [linux.lo] Error 1


i have to cross compile parted to an embedded system, arm processor. hence i ran the following commands,taking care of all the flags and cross-compiler tools:
1)
./configure CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib LD=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ld ac_ct_AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar ac_ct_CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ac_ct_CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ ac_ct_RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib --host=arm-linux build_cpu=arm build=arm-linux --target=arm-linux

which gave me no error

2) make

gave me the following error :
make[2]: *** [linux.lo] Error 1
make[2]: Leaving directory `/home/ashish/Desktop/parted-1.8.4/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ashish/Desktop/parted-1.8.4/libparted'
make: *** [all-recursive] Error 1

well please let me know whts the problem

Thank you,
Ashish
 
Old 05-26-2009, 01:12 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try it like this:
CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc AR=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar CXX=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ RANLIB=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib LD=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ld ac_ct_AR=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar ac_ct_CC=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ac_ct_CXX=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ ac_ct_RANLIB=/opt/ \ mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib \
./configure --host=arm-linux build_cpu=arm build=arm-linux --target=arm-linux
 
Old 05-26-2009, 02:19 AM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by ashes_sheldon View Post
i have to cross compile parted to an embedded system, arm processor. hence i ran the following commands,taking care of all the flags and cross-compiler tools:
1)
./configure CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib LD=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ld ac_ct_AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar ac_ct_CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ac_ct_CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ ac_ct_RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib --host=arm-linux build_cpu=arm build=arm-linux --target=arm-linux

which gave me no error

2) make

gave me the following error :
make[2]: *** [linux.lo] Error 1
make[2]: Leaving directory `/home/ashish/Desktop/parted-1.8.4/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ashish/Desktop/parted-1.8.4/libparted'
make: *** [all-recursive] Error 1


well please let me know whts the problem

Thank you,
Ashish
Your published error message is useless - this is because it's just the error message which does not show the last command executed by 'make', and most likely a number of informative error messages caused by the last command.
 
Old 05-27-2009, 12:45 AM   #4
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c arch/linux.c -fPIC -DPIC -o .libs/linux.o

well this was the last command

well i guess its not creating a file called linux.o ...
should be evident from the error msg !

also when i ran configure i saw the log ..
./configure: line 40132: sort: No such file or directory
./configure: line 40129: sed: No such file or directory


but sort and sed are inbuilt right ?
 
Old 05-27-2009, 01:14 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
"should be evident from the error msg" yeah, if you are sitting there and can scroll back up and see all the messages and know exatcly what command was used to start the build...

"but sort and sed are inbuilt right ?" Built into what? What system are you running? What distro, which compiler, which bintuils, which glibc?

I suggested changinh the order of passing the commands because ordinarily these type of constructs:
CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc
are either exported or passed as environmental variables before the ./configure command-line.
Did you try that, the way I suggested.
It's okay to post the *full* output including the exact command you started with. Otherwise we can't help.
 
Old 05-27-2009, 02:07 AM   #6
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
i tried wht u said . but it didnt work.
i am working on rhel5.2 i686

i have one more doubt the host flag of the configure ... --host=arm-linux ...is this correct

isn't it the host machine's name which has to be put ..
is it --host=redhat ?
else how do i get the host name .. i tried uname .. didnt work


well here's is the error log :

**********************************
mkdir .libs
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -fPIC -DPIC -o .libs/debug.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -o debug.o >/dev/null 2>&1
mv -f .deps/debug.Tpo .deps/debug.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c -o device.lo device.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c device.c -fPIC -DPIC -o .libs/device.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c device.c -o device.o >/dev/null 2>&1
mv -f .deps/device.Tpo .deps/device.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c -o exception.lo exception.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c exception.c -fPIC -DPIC -o .libs/exception.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c exception.c -o exception.o >/dev/null 2>&1
mv -f .deps/exception.Tpo .deps/exception.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c -o filesys.lo filesys.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c filesys.c -fPIC -DPIC -o .libs/filesys.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c filesys.c -o filesys.o >/dev/null 2>&1
mv -f .deps/filesys.Tpo .deps/filesys.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c -o libparted.lo libparted.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c libparted.c -fPIC -DPIC -o .libs/libparted.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c libparted.c -o libparted.o >/dev/null 2>&1
mv -f .deps/libparted.Tpo .deps/libparted.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c -o timer.lo timer.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -fPIC -DPIC -o .libs/timer.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -o timer.o >/dev/null 2>&1
mv -f .deps/timer.Tpo .deps/timer.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c -o unit.lo unit.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c unit.c -fPIC -DPIC -o .libs/unit.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c unit.c -o unit.o >/dev/null 2>&1
mv -f .deps/unit.Tpo .deps/unit.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c -o disk.lo disk.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c disk.c -fPIC -DPIC -o .libs/disk.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c disk.c -o disk.o >/dev/null 2>&1
mv -f .deps/disk.Tpo .deps/disk.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c -o geom.lo `test -f 'cs/geom.c' || echo './'`cs/geom.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c cs/geom.c -fPIC -DPIC -o .libs/geom.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c cs/geom.c -o geom.o >/dev/null 2>&1
mv -f .deps/geom.Tpo .deps/geom.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c -o constraint.lo `test -f 'cs/constraint.c' || echo './'`cs/constraint.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c cs/constraint.c -fPIC -DPIC -o .libs/constraint.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c cs/constraint.c -o constraint.o >/dev/null 2>&1
mv -f .deps/constraint.Tpo .deps/constraint.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c -o natmath.lo `test -f 'cs/natmath.c' || echo './'`cs/natmath.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c cs/natmath.c -fPIC -DPIC -o .libs/natmath.o
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c cs/natmath.c -o natmath.o >/dev/null 2>&1
mv -f .deps/natmath.Tpo .deps/natmath.Plo
/bin/sh ../libtool --tag=CC --mode=compile /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c -o linux.lo `test -f 'arch/linux.c' || echo './'`arch/linux.c
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c arch/linux.c -fPIC -DPIC -o .libs/linux.o
In file included from /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/include/sys/syscall.h:25,
from /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/include/syscall.h:1,
from arch/linux.c:32:
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/include/asm/unistd.h:34:2: #warning "forced old ABI syscalls on EABI build"
make[2]: *** [linux.lo] Error 1
make[2]: Leaving directory `/home/mindtree/Desktop/parted-1.8.8/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mindtree/Desktop/parted-1.8.8/libparted'
make: *** [all-recursive] Error 1


************************************************

plz help

Last edited by ashes_sheldon; 05-27-2009 at 03:24 AM.
 
Old 05-27-2009, 02:09 AM   #7
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
the above log i got after i executed the following commands

./configure --without-readline --host=arm-linux --target=arm-linux CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib LD=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ld ac_ct_AR=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar ac_ct_CC=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ac_ct_CXX=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++ ac_ct_RANLIB=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ranlib STRIP=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-strip ac_ct_STRIP=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-strip

which gave me no error
and then



make

which gave me the following above error
 
Old 05-27-2009, 02:39 AM   #8
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by ashes_sheldon View Post
i tried wht u said . but it didnt work.
i am working on rhel5.2 i686

i have one more doubt the host flag of the configure ... --host=arm-linux ...is this correct

isn't it the host machine's name which has to be put ..
is it --host=redhat ?
else how do i get the host name .. i tried uname .. didnt work


well here's is the error log :

**********************************
mkdir .libs
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -fPIC -DPIC -o .libs/debug.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -o debug.o >/dev/null 2>&1
mv -f .deps/debug.Tpo .deps/debug.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c -o device.lo device.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c device.c -fPIC -DPIC -o .libs/device.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT device.lo -MD -MP -MF .deps/device.Tpo -c device.c -o device.o >/dev/null 2>&1
mv -f .deps/device.Tpo .deps/device.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c -o exception.lo exception.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c exception.c -fPIC -DPIC -o .libs/exception.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c exception.c -o exception.o >/dev/null 2>&1
mv -f .deps/exception.Tpo .deps/exception.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c -o filesys.lo filesys.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c filesys.c -fPIC -DPIC -o .libs/filesys.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c filesys.c -o filesys.o >/dev/null 2>&1
mv -f .deps/filesys.Tpo .deps/filesys.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c -o libparted.lo libparted.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c libparted.c -fPIC -DPIC -o .libs/libparted.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT libparted.lo -MD -MP -MF .deps/libparted.Tpo -c libparted.c -o libparted.o >/dev/null 2>&1
mv -f .deps/libparted.Tpo .deps/libparted.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c -o timer.lo timer.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -fPIC -DPIC -o .libs/timer.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -o timer.o >/dev/null 2>&1
mv -f .deps/timer.Tpo .deps/timer.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c -o unit.lo unit.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c unit.c -fPIC -DPIC -o .libs/unit.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT unit.lo -MD -MP -MF .deps/unit.Tpo -c unit.c -o unit.o >/dev/null 2>&1
mv -f .deps/unit.Tpo .deps/unit.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c -o disk.lo disk.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c disk.c -fPIC -DPIC -o .libs/disk.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT disk.lo -MD -MP -MF .deps/disk.Tpo -c disk.c -o disk.o >/dev/null 2>&1
mv -f .deps/disk.Tpo .deps/disk.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c -o geom.lo `test -f 'cs/geom.c' || echo './'`cs/geom.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c cs/geom.c -fPIC -DPIC -o .libs/geom.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT geom.lo -MD -MP -MF .deps/geom.Tpo -c cs/geom.c -o geom.o >/dev/null 2>&1
mv -f .deps/geom.Tpo .deps/geom.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c -o constraint.lo `test -f 'cs/constraint.c' || echo './'`cs/constraint.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c cs/constraint.c -fPIC -DPIC -o .libs/constraint.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT constraint.lo -MD -MP -MF .deps/constraint.Tpo -c cs/constraint.c -o constraint.o >/dev/null 2>&1
mv -f .deps/constraint.Tpo .deps/constraint.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c -o natmath.lo `test -f 'cs/natmath.c' || echo './'`cs/natmath.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c cs/natmath.c -fPIC -DPIC -o .libs/natmath.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT natmath.lo -MD -MP -MF .deps/natmath.Tpo -c cs/natmath.c -o natmath.o >/dev/null 2>&1
mv -f .deps/natmath.Tpo .deps/natmath.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c -o linux.lo `test -f 'arch/linux.c' || echo './'`arch/linux.c
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c arch/linux.c -fPIC -DPIC -o .libs/linux.o
gcc -std=gnu99 -I. -I../lib -I../lib -I../include -g -O2 -Werror -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c arch/linux.c -o linux.o >/dev/null 2>&1
mv -f .deps/linux.Tpo .deps/linux.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Werror -version-info 8:0:0 -release 1.8 -Wl,--as-needed -rdynamic -o libparted.la -rpath /usr/local/lib debug.lo device.lo exception.lo filesys.lo libparted.lo timer.lo unit.lo disk.lo geom.lo constraint.lo natmath.lo linux.lo -ldl fs/libfs.la labels/liblabels.la
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -std=gnu99 -shared .libs/debug.o .libs/device.o .libs/exception.o .libs/filesys.o .libs/libparted.o .libs/timer.o .libs/unit.o .libs/disk.o .libs/geom.o .libs/constraint.o .libs/natmath.o .libs/linux.o -Wl,--whole-archive fs/.libs/libfs.a labels/.libs/liblabels.a -Wl,--no-whole-archive -ldl -luuid -Wl,--as-needed -Wl,-soname -Wl,libparted-1.8.so.8 -o .libs/libparted-1.8.so.8.0.0
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: .libs/debug.o: Relocations in generic ELF (EM: 3)
.libs/debug.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libparted.la] Error 1
make[2]: Leaving directory `/home/mindtree/Desktop/parted-1.8.8/libparted'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mindtree/Desktop/parted-1.8.8/libparted'
make: *** [all-recursive] Error 1

************************************************

plz help
Do you see the item in bold red ?

Most likely the file in wrong format is a file in native format, while you need the file in target format.
 
Old 05-27-2009, 03:09 AM   #9
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
thnks ... but how do i make it to target format ?
 
Old 05-27-2009, 03:19 AM   #10
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by ashes_sheldon View Post
thnks ... but how do i make it to target format ?
First of all, it is not yet known in what sense the file has wrong format.

Try to determine exactly what format it has, using 'file', 'objdump', etc.
 
Old 05-27-2009, 03:26 AM   #11
ashes_sheldon
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
hey sry .. the error log was diff . plz check out the modified one

the before error log was the one , when i made a unconditional make . i.e. "make --keep-going"
 
Old 05-27-2009, 04:03 AM   #12
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by ashes_sheldon View Post
hey sry .. the error log was diff . plz check out the modified one

the before error log was the one , when i made a unconditional make . i.e. "make --keep-going"
Don't confuse us, and respect our time.

Do not use 'make --keep-going'.

Make an effort and find in the 'make' screen output the very first error message and the command line (it's just above the error message) which produces it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cross-compiling error tamilm Linux - Networking 1 09-16-2008 06:26 PM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - General 1 12-11-2007 06:54 AM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - Newbie 0 12-11-2007 06:49 AM
Linking error while Cross compiling m.harshavardhan Linux - Software 0 07-31-2006 06:08 AM
Error cross-compiling glibc, chapter 5 donbellioni Linux From Scratch 2 09-17-2004 02:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration