LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-29-2012, 02:41 AM   #1
rocket42
LQ Newbie
 
Registered: Mar 2012
Location: Hanoi,Vietnam
Posts: 23

Rep: Reputation: Disabled
Arrow make[4]: *** [tc-arm.o] Error 1


hi everyone!
I am developing embedded system.
I use workstation: pc-i686, GNU ubunu 11.4 to cross-develope for arm target.
I use: original kernel-3.2.11 ; toolchain: binutils-2.22, gcc-4.6.3, glibc-2.9
when I build binutils appear the following error:
......
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.22/gas -I. -I../../binutils-2.22/gas -I../bfd -I../../binutils-2.22/gas/config -I../../binutils-2.22/gas/../include -I../../binutils-2.22/gas/.. -I../../binutils-2.22/gas/../bfd -DLOCALEDIR="\"/home/hung/control-project//tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' || echo '../../binutils-2.22/gas/'`config/tc-arm.c
cc1: warnings being treated as errors
../../binutils-2.22/gas/config/tc-arm.c: In function ‘parse_operands’:
../../binutils-2.22/gas/config/tc-arm.c:1912:26: error: ‘firsttype$defined’ may be used uninitialized in this function
../../binutils-2.22/gas/config/tc-arm.c:1912:26: error: ‘firsttype$index’ may be used uninitialized in this function
make[4]: *** [tc-arm.o] Error 1
make[4]: Leaving directory `/home/hung/control-project/build-tools/build-binutils/gas'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hung/control-project/build-tools/build-binutils/gas'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/hung/control-project/build-tools/build-binutils/gas'
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory `/home/hung/control-project/build-tools/build-binutils'
make: *** [all] Error 2


what are this problems?
pleased to help me to solve it.
thank in advance.
 
Old 04-03-2012, 11:18 PM   #2
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
Remove -Werror, it will treat all warnings as errors.
Or even better fix the warning.
 
Old 04-04-2012, 01:38 AM   #3
rocket42
LQ Newbie
 
Registered: Mar 2012
Location: Hanoi,Vietnam
Posts: 23

Original Poster
Rep: Reputation: Disabled
Talking

This problem solved as the following:
Add option –disable-werror:
$ ../binutils-2.22/configure –disable-werror --target=$TARGET --prefix=${PREFIX}
 
  


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
fail to make pixman with cross compile arm ttthhhkkk Linux - Software 0 10-06-2010 08:49 AM
Error compiling 2.6.26 for ARM zahidul Linux - Kernel 0 11-04-2008 05:20 AM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM
make menuconfig/config/xconfig problems when try building for ARM target kondrara Linux - Software 0 11-28-2007 04:58 AM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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

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