[Bug c/87891] _build/./gcc/as: line 106: exec: ppc64: not found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891 --- Comment #5 from Douglas Mencken --- Then when I do # header search path is -isystem ./include ln -s /usr/include/sys ./gcc/include/sys ln -s /usr/include/machine ./gcc/include/machine ln -s /usr/include/ppc ./gcc/include/ppc ln -s /usr/include/unistd.h ./gcc/include/unistd.h ln -s /usr/include/_types.h ./gcc/include/_types.h it succeeds to the next missing header enable-execute-stack.c:27:10: fatal error: stdlib.h: No such file or directory #include ^~ Why I need to do this by hand?
[Bug c/87891] _build/./gcc/as: line 106: exec: ppc64: not found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891 --- Comment #4 from Douglas Mencken --- (In reply to Jonathan Wakely from comment #2) > Do you have an assembler for the cross-target installed? The same system’s `as` eats both of ppc and ppc64 assembly. It looks like that build machinery of GCC just can’t locate it. Plus there’s another problem with enable-execute-stack.c:25:10: fatal error: sys/mman.h: No such file or directory
[Bug c/87891] _build/./gcc/as: line 106: exec: ppc64: not found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891 --- Comment #3 from Douglas Mencken --- When I change ORIGINAL_AS_FOR_TARGET="" to ORIGINAL_AS_FOR_TARGET="as" inside gcc/as shell script, it succeeds, but not for long /Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/xgcc -B/Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/ -B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/bin/ -B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/lib/ -isystem /Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/include -isystem /Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/sys-include-g -O2 -m32 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mmacosx-version-min=10.5 -pipe -Wa,-force_cpusubtype_ALL -mmacosx-version-min=10.4 -fno-common -mlong-double-128 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -mmacosx-version-min=10.5 -pipe -Wa,-force_cpusubtype_ALL -mmacosx-version-min=10.4 -fno-common -mlong-double-128 -I. -I. -I../../.././gcc -I../../../../gcc-8.2.0/libgcc -I../../../../gcc-8.2.0/libgcc/. -I../../../../gcc-8.2.0/libgcc/../gcc -I../../../../gcc-8.2.0/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o enable-execute-stack.o -MT enable-execute-stack.o -MD -MP -MF enable-execute-stack.dep -c enable-execute-stack.c -fvisibility=hidden -DHIDE_EXPORTS exec as -arch ppc -I . -I . -I ../../.././gcc -I ../../../../gcc-8.2.0/libgcc -I ../../../../gcc-8.2.0/libgcc/. -I ../../../../gcc-8.2.0/libgcc/../gcc -I ../../../../gcc-8.2.0/libgcc/../include -force_cpusubtype_ALL -force_cpusubtype_ALL -o enable-execute-stack.o enable-execute-stack.c:25:10: fatal error: sys/mman.h: No such file or directory #include ^~~~ compilation terminated. make[4]: *** [enable-execute-stack.o] Error 1 make[3]: *** [multi-do] Error 1 make[2]: *** [all-multi] Error 2 make[1]: *** [all-target-libgcc] Error 2
[Bug c/87891] _build/./gcc/as: line 106: exec: ppc64: not found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891 --- Comment #2 from Jonathan Wakely --- Do you have an assembler for the cross-target installed?
[Bug c/87891] _build/./gcc/as: line 106: exec: ppc64: not found
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87891 --- Comment #1 from Douglas Mencken --- Created attachment 44960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44960=edit assembly of conftest.c It really can’t assemble main() { return 0; } $ /Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/xgcc -B/Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/ -B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/bin/ -B/Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/lib/ -isystem /Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/include -isystem /Developer/GCC/8.2p/PowerPC/64bit/powerpc64-unknown-darwin/sys-include-c -g -O2 conftest.c -save-temps /Volumes/hfsplushd/Development/gcc-toolchain/_build/./gcc/as: line 106: exec: ppc64: not found