strict-aliasing rules warnings

Bug #323414 reported by zea
12
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

This is the output at the end of the installation process in a gentoo amd64 box:

 * QA Notice: Package has poor programming practices which may compile
 * fine but exhibit random runtime failures.
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1005: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1031: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1058: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1084: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1109: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1134: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1160: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1186: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * extension/script/inkscape_perl_wrap.cpp:1211: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libgdl/gdl-dock-object.c:619: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libgdl/gdl-dock-object.c:637: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libgdl/gdl-dock-tablabel.c:182: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libgdl/gdl-dock-tablabel.c:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libnrtype/Layout-TNG-Output.cpp:393: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * libnrtype/Layout-TNG-Output.cpp:395: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules
 * ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.inkscape.org/

Attached is the full compilation log.

Tags: build linux
Revision history for this message
zea (zea) wrote :
nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Medium
tags: added: build
tags: added: gentoo
tags: added: linux
removed: gentoo
Revision history for this message
jazzynico (jazzynico) wrote :

* util/glib-list-iterators.h is fixed as of revision 7338 (released in 0.48).
* extension/script/inkscape_perl_wrap.cpp no longer exists.
* libnrtype/Layout-TNG-Output.cpp warning not reproduced on Ubuntu 10.10, inkscape trunk revision 10190.

The libgdl files still show warnings (missing initializer and unused parameters) that are not related to this issue.

Could you please confirm it's now fixed for you too?
Thanks!

Changed in inkscape:
importance: Medium → Low
status: New → Triaged
summary: - gentoo 2008.0 amd64 install QA notice
+ strict-aliasing rules warnings
Revision history for this message
su_v (suv-lp) wrote :

JazzyNico wrote on 2011-04-22
> Could you please confirm it's now fixed for you too?

Is this still an issue with current Inkscape (0.48.3.1) on Gentoo?

Changed in inkscape:
status: Triaged → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Likely a duplicate of this earlier report:
Bug #168548 (sf1697910) “inkscape-0.45.1 breaks strict aliasing rules”
<https://bugs.launchpad.net/inkscape/+bug/168548>

Revision history for this message
jazzynico (jazzynico) wrote :

Marked Bug #168548 duplicate. Bug #323414 is a bit more up to date.

Changed in inkscape:
status: Incomplete → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

jazzynico>* libnrtype/Layout-TNG-Output.cpp warning not reproduced on Ubuntu 10.10, inkscape trunk revision 10190.

Reproduced on Debian Wheezy, Inkscape trunk revision 11595.

Revision history for this message
jazzynico (jazzynico) wrote :

Warning fix in Layout-TNG-output.cpp in progress.
Targetting 0.48.x (only affects debugging and not active code - can be activated in sp-text.cpp and sp-flowtext.cpp).

Changed in inkscape:
assignee: nobody → JazzyNico (jazzynico)
milestone: none → 0.48.4
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :

Layout-TNG-output.cpp fixed in the trunk (11601) and branch (9904).

Revision history for this message
jazzynico (jazzynico) wrote :

No more strict-aliasing warning in the trunk, but some remaining in the branch.

Changed in inkscape:
assignee: JazzyNico (jazzynico) → nobody
milestone: 0.48.4 → 0.49
status: In Progress → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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