Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532640 - media-gfx/blender-2.72b - ?
Summary: media-gfx/blender-2.72b - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 13:17 UTC by PM
Modified: 2014-12-17 16:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.gz,123.98 KB, application/gzip)
2014-12-15 13:21 UTC, PM
Details
Patch to source/blender/blenfont/intern/blf_glyph.c (blender-272b-blf_glyph.patch,454 bytes, patch)
2014-12-16 11:12 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PM 2014-12-15 13:17:59 UTC
[ 58%] Building C object source/blender/blenfont/CMakeFiles/bf_blenfont.dir/intern/blf_glyph.c.o
cd /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b_build/source/blender/blenfont && /usr/bin/x86_64-pc-linux-gnu-gcc  -DHAVE_STDBOOL_H -DWITH_INTERNATIONAL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wredundant-decls -Wno-error=unused-but-set-variable -O3 -march=native -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenfont -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenkernel -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenlib -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/editors/include -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/makesdna -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/makesrna -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/python -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/imbuf -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/guardedalloc -I/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/intern/locale -isystem /usr/include/freetype2    -o CMakeFiles/bf_blenfont.dir/intern/blf_glyph.c.o -c /var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenfont/intern/blf_glyph.c
/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenfont/intern/blf_glyph.c: In function ‘blf_glyph_add’:
/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenfont/intern/blf_glyph.c:265:13: error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  g->width = bitmap.width;
             ^
/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b/source/blender/blenfont/intern/blf_glyph.c:266:14: error: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  g->height = bitmap.rows;
              ^

[ebuild   R    ] media-gfx/blender-2.72b  USE="boost bullet cycles dds elbeem ffmpeg fftw game-engine nls openal openexr openmp opennl sdl sndfile sse sse2 tiff -collada -colorio -debug -doc -jack -jpeg2k -ndof -openimageio -player -redcode" PYTHON_TARGETS="python3_4" 0 KiB

Reproducible: Always




Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20, 3.18.0-gentoo x86_64)
=================================================================
System uname: Linux-3.18.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8166160 total,   3686100 free
KiB Swap:    4095996 total,   4095996 free
Timestamp of tree: Mon, 15 Dec 2014 11:00:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (GNU Binutils) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.9, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r2, 1.11.6-r1, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo multimedia steam-overlay qt dupa
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n --autounmask-write"
FCFLAGS="-O3 -march=native -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O3 -march=native -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/multimedia /usr/local/portage/layman/steam /usr/local/portage/layman/qt /usr/local/portage/moje"
USE="X Xaw3d a52 aac aalib acl acpi adobe-cff alsa amd64 amr amrnb amrwb apng async audiofile automount avahi avresample bash-completion berkdb bfq bidi bineditor bluetooth bluray branding bzip2 c++0x cairo cdda cddb cdparanoia cdr chdir clang cli consolekit cracklib crypt css cuda cups curl cxx dbus dirac disk-partition divx djvu dri dts dvd dvdr ebook editor emboss emovix enca encode exchange exif faac faad fam fat fdk ffmpeg fftw firefox firefox3 flac fontconfig fortran fribidi g3dvl gd gdbm geoip gif glamor glitz gmedia gnuplot gphoto2 gpm gtk hddtemp iconv id3 id3tag imagemagick inotify iostats ipod jpeg kde kde4 kdehiddenvisibility kipi kompare kpathsea kqemu ladspa lame laptop lastfm latex lcms libass libcaca libnotify libsamplerate lm_sensors lto lzma lzo mad matroska midi mjpeg mmap mmx mmxext mng modules moodbar mp3 mp3tunes mp4 mpeg mplayer mtp multilib musicbrainz ncurses networkmanager nls nptl nsplugin ntfs nvidia ogg okteta openal opencl opencore-amr opengl openmp optimized-qmake opus pam pango pch pcre pdf plasma png policykit portage ppds private-headers pulseaudio qt3 qt3support qt4 qthelp raster readline realmedia roe scanner schroedinger sdl secure-delete semantic-desktop sensord session shaders slang sndfile solver soundtouch sourceview sparse spell sse sse2 sse3 sse4 sse41 sse4_1 sse4a ssl ssse3 startup-notification steamruntime suid svg swat symlink syslog tcpd theora threads tiff truetype udev udisks unicode upnp upower usb vaapi vamp vcd vdpau vorbis wifi wmf wmp wxwidgets wxwindows x264 xcb xcomposite xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-15 13:20:29 UTC
Please attach the entire build log to this bug report.
Comment 2 PM 2014-12-15 13:21:13 UTC
Created attachment 391766 [details]
build log
Comment 3 PM 2014-12-15 13:28:55 UTC
In case you're wondering: it fails the same way on GCC 4.8.
Comment 4 Bernd Feige 2014-12-16 11:12:45 UTC
Created attachment 391806 [details, diff]
Patch to source/blender/blenfont/intern/blf_glyph.c

Same here. Quite trivial patch attached. I would have preferred that all sizes are unsigned, but the code currently depends on width and height being (signed) ints in so many places it would have to be recoded and tested throughout.
Regards,
Bernd
Comment 5 Julian Ospald 2014-12-16 16:00:42 UTC
report the patch upstream
Comment 6 Bernd Feige 2014-12-17 10:09:51 UTC
Found it upstream - it's here: https://developer.blender.org/T42797
Fixed there in commit: "rB2420a3c18995: Fix T42797: -Werror=sign-conversion Triggered in blf_glyph.c"
Comment 7 Julian Ospald 2014-12-17 16:45:39 UTC
+  17 Dec 2014; Julian Ospald <hasufell@gentoo.org> blender-2.72b.ebuild,
+  +files/blender-2.72-T42797.diff:
+  fix bug #532640