Author Topic: Fedora 24  (Read 5670 times)

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Fedora 24
« on: July 09, 2016, 09:36:47 pm »
Is Codeblocks still crashing on Fedora 24?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fedora 24
« Reply #1 on: July 09, 2016, 09:51:23 pm »
The version in my copr-repo does not crash.

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: Fedora 24
« Reply #2 on: July 09, 2016, 10:42:14 pm »
Thank you Jens.  It doesn't crash, but now I get this error when trying to build the default "Hello World" project:


-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -std=c++14 -g  -c "/home/sel/Documents/codeblocks projects/test/main.cpp" -o obj/Debug/main.o
g++  -o bin/Debug/test obj/Debug/main.o   
/bin/sh: g++: command not found
Process terminated with status 127 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fedora 24
« Reply #3 on: July 09, 2016, 11:06:55 pm »
It looks like the "gcc-c++" package is not installed.

Offline alexbour

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Fedora 24
« Reply #4 on: July 10, 2016, 05:51:43 am »
Hello fellows!. I have same segmentation fault error, after svn update and replacing -O2 with -O0.
tarting Code::Blocks Release 16.01  rev 10692 Jul  9 2016, 12:21:58 - wx2.8.12 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Segmentation fault (core dumped)
[alexb@turmeric codeblocks_svn]$
(gdb) run
Starting program: /usr/local/bin/codeblocks
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.23.1-8.fc24.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Starting Code::Blocks Release 16.01  rev 10692 Jul  9 2016, 12:21:58 - wx2.8.12 (Linux, unicode) - 64 bit
Detaching after fork from child process 28724.
Detaching after fork from child process 28725.
Detaching after fork from child process 28726.
Detaching after fork from child process 28727.
Detaching after fork from child process 28728.
[New Thread 0x7fffe0792700 (LWP 28730)]
[New Thread 0x7fffd7f91700 (LWP 28731)]
[New Thread 0x7fffdfd84700 (LWP 28732)]
[New Thread 0x7fffdf583700 (LWP 28733)]
Initialize EditColourSet .....
[New Thread 0x7fffdeb9c700 (LWP 28735)]
[New Thread 0x7fffde39b700 (LWP 28736)]
[New Thread 0x7fffddb9a700 (LWP 28737)]
[Thread 0x7fffdfd84700 (LWP 28732) exited]
Initialize EditColourSet: done.

Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault.
0x00007ffff58305d3 in wxStringBase::operator=(wxStringBase const&) ()
   from /lib64/libwx_baseu-2.8.so.0
Missing separate debuginfos, use: dnf debuginfo-install GConf2-3.2.6-16.fc24.x86_64 PackageKit-gtk3-module-1.1.1-3.fc24.x86_64 SDL-1.2.15-21.fc24.x86_64 adwaita-gtk2-theme-3.20.2-1.fc24.x86_64 atk-2.20.0-1.fc24.x86_64 bzip2-libs-1.0.6-20.fc24.x86_64 cairo-1.14.6-1.fc24.x86_64 dbus-glib-0.106-1.fc24.x86_64 dbus-libs-1.11.2-1.fc24.x86_64 dconf-0.26.0-1.fc24.x86_64 expat-2.1.1-2.fc24.x86_64 fontconfig-2.11.94-6.fc24.x86_64 freetype-2.6.3-2.fc24.x86_64 gdk-pixbuf2-2.34.0-1.fc24.x86_64 glib-networking-2.48.2-1.fc24.x86_64 glib2-2.48.1-1.fc24.x86_64 gmp-6.1.0-2.fc24.x86_64 gnutls-3.4.13-1.fc24.x86_64 graphite2-1.3.6-1.fc24.x86_64 gtk2-2.24.30-1.fc24.x86_64 gvfs-client-1.28.2-1.fc24.x86_64 harfbuzz-1.2.7-1.fc24.x86_64 ibus-gtk2-1.5.13-3.fc24.x86_64 ibus-libs-1.5.13-3.fc24.x86_64 jbigkit-libs-2.1-5.fc24.x86_64 libICE-1.0.9-5.fc24.x86_64 libSM-1.2.2-4.fc24.x86_64 libX11-1.6.3-3.fc24.x86_64 libXau-1.0.8-6.fc24.x86_64 libXcomposite-0.4.4-8.fc24.x86_64 libXcursor-1.1.14-6.fc24.x86_64 libXdamage-1.1.4-8.fc24.x86_64 libXext-1.3.3-4.fc24.x86_64 libXfixes-5.0.2-2.fc24.x86_64 libXi-1.7.6-2.fc24.x86_64 libXinerama-1.1.3-6.fc24.x86_64 libXrandr-1.5.0-3.fc24.x86_64 libXrender-0.9.9-3.fc24.x86_64 libXxf86vm-1.1.4-3.fc24.x86_64 libattr-2.4.47-16.fc24.x86_64 libcanberra-0.30-11.fc24.x86_64 libcanberra-gtk2-0.30-11.fc24.x86_64 libcap-2.24-9.fc24.x86_64 libdatrie-0.2.9-3.fc24.x86_64 libdrm-2.4.68-1.fc24.x86_64 libffi-3.1-9.fc24.x86_64 libgcc-6.1.1-3.fc24.x86_64 libgcrypt-1.6.4-2.fc24.x86_64 libgpg-error-1.21-2.fc24.x86_64 libidn-1.32-2.fc24.x86_64 libjpeg-turbo-1.5.0-1.fc24.x86_64 libmodman-2.0.1-12.fc24.x86_64 libogg-1.3.2-5.fc24.x86_64 libpng-1.6.23-1.fc24.x86_64 libproxy-0.4.12-3.fc24.x86_64 libselinux-2.5-3.fc24.x86_64 libstdc++-6.1.1-3.fc24.x86_64 libtasn1-4.8-1.fc24.x86_64 libtdb-1.3.9-1.fc24.x86_64 libthai-0.1.24-1.fc24.x86_64 libtiff-4.0.6-2.fc24.x86_64 libtool-ltdl-2.4.6-11.fc24.x86_64 libuuid-2.28-3.fc24.x86_64 libvorbis-1.3.4-6.fc24.x86_64 libwayland-client-1.10.0-1.fc24.x86_64 libwayland-server-1.10.0-1.fc24.x86_64 libxcb-1.11.1-2.fc24.x86_64 libxshmfence-1.2-3.fc24.x86_64 lz4-r131-2.fc24.x86_64 mesa-libEGL-11.2.2-2.20160614.fc24.x86_64 mesa-libGL-11.2.2-2.20160614.fc24.x86_64 mesa-libgbm-11.2.2-2.20160614.fc24.x86_64 mesa-libglapi-11.2.2-2.20160614.fc24.x86_64 nettle-3.2-2.fc24.x86_64 nss-softokn-freebl-3.25.0-1.0.fc24.x86_64 p11-kit-0.23.2-2.fc24.x86_64 pango-1.40.1-1.fc24.x86_64 pcre-8.39-2.fc24.x86_64 pixman-0.34.0-2.fc24.x86_64 systemd-libs-229-8.fc24.x86_64 wxBase-2.8.12-23.fc24.x86_64 wxGTK-2.8.12-23.fc24.x86_64 xz-libs-5.2.2-2.fc24.x86_64 zlib-1.2.8-10.fc24.x86_64
(gdb)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fedora 24
« Reply #5 on: July 10, 2016, 09:15:24 am »
Hello fellows!. I have same segmentation fault error, after svn update and replacing -O2 with -O0.
Code
tarting Code::Blocks Release 16.01  rev 10692 Jul  9 2016, 12:21:58 - wx2.8.12 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Segmentation fault (core dumped)
[alexb@turmeric codeblocks_svn]$
(gdb) run
Starting program: /usr/local/bin/codeblocks
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.23.1-8.fc24.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Starting Code::Blocks Release 16.01  rev 10692 Jul  9 2016, 12:21:58 - wx2.8.12 (Linux, unicode) - 64 bit
Detaching after fork from child process 28724.
Detaching after fork from child process 28725.
Detaching after fork from child process 28726.
Detaching after fork from child process 28727.
Detaching after fork from child process 28728.
[New Thread 0x7fffe0792700 (LWP 28730)]
[New Thread 0x7fffd7f91700 (LWP 28731)]
[New Thread 0x7fffdfd84700 (LWP 28732)]
[New Thread 0x7fffdf583700 (LWP 28733)]
Initialize EditColourSet .....
[New Thread 0x7fffdeb9c700 (LWP 28735)]
[New Thread 0x7fffde39b700 (LWP 28736)]
[New Thread 0x7fffddb9a700 (LWP 28737)]
[Thread 0x7fffdfd84700 (LWP 28732) exited]
Initialize EditColourSet: done.

Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault.
0x00007ffff58305d3 in wxStringBase::operator=(wxStringBase const&) ()
   from /lib64/libwx_baseu-2.8.so.0
Missing separate debuginfos, use: dnf debuginfo-install GConf2-3.2.6-16.fc24.x86_64 PackageKit-gtk3-module-1.1.1-3.fc24.x86_64 SDL-1.2.15-21.fc24.x86_64 adwaita-gtk2-theme-3.20.2-1.fc24.x86_64 atk-2.20.0-1.fc24.x86_64 bzip2-libs-1.0.6-20.fc24.x86_64 cairo-1.14.6-1.fc24.x86_64 dbus-glib-0.106-1.fc24.x86_64 dbus-libs-1.11.2-1.fc24.x86_64 dconf-0.26.0-1.fc24.x86_64 expat-2.1.1-2.fc24.x86_64 fontconfig-2.11.94-6.fc24.x86_64 freetype-2.6.3-2.fc24.x86_64 gdk-pixbuf2-2.34.0-1.fc24.x86_64 glib-networking-2.48.2-1.fc24.x86_64 glib2-2.48.1-1.fc24.x86_64 gmp-6.1.0-2.fc24.x86_64 gnutls-3.4.13-1.fc24.x86_64 graphite2-1.3.6-1.fc24.x86_64 gtk2-2.24.30-1.fc24.x86_64 gvfs-client-1.28.2-1.fc24.x86_64 harfbuzz-1.2.7-1.fc24.x86_64 ibus-gtk2-1.5.13-3.fc24.x86_64 ibus-libs-1.5.13-3.fc24.x86_64 jbigkit-libs-2.1-5.fc24.x86_64 libICE-1.0.9-5.fc24.x86_64 libSM-1.2.2-4.fc24.x86_64 libX11-1.6.3-3.fc24.x86_64 libXau-1.0.8-6.fc24.x86_64 libXcomposite-0.4.4-8.fc24.x86_64 libXcursor-1.1.14-6.fc24.x86_64 libXdamage-1.1.4-8.fc24.x86_64 libXext-1.3.3-4.fc24.x86_64 libXfixes-5.0.2-2.fc24.x86_64 libXi-1.7.6-2.fc24.x86_64 libXinerama-1.1.3-6.fc24.x86_64 libXrandr-1.5.0-3.fc24.x86_64 libXrender-0.9.9-3.fc24.x86_64 libXxf86vm-1.1.4-3.fc24.x86_64 libattr-2.4.47-16.fc24.x86_64 libcanberra-0.30-11.fc24.x86_64 libcanberra-gtk2-0.30-11.fc24.x86_64 libcap-2.24-9.fc24.x86_64 libdatrie-0.2.9-3.fc24.x86_64 libdrm-2.4.68-1.fc24.x86_64 libffi-3.1-9.fc24.x86_64 libgcc-6.1.1-3.fc24.x86_64 libgcrypt-1.6.4-2.fc24.x86_64 libgpg-error-1.21-2.fc24.x86_64 libidn-1.32-2.fc24.x86_64 libjpeg-turbo-1.5.0-1.fc24.x86_64 libmodman-2.0.1-12.fc24.x86_64 libogg-1.3.2-5.fc24.x86_64 libpng-1.6.23-1.fc24.x86_64 libproxy-0.4.12-3.fc24.x86_64 libselinux-2.5-3.fc24.x86_64 libstdc++-6.1.1-3.fc24.x86_64 libtasn1-4.8-1.fc24.x86_64 libtdb-1.3.9-1.fc24.x86_64 libthai-0.1.24-1.fc24.x86_64 libtiff-4.0.6-2.fc24.x86_64 libtool-ltdl-2.4.6-11.fc24.x86_64 libuuid-2.28-3.fc24.x86_64 libvorbis-1.3.4-6.fc24.x86_64 libwayland-client-1.10.0-1.fc24.x86_64 libwayland-server-1.10.0-1.fc24.x86_64 libxcb-1.11.1-2.fc24.x86_64 libxshmfence-1.2-3.fc24.x86_64 lz4-r131-2.fc24.x86_64 mesa-libEGL-11.2.2-2.20160614.fc24.x86_64 mesa-libGL-11.2.2-2.20160614.fc24.x86_64 mesa-libgbm-11.2.2-2.20160614.fc24.x86_64 mesa-libglapi-11.2.2-2.20160614.fc24.x86_64 nettle-3.2-2.fc24.x86_64 nss-softokn-freebl-3.25.0-1.0.fc24.x86_64 p11-kit-0.23.2-2.fc24.x86_64 pango-1.40.1-1.fc24.x86_64 pcre-8.39-2.fc24.x86_64 pixman-0.34.0-2.fc24.x86_64 systemd-libs-229-8.fc24.x86_64 wxBase-2.8.12-23.fc24.x86_64 wxGTK-2.8.12-23.fc24.x86_64 xz-libs-5.2.2-2.fc24.x86_64 zlib-1.2.8-10.fc24.x86_64
(gdb)
Thanks for using copy and paste and not a screenshot as it often happens in the last time, but:
please use code tags if you copy and paste log-output or source-code WHere dI fixed this in my quote).

Where and how did you change from -O2 to -O0 ?
Did you double-check that -O0 is the last optimizing flag ?
You can also use (keep) -O2 followed (!!) by -fno-delete-null-pointer-checks , that's what I did for my last build.

Offline hunter86_bg

  • Single posting newcomer
  • *
  • Posts: 2
Re: Fedora 24
« Reply #6 on: July 10, 2016, 02:47:46 pm »
Dear Jens,

could you provide short details how to replace the CodeBlocks coming with Fedora 24 with your version , or how to patch the existing installation . I have recently upgraded from 22 to 24 in order to keep all my settings.

Thanks in advance

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Fedora 24
« Reply #7 on: July 10, 2016, 08:40:18 pm »
The codeblocks in F24 is still 13.12 as far as I know.
Click on the link in my previous post
The version in my copr-repo does not crash.
to see how the copr-repo can be used.
In short: you need to run
Code
dnf copr enable jenslody/codeblocks
as root and update/install codeblocks.
It should pick-up my package.

Offline hunter86_bg

  • Single posting newcomer
  • *
  • Posts: 2
Re: Fedora 24
« Reply #8 on: July 11, 2016, 10:09:21 am »
Dear Jens,

here is what I have done:

1). I've added the repo from the link you have already provided.
2). U've updated codeblocks via :
Code
dnf --disablerepo=* --enablerepo=jenslody-codeblocks update codeblocks

The new version is :
Code
codeblocks-libs-16.01.svn.10871-1.fc24.x86_64
codeblocks-16.01.svn.10871-1.fc24.x86_64
I have managed to compile the "Hello,World!" successfully.

Thanks again.