> I wonder if gcc has become confused about the CPU which vmware is > presenting to it, and is trying to use instructions which are not > actually supported. >
If this were the case, wouldn't the crash be reported by the system - core-dump or something for using an illegal instruction? But your point may be valid. The Host machine is i7-7820X CPU @ 3.60GHz (8 cores) with 32GB RAM running Windows 8.1 The VM is configured with 2 cores per processor and 2 processors == total 4 processor cores with 4GB RAM running Debian 9.4.0 64-bit. Here is the output of lscpu from within the VM:- Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz Stepping: 4 CPU MHz: 3600.058 BogoMIPS: 7199.99 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 11264K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xsaves arat Everything seems to be in order and as expected. Also, curiously enough, GCC in the VM (Debian-9) seems to have no problems with -O2. I am able to complete all the steps in pass-1. Its only in the pass-2 when I am using the rebuilt version of gcc from $LFS/tools as the book says, is where the trouble seems to start. To understand the issue, I am going to repeat the whole exercise - right from setting up the VM up to the tcl-8.6.8 and see, if the problem is repeatable. Thx -- 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