Cross Linux From Scratch 5.7: Problems Making binutils-2.18
Hello. I am new to Linux From Scratch. Since I have a 64-bit machine I learned I would have to do CLFS to make my distro. Now, on to my problem.
Everything works fine until 5.7 in CLFS, wherein I encounter errors in building binutils. I've searched and searched and founf no answer to this problem elsewhere, and the CLFS IRC channel has nothing but idles. Anyway, here's the last part of my console output. Too much to post the complete so I just snagged what I believe are the relevant bits. Code:
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.18/gas -I. -D_GNU_SOURCE -I. -I../../binutils-2.18/gas -I../bfd -I../../binutils-2.18/gas/config -I../../binutils-2.18/gas/../include -I../../binutils-2.18/gas/.. -I../../binutils-2.18/gas/../bfd -DLOCALEDIR="\"/cross-tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../binutils-2.18/gas/read.c |
The "-Werror" bit seems to be tripping you up - all warnings are now being treated as errors. Try turning that off first and see how you go.
Also be very careful about how your environment is set up; you don't want to accidentally use your 32-bit tools when you don't mean to. You shouldn't follow CLFS strictly either - it's more like doing LFS except that you need to consult CLFS to build a cross-compiler so you can build 64-bit tools on your 32-bit system. Personally, if I were doing that, I would still use all the LFS sources rather than the CLFS sources - the down side is that you need to spend time setting up the configuration parameters so that the tools are all built correctly. Have fun. :) |
How do I get the Make not to use the -Werror bit in there? I'm not exactly running this compiler manually.
I'm running this from a 64-bit Linux host, is that contributory? |
You need to check whatever script invoke 'Make' to see if they pass a "CFLAGS=" parameter or else set a 'CFLAGS' environment variable. Also look at any Makefile to see if CFLAGS has -Werrors set there. In cases where Makefile is generated via the automake/autoconf tools, you make need to edit Makefile.in.
|
All times are GMT -5. The time now is 07:45 PM. |