Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with gcc 6 #887

Closed
grauschnabel opened this issue May 12, 2016 · 16 comments
Closed

build with gcc 6 #887

grauschnabel opened this issue May 12, 2016 · 16 comments
Assignees
Milestone

Comments

@grauschnabel
Copy link

Hi there,

It seems, this cannot be built with gcc 6. Can you give me a fix?

see for exaple: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811858

this issue also exists on arch linux, where gcc 6 is default allready

@LinuxDonald
Copy link

@vtchill @stubb can you please take an look on it please?

@grauschnabel thx for the report :-)

@stubb stubb self-assigned this May 12, 2016
@stubb
Copy link
Member

stubb commented May 12, 2016

Will take a look on it at the weekend

@stubb
Copy link
Member

stubb commented May 13, 2016

diff --git a/engine/core/view/renderers/targetrenderer.cpp b/engine/core/view/renderers/targetrenderer.cpp
index 9f677fa..dd47b61 100644
--- a/engine/core/view/renderers/targetrenderer.cpp
+++ b/engine/core/view/renderers/targetrenderer.cpp
@@ -136,7 +136,7 @@ namespace FIFE {
                rj.discard = false;

                std::pair<RenderJobMap::iterator, bool> ret =
-                       m_targets.insert(std::make_pair<std::string, RenderJob>(name, rj));
+                       m_targets.insert(std::make_pair(name, rj));

                return ret.first->second.target;
        }
@@ -149,7 +149,7 @@ namespace FIFE {
                rj.discard = false;

                std::pair<RenderJobMap::iterator, bool> ret =
-                       m_targets.insert(std::make_pair<std::string, RenderJob>(image->getName(), rj));
+                       m_targets.insert(std::make_pair(image->getName(), rj));

                return ret.first->second.target;
        }

I removed the explicit provided type, so the compiler can deduce it by itself.

@LinuxDonald
Copy link

Can this fix into master?

@stubb
Copy link
Member

stubb commented May 24, 2016

Thats a patch for version 0.3.5. Needs to be tested with master.

@LinuxDonald
Copy link

that patch works fine for me with master on gcc6

@stubb stubb closed this as completed in d117c71 May 28, 2016
@gryffus
Copy link

gryffus commented Jul 19, 2016

This is not fixed, see this build log from openSUSE: https://build.opensuse.org/build/games/openSUSE_Tumbleweed/i586/fife/_log
FIFE 0.3.5 with patch applied.

@LinuxDonald
Copy link

Can you please attatch the log here? We cant see it as anyomus user.

@gryffus
Copy link

gryffus commented Jul 20, 2016

Oh sorry for that, here it is: http://www.susepaste.org/4672105

@LinuxDonald
Copy link

Are you using the git version?

@gryffus
Copy link

gryffus commented Jul 20, 2016

No, it's FIFE 0.3.5 with the patch applied, as i mentioned in my first comment.

@LinuxDonald
Copy link

Could you maybe test the git version?

@gryffus
Copy link

gryffus commented Jul 27, 2016

I will try it ASAP

@Maraschin
Copy link

Hi, if you guys have fix it,
can't you push this to all distros?

I'm getting this on Ubuntu 16.4 LTS ...

The Python Imaging Library (PIL / Pillow) package is needed to run the atlas generator.
Atlas generation failed. Continuing without atlas support.
This just means that the game will run a bit slower.
It will still run fine unless there are other problems.

*** Error in `/usr/bin/python': free(): invalid next size (fast): 0x000000000a791b40 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f9fe94c07e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f9fe94c8e0a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f9fe94cc98c]
/usr/lib/python2.7/dist-packages/fife/_fife.so(_ZNSt7__cxx1110_List_baseIN4FIFE8LocationESaIS2_EE8_M_clearEv+0x27)[0x7f9fe6e75d07]
/usr/lib/python2.7/dist-packages/fife/_fife.so(+0x4d71d2)[0x7f9fe716c1d2]
/usr/bin/python(PyObject_Call+0x43)[0x4b0cb3]
/usr/bin/python(PyObject_CallFunctionObjArgs+0x16a)[0x4b97fa]
/usr/lib/python2.7/dist-packages/fife/_fife.so(+0x23b515)[0x7f9fe6ed0515]
/usr/bin/python[0x4fd4e6]
/usr/bin/python(PyEval_EvalCodeEx+0x63c)[0x4c2b4c]
/usr/bin/python(PyEval_EvalFrameEx+0x6099)[0x4ca099]
/usr/bin/python(PyEval_EvalCodeEx+0x255)[0x4c2765]
/usr/bin/python(PyEval_EvalFrameEx+0x6099)[0x4ca099]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalFrameEx+0x5d8f)[0x4c9d8f]
/usr/bin/python(PyEval_EvalCodeEx+0x255)[0x4c2765]
/usr/bin/python(PyEval_EvalCode+0x19)[0x4c2509]
/usr/bin/python[0x4f1def]
/usr/bin/python(PyRun_FileExFlags+0x82)[0x4ec652]
/usr/bin/python(PyRun_SimpleFileExFlags+0x191)[0x4eae31]
/usr/bin/python(Py_Main+0x68a)[0x49e14a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f9fe9469830]
/usr/bin/python(_start+0x29)[0x49d9d9]
======= Memory map: ========
00400000-006ea000 r-xp 00000000 fc:02 5767932                            /usr/bin/python2.7
008e9000-008eb000 r--p 002e9000 fc:02 5767932                            /usr/bin/python2.7
008eb000-00962000 rw-p 002eb000 fc:02 5767932                            /usr/bin/python2.7
00962000-00985000 rw-p 00000000 00:00 0 
02810000-10cdf000 rw-p 00000000 00:00 0                                  [heap]
7f9fc68bd000-7f9fc71fd000 rw-p 00000000 00:00 0 
7f9fc722d000-7f9fc8bad000 rw-p 00000000 00:00 0 
7f9fc8be7000-7f9fcd227000 rw-p 00000000 00:00 0 
7f9fcd227000-7f9fcd427000 rw-s 11f34f000 00:06 12434                     /dev/dri/card0
7f9fcd427000-7f9fcd627000 rw-s 11f14f000 00:06 12434                     /dev/dri/card0
7f9fcd627000-7f9fcd667000 rw-p 00000000 00:00 0 
7f9fcd667000-7f9fcd867000 rw-s 1fdceb000 00:06 12434                     /dev/dri/card0
7f9fcd867000-7f9fcda67000 rw-s 1ffc7c000 00:06 12434                     /dev/dri/card0
7f9fcda67000-7f9fce467000 rwxp 00000000 00:00 0 
7f9fce467000-7f9fce5e7000 rw-p 00000000 00:00 0 
7f9fce5e7000-7f9fce667000 rw-s 1be5db000 00:06 12434                     /dev/dri/card0
7f9fce667000-7f9fce6e7000 rw-s 1be55b000 00:06 12434                     /dev/dri/card0
7f9fce6e7000-7f9fce767000 rw-s 11decd000 00:06 12434                     /dev/dri/card0
7f9fce767000-7f9fce768000 ---p 00000000 00:00 0 
7f9fce768000-7f9fcef68000 rw-p 00000000 00:00 0 
7f9fcef68000-7f9fcef69000 ---p 00000000 00:00 0 
7f9fcef69000-7f9fd0269000 rw-p 00000000 00:00 0 
7f9fd0269000-7f9fd02a0000 r-xp 00000000 fc:02 5774910                    /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7f9fd02a0000-7f9fd049f000 ---p 00037000 fc:02 5774910                    /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7f9fd049f000-7f9fd04a0000 r--p 00036000 fc:02 5774910                    /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7f9fd04a0000-7f9fd04a1000 rw-p 00037000 fc:02 5774910                    /usr/lib/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0.0.0
7f9fd04a1000-7f9fd04b4000 r-xp 00000000 fc:02 12583412                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2
7f9fd04b4000-7f9fd06b3000 ---p 00013000 fc:02 12583412                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2
7f9fd06b3000-7f9fd06b4000 r--p 00012000 fc:02 12583412                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2
7f9fd06b4000-7f9fd06b5000 rw-p 00013000 fc:02 12583412                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2
7f9fd06b5000-7f9fd06b6000 rw-p 00000000 00:00 0 
7f9fd06b6000-7f9fd06e7000 r-xp 00000000 fc:02 5773162                    /usr/lib/x86_64-linux-gnu/libedit.so.2.0.53
7f9fd06e7000-7f9fd08e7000 ---p 00031000 fc:02 5773162                    /usr/lib/x86_64-linux-gnu/libedit.so.2.0.53
7f9fd08e7000-7f9fd08e9000 r--p 00031000 fc:02 5773162                    /usr/lib/x86_64-linux-gnu/libedit.so.2.0.53
7f9fd08e9000-7f9fd08ea000 rw-p 00033000 fc:02 5773162                    /usr/lib/x86_64-linux-gnu/libedit.so.2.0.53
7f9fd08ea000-7f9fd08ee000 rw-p 00000000 00:00 0 
7f9fd08ee000-7f9fd2de0000 r-xp 00000000 fc:02 5767501                    /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
7f9fd2de0000-7f9fd2fe0000 ---p 024f2000 fc:02 5767501                    /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
7f9fd2fe0000-7f9fd3295000 r--p 024f2000 fc:02 5767501                    /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
7f9fd3295000-7f9fd3297000 rw-p 027a7000 fc:02 5767501                    /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
7f9fd3297000-7f9fd32c1000 rw-p 00000000 00:00 0 
7f9fd32c1000-7f9fd3b88000 r-xp 00000000 fc:02 7605137                    /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
7f9fd3b88000-7f9fd3d87000 ---p 008c7000 fc:02 7605137                    /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
7f9fd3d87000-7f9fd3dfb000 r--p 008c6000 fc:02 7605137                    /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
7f9fd3dfb000-7f9fd3e0a000 rw-p 0093a000 fc:02 7605137                    /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
7f9fd3e0a000-7f9fd4000000 rw-p 00000000 00:00 0 
7f9fd4000000-7f9fd4102000 rw-p 00000000 00:00 0 
7f9fd4102000-7f9fd8000000 ---p 00000000 00:00 0 
7f9fd8017000-7f9fd8157000 rw-p 00000000 00:00 0 
7f9fd8157000-7f9fd81d7000 rw-s 11de4d000 00:06 12434                     /dev/dri/card0
7f9fd81d7000-7f9fd81ee000 r-xp 00000000 fc:02 5773164                    /usr/lib/x86_64-linux-gnu/libelf-0.165.so
7f9fd81ee000-7f9fd83ed000 ---p 00017000 fc:02 5773164                    /usr/lib/x86_64-linux-gnu/libelf-0.165.so
7f9fd83ed000-7f9fd83ee000 r--p 00016000 fc:02 5773164                    /usr/lib/x86_64-linux-gnu/libelf-0.165.so
7f9fd83ee000-7f9fd83ef000 rw-p 00017000 fc:02 5773164                    /usr/lib/x86_64-linux-gnu/libelf-0.165.so
7f9fd83ef000-7f9fd83f6000 r-xp 00000000 fc:02 5774903                    /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
7f9fd83f6000-7f9fd85f5000 ---p 00007000 fc:02 5774903                    /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
7f9fd85f5000-7f9fd85f6000 r--p 00006000 fc:02 5774903                    /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
7f9fd85f6000-7f9fd85f7000 rw-p 00007000 fc:02 5774903                    /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
7f9fd85f7000-7f9fd8602000 r-xp 00000000 fc:02 5772126                    /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
7f9fd8602000-7f9fd8801000 ---p 0000b000 fc:02 5772126                    /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
7f9fd8801000-7f9fd8802000 r--p 0000a000 fc:02 5772126                    /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
7f9fd8802000-7f9fd8803000 rw-p 0000b000 fc:02 5772126                    /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
7f9fd8803000-7f9fd880a000 r-xp 00000000 fc:02 5773187                    /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
7f9fd880a000-7f9fd8a09000 ---p 00007000 fc:02 5773187                    /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
7f9fd8a09000-7f9fd8a0a000 r--p 00006000 fc:02 5773187                    /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
7f9fd8a0a000-7f9fd8a0b000 rw-p 00007000 fc:02 5773187                    /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
7f9fd8a0b000-7f9fd8a4b000 rw-p 00000000 00:00 0 
7f9fd8a4b000-7f9fd8a4c000 ---p 00000000 00:00 0 
7f9fd8a4c000-7f9fd944c000 rw-p 00000000 00:00 0 
7f9fd944c000-7f9fd945b000 r-xp 00000000 fc:02 6033036                    /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so
7f9fd945b000-7f9fd965a000 ---p 0000f000 fc:02 6033036                    /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so
7f9fd965a000-7f9fd965b000 r--p 0000e000 fc:02 6033036                    /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so
7f9fd965b000-7f9fd965d000 rw-p 0000f000 fc:02 6033036                    /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so
7f9fd965d000-7f9fd969d000 rw-p 00000000 00:00 0 
7f9fd969d000-7f9fd96aa000 r-xp 00000000 fc:02 6033068                    /usr/lib/python2.7/lib-dynload/_elementtree.x86_64-linux-gnu.so
7f9fd96aa000-7f9fd98a9000 ---p 0000d000 fc:02 6033068                    /usr/lib/python2.7/lib-dynload/_elementtree.x86_64-linux-gnu.so
7f9fd98a9000-7f9fd98aa000 r--p 0000c000 fc:02 6033068                    /usr/lib/python2.7/lib-dynload/_elementtree.x86_64-linux-gnu.so
7f9fd98aa000-7f9fd98ab000 rw-p 0000d000 fc:02 6033068                    /usr/lib/python2.7/lib-dynload/_elementtree.x86_64-linux-gnu.so
7f9fd98ab000-7f9fd99ab000 rw-p 00000000 00:00 0 
7f9fd99ab000-7f9fd99af000 r-xp 00000000 fc:02 12587291                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f9fd99af000-7f9fd9bae000 ---p 00004000 fc:02 12587291                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f9fd9bae000-7f9fd9baf000 r--p 00003000 fc:02 12587291                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f9fd9baf000-7f9fd9bb0000 rw-p 00004000 fc:02 12587291                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f9fd9bb0000-7f9fd9bf0000 rw-p 00000000 00:00 0 
7f9fd9bf0000-7f9fd9bfa000 r-xp 00000000 fc:02 5772358                    /usr/lib/x86_64-linux-gnu/libenet.so.7.0.0
7f9fd9bfa000-7f9fd9df9000 ---p 0000a000 fc:02 5772358                    /usr/lib/x86_64-linux-gnu/libenet.so.7.0.0
7f9fd9df9000-7f9fd9dfa000 r--p 00009000 fc:02 5772358                    /usr/lib/x86_64-linux-gnu/libenet.so.7.0.0
7f9fd9dfa000-7f9fd9dfb000 rw-p 0000a000 fc:02 5772358                    /usr/lib/x86_64-linux-gnu/libenet.so.7.0.0
7f9fd9dfb000-7f9fd9e15000 r-xp 00000000 fc:02 5775236                    /usr/lib/python2.7/dist-packages/enet.so
7f9fd9e15000-7f9fda014000 ---p 0001a000 fc:02 5775236                    /usr/lib/python2.7/dist-packages/enet.so
7f9fda014000-7f9fda015000 r--p 00019000 fc:02 5775236                    /usr/lib/python2.7/dist-packages/enet.so
7f9fda015000-7f9fda019000 rw-p 0001a000 fc:02 5775236                    /usr/lib/python2.7/dist-packages/enet.so
7f9fda019000-7f9fda259000 rw-p 00000000 00:00 0 
7f9fda259000-7f9fda25f000 r-xp 00000000 fc:02 6033049                    /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
7f9fda25f000-7f9fda45e000 ---p 00006000 fc:02 6033049                    /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
7f9fda45e000-7f9fda45f000 r--p 00005000 fc:02 6033049                    /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
7f9fda45f000-7f9fda460000 rw-p 00006000 fc:02 6033049                    /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
7f9fda460000-7f9fda52f000 r-xp 00000000 fc:02 5769548                    /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
...

@jakoch jakoch reopened this Dec 5, 2016
@LinuxDonald
Copy link

@Maraschin our next "stable" fife release will come this month. Dont use Ubuntus Fife version from the repo compile it by your own or wait to the stable version ist out and the the ubuntu maintainer have updated it.

@LinuxDonald LinuxDonald added this to the 0.4.0 milestone Jan 12, 2017
@LinuxDonald
Copy link

0.4.0 is out wait that your distro update fife.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants