Comments (10)
I will check, but it takes some time as I deleted it already.
from bleeding-edge-toolchain.
Can you upload the console contents (just the last "block" would be enough) and maybe try finding the relevant .log file somewhere inside the build directory?
from bleeding-edge-toolchain.
Though 12.1.0 build completes, the big-endian patch I applied does not work. I will try 12.2.0 when this patch works.
Edit:
Ran build again, now the patch works.
from bleeding-edge-toolchain.
Here now the compile which fails for 12.2.0
/Users/bastian/develop/gcc/buildNative/gcc-12.2.0-final/./gcc/xgcc -B/Users/bastian/develop/gcc/buildNative/gcc-12.2.0-final/./gcc/ -B/Users/bastian/develop/gcc/installNative/arm-none-eabi/bin/ -B/Users/bastian/develop/gcc/installNative/arm-none-eabi/lib/ -isystem /Users/bastian/develop/gcc/installNative/arm-none-eabi/include -isystem /Users/bastian/develop/gcc/installNative/arm-none-eabi/sys-include -g -O2 -pipe -ffunction-sections -fdata-sections -marm -march=armv5te+fp -mfloat-abi=softfp -O2 -g -O2 -pipe -ffunction-sections -fdata-sections -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fno-inline -I. -I. -I../../../../.././gcc -I/Users/bastian/develop/gcc/sources/gcc-12.2.0/libgcc -I/Users/bastian/develop/gcc/sources/gcc-12.2.0/libgcc/. -I/Users/bastian/develop/gcc/sources/gcc-12.2.0/libgcc/../gcc -I/Users/bastian/develop/gcc/sources/gcc-12.2.0/libgcc/../include -o _fixunsdfsi.o -MT _fixunsdfsi.o -MD -MP -MF _fixunsdfsi.dep -DL_fixunsdfsi -c /Users/bastian/develop/gcc/sources/gcc-12.2.0/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
xgcc: internal compiler error: Segmentation fault: 11 signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
make[4]: *** [_divdc3.o] Error 4
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2
Just to note: Linux and cross-win64 build on WSL2 works.
from bleeding-edge-toolchain.
If is not always the same line which throws the segmentation fault. Succesive runs stop at different places.
from bleeding-edge-toolchain.
Compiling GCC with -O0 prevents the crash. I will try if -O1 or -Os work.
Only need to find a way how build-....sh can feed this into the GCC makefile.
from bleeding-edge-toolchain.
Building gcc-final with
CFLAGS=-O1 CXXFLAGS=-O1
fixes the segmentation fault issue.
573,574c573
< --with-multilib-list=rmprofile \
< CFLAGS=-O1 CXXFLAGS=-O1"
---
> --with-multilib-list=rmprofile"
from bleeding-edge-toolchain.
One more thing you could also try is changing nproc="$(sysctl -n hw.ncpu)"
to just nproc=1
. If only the optimization helps, then I guess it must be some upstream GCC bug - either in the toolchain on your PC or in the GCC source that is compiled.
from bleeding-edge-toolchain.
I give it a try.
from bleeding-edge-toolchain.
I tried it. -j 1 does not help. 12.2.0 and 12.3.0 need -O1 for CFLAGS/CXXFLAGS when building gcc on MacOS. Could be an XCode problem.
But it does not matter much. The M1 Mac is blasting quick and my main development machine is a PC (Windows/WSL2) so I do not care if -O1 or -O2 for the tools.
from bleeding-edge-toolchain.
Related Issues (15)
- Why not Makefile based? HOT 6
- -flto -g fails HOT 6
- Dwarf Error: Could not find abbrev number HOT 6
- gdb TUI? HOT 13
- Building also Cortex-A and big-endian Cortex-R / Restart build HOT 40
- Windows file flags HOT 4
- runtime dll copy HOT 3
- Crosscompile the crosscompiler HOT 5
- Linking issues between Linux and Windows built binaries HOT 5
- Integration with CLion HOT 2
- Python, pushd error HOT 4
- build errors on openSUSE Leap 42.2 HOT 5
- Docker HOT 8
- Request that downloads be verified, with GnuPG when available.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleeding-edge-toolchain.