FedoraThis forum is for the discussion of the Fedora Project.
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.
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.
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
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.