On Fri, April 7, 2017 18:20, Hazel Russman wrote: > I said all along that these segment violations had something to do with > the fact that I was using, on a Via Nano processor, a Chapter 5 toolkit > which had been built on an Intel Core Duo. I got the impression that this > theory was not widely accepted. > > I thought that if it was true, the most probable culprits were glibc or > gmp, so I tried out another binutils build after completing the build of > gcc against these two (now native) libraries. It segfaulted, so that was > not where the problem lay. > > But as I built more basic tools over a couple of days, I suddenly noticed > that there seemed to be no more segment violations on any of my builds. > They all go to completion now, even big ones like perl. So, just for fun, > I rebuilt binutils, with gold, and that went to completion too. > > It's not proof but it does fit my theory.
Hello Hazel, With the Core Duo and Via Nano machine you can run the following and see what is different. GMP will optimize for the current processor in the build unless overridden. Other optimizations in the tool chain may affect it, too. When running gcc, use -march=native to see which options are in use: gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1" example: gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1" "/usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/cc1" "-E" "-quiet" "/usr/include/stdlib.h" "-march=core2" "-mcx16" "-msahf" "-mtune=core2" And of course, you can always inspect the cpu flags between each machine with /proc/cpuinfo or your favorite hardware inspection utility. Sincerely, William Harrington -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
