inkscape-bzr, inkscape-gtk3-bzr build fails (Arch Linux)

Bug #1504323 reported by Stefan Husmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Under Arch Linux 64 bit the build fails with the attached output.

gtk3 is at 3.18.1.r36.g22b0ed6-1 from git.

Tags: build gtk3
Revision history for this message
Stefan Husmann (stefan-husmann) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Please try to compile with '-std=c++11' added to CXXFLAGS.

Likely related to the same underlying issue as tracked in bug #1488079 (upstream latest C++ bindings having switched to C++11).

tags: added: build gtk3
Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

I tried that now, same error.

Revision history for this message
su_v (suv-lp) wrote :

Could you please attach the log of a recent build which was attempted with '-std=c++11' added to CXXFLAGS?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

Sure. I attached it.

Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

Happens also without gtk3 enabled.

Revision history for this message
su_v (suv-lp) wrote :

AFAICT neither of the builds of the last two logs actually use c++11 - how exactly did you attempt to add '-std=c++11' to $CXXFLAGS?

The stable Inkscape package for Archlinux seems to have switched to c++11 on Sept 29:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/inkscape&id=e69a9bc328780e5a18c8a91f5df9ff6fa4975dc5

su_v (suv-lp)
summary: - gtk3-build fails
+ inkscape-bzr, inkscape-gtk3-bzr build fails (Arch Linux)
Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

I use

CXXFLAGS="`pkg-config --cflags glib` -fPIC -std=c++11" make

Revision history for this message
su_v (suv-lp) wrote :

The build logs have:
for GTK2:
        CXXFLAGS: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
for GTK3:
        CXXFLAGS: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4

no '-std=c++11' there.

Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

I solved the problem by setting CXXFLAGS+=" -std=c++1' globally in the build function, not just in the invokation of make.

Revision history for this message
su_v (suv-lp) wrote :

Thank you for investigating further, and reporting back.

We are aware of the problem, and working on a solution to set the required flag(s) within the build system automatically, see also comment 6 in bug #1488079.

Changed in inkscape:
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.