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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-25-2009, 11:21 PM
#1
LQ Newbie
Registered: May 2009
Posts: 14
Rep:
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
05-26-2009, 01:12 AM
#2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
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
05-26-2009, 02:19 AM
#3
Senior Member
Registered: May 2005
Posts: 4,481
Quote:
Originally Posted by
ashes_sheldon
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.
05-27-2009, 12:45 AM
#4
LQ Newbie
Registered: May 2009
Posts: 14
Original Poster
Rep:
/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 ?
05-27-2009, 01:14 AM
#5
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
"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.
05-27-2009, 02:07 AM
#6
LQ Newbie
Registered: May 2009
Posts: 14
Original Poster
Rep:
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 .
05-27-2009, 02:09 AM
#7
LQ Newbie
Registered: May 2009
Posts: 14
Original Poster
Rep:
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
05-27-2009, 02:39 AM
#8
Senior Member
Registered: May 2005
Posts: 4,481
Quote:
Originally Posted by
ashes_sheldon
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.
05-27-2009, 03:09 AM
#9
LQ Newbie
Registered: May 2009
Posts: 14
Original Poster
Rep:
thnks ... but how do i make it to target format ?
05-27-2009, 03:19 AM
#10
Senior Member
Registered: May 2005
Posts: 4,481
Quote:
Originally Posted by
ashes_sheldon
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.
05-27-2009, 03:26 AM
#11
LQ Newbie
Registered: May 2009
Posts: 14
Original Poster
Rep:
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"
05-27-2009, 04:03 AM
#12
Senior Member
Registered: May 2005
Posts: 4,481
Quote:
Originally Posted by
ashes_sheldon
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.
All times are GMT -5. The time now is 08:51 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News