LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-26-2011, 07:41 PM   #1
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Fedora 15 - compiling error


Hi all,

I am trying to compile openwrt from a custom source - which works on debian, but not on Fedora 15. I have all the required packages as per the openwrt wiki, except something is causing this error.

Make menuconfig is compiling okay, and make defconfig looks like its fine as well.

Any ideas?

Code:
make[8]: Entering directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd/po'
make[8]: Nothing to be done for `all'.
make[8]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd/po'
make[8]: Entering directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd'
/bin/sh ./libtool --tag=CC --mode=compile x86_64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror  -c -o elf64-x86-64.lo elf64-x86-64.c
libtool: compile:  x86_64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -c elf64-x86-64.c -o elf64-x86-64.o
elf64-x86-64.c: In function 'elf64_x86_64_relocate_section':
elf64-x86-64.c:2364:16: error: variable 'warned' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:2807:29: error: variable 'type2' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:3053:29: error: variable 'type2' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:3053:23: error: variable 'type' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:3053:18: error: variable 'val' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:3084:23: error: variable 'type' set but not used [-Werror=unused-but-set-variable]
elf64-x86-64.c:3084:18: error: variable 'val' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[8]: *** [elf64-x86-64.lo] Error 1
make[8]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/bfd'
make[5]: *** [all-bfd] Error 2
make[5]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8'
make[3]: *** [/home/brashr/test/trunk/build_dir/toolchain-armeb_gcc4.1.2/gdb-6.8/.built] Error 2
make[3]: Leaving directory `/home/brashr/test/trunk/toolchain/gdb'
make[2]: *** [toolchain/gdb/compile] Error 2
make[2]: Leaving directory `/home/brashr/test/trunk'
make[1]: *** [/home/brashr/test/trunk/staging_dir/armeb/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/brashr/test/trunk'
make: *** [world] Error 2
 
Old 05-27-2011, 03:08 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
cc1: all warnings being treated as errors
You're going to be there a long time. Do you expect to get 400 Megs of C code without one single warning? Nothing major is wrong, from what I can see. 'Set but unusued' should not blow up. There's some config or make option to treat warnings as errors, and you have it set.
 
Old 05-27-2011, 12:56 PM   #3
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Original Poster
Rep: Reputation: 41
I was kind of thinking that, but when I removed GDB from the toolchain it seems to be working right as of this moment - not done compiling, but its hammering away...
 
Old 05-28-2011, 02:43 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
If it gets there, mark this solved then.
 
  


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
Fedora 9: error when compiling flash plug-in with error failed dependencies seow_ming Fedora 2 06-17-2008 07:17 PM
Problems Compiling Grub In Fedora 7 (configure error) The00Dustin Linux - Software 3 10-23-2007 11:17 AM
error when compiling 2.4 version of kernel from 2.6 version in fedora core mshenbagaraj Linux - Kernel 1 04-30-2007 03:31 PM
Error in compiling XMMS (1.2.10) in Fedora core 3 thandermax Linux - Software 2 07-26-2006 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:02 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