https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79827
Bug ID: 79827 Summary: genautomata segmentation fault on NI-RT Linux Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pkrizek at tes dot cz Target Milestone: --- Can't build GCC from source. Specific Linux distro: National Instruments RT Linux. Using the straightforward approach "download from your web - follow instructions - build" lead to the error like the log below - couldn't pass through genautomata. So I made a static gcc 6.3.0 on Ubuntu 15.04 which was built without problems. Then I copied the static gcc compiler to the National Instruments distro, made sure that their proprietary gcc is absent and symlinked gcc, cc etc. to my static version. Same result again - could't build genautomata. See log below (this time copy+paste). Reproducible on both physical and virtual machine with their distro. I can send you the whole virtual machine (uncompressed <1.8GiB) if you wish so that you can reproduce the bug. ----------------- g++ -std=gnu++98 -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc -no-pie -o build/genautomata \ build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/read-md.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a -lm build/genautomata /Flash/gcc/build/gcc-6.3.0/gcc/common.md /Flash/gcc/build/gcc-6.3.0/gcc/config/i386/i386.md \ insn-conditions.md > tmp-automata.c /bin/sh: line 1: 3668 Segmentation fault build/genautomata /Flash/gcc/build/gcc-6.3.0/gcc/common.md /Flash/gcc/build/gcc-6.3.0/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c Makefile:2184: recipe for target 's-automata' failed make[3]: *** [s-automata] Error 139