Closed srakitnican closed 5 years ago
This happens only with -Werror
compiler flag.
The debug build is also much slower than the release build.
Fedora build needs debugging/symbol information produced with the -g
option which gets stripped by Fedora build scripts into a separate package, any tip how to accomplish that with a release build?
Try building like this scons ccflags=-g
but leave debug=1
off.
I tried that, it clearly builds with the -g
option, but it gets stripped at the end of the build.
<mock-chroot> sh-4.4# ls -lh /builddir/build/BUILD/CAMotics-1.1.1/{camotics,camsim,gcodetool,tplang}
-rwxr-xr-x. 1 mockbuild mock 5.3M Feb 4 09:11 /builddir/build/BUILD/CAMotics-1.1.1/camotics
-rwxr-xr-x. 1 mockbuild mock 4.1M Feb 4 09:11 /builddir/build/BUILD/CAMotics-1.1.1/camsim
-rwxr-xr-x. 1 mockbuild mock 3.4M Feb 4 09:11 /builddir/build/BUILD/CAMotics-1.1.1/gcodetool
-rwxr-xr-x. 1 mockbuild mock 4.3M Feb 4 09:11 /builddir/build/BUILD/CAMotics-1.1.1/tplang
Yes. In my build system I automatically add link flags to strip the executables in non-debug mode. You could try this: scons debug=1 ccflags=-O3
Fixed.
On CAMotics 1.1.1 with 6c11aa6026070a403be44ddf316cfadba6b22f8b using GCC 9.