Project

General

Profile

Actions

Bug #4584

closed

wt-3.3.5-rc2 fails to compile on arm with gcc 5.2

Added by Michal Minář about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/18/2015
Due date:
% Done:

0%

Estimated time:

Description

Compilation on Fedora rawhide failed for me with error (shortened):

cd /builddir/build/BUILD/wt-3.3.5-rc2/wt-build/src && /usr/bin/c -DBOOST_SPIRIT_THREADSAFE -DHAVE_GRAPHICSMAGICK -DHAVE_PANGO -DHAVE_PDF_IMAGE -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DWT_BUILDING -DWT_WITH_OLD_INTERNALPATH_API -D_REENTRANT -Dwt_EXPORTS -I/builddir/build/BUILD/wt-3.3.5-rc2/wt-build -I/builddir/build/BUILD/wt-3.3.5-rc2/src/web -I/builddir/build/BUILD/wt-3.3.5-rc2/src -I/builddir/build/BUILD/wt-3.3.5-rc2/wt-build/src -isystem /usr/include/QtGui -isystem /usr/include/QtCore -I/usr/include/GraphicsMagick -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong ---param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c++0x -O2 -g -DNDEBUG -fPIC -o CMakeFiles/wt.dir/web/base64.o -c /builddir/build/BUILD/wt-3.3.5-rc2/src/web/base64.cpp

/builddir/build/BUILD/wt-3.3.5-rc2/src/web/base64.cpp:39:3: error: narrowing conversion of '--1' from 'int' to 'char' inside { } [-Wnarrowing]

};

^

/builddir/build/BUILD/wt-3.3.5-rc2/src/web/base64.cpp:39:3: error: narrowing conversion of '--1' from 'int' to 'char' inside { } [-Wnarrowing]

...

src/CMakeFiles/wt.dir/build.make:7477: recipe for target 'src/CMakeFiles/wt.dir/web/base64.o' failed

make[2]: * [src/CMakeFiles/wt.dir/web/base64.o] Error 1

You can check out a full log here:

https://gist.githubusercontent.com/miminar/a6e1eab08b894daf7d0d/raw/b99df14fd92d4fcc3b2c093a4517d32613bffe42/build.log

Compilation on i686 and x86_64 went smoothly.

I got it to compile with this dirty patch:

https://gist.github.com/miminar/6b543135c8efc0b0ea74

Logs from successful build are available in koji:

http://koji.fedoraproject.org/koji/buildinfo?buildID=700092

Actions #1

Updated by Koen Deforche almost 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.5

Thanks for the notice, and the patch.

I believe I might have fixed it by changing the 'char' to 'signed char' for the reverse table. I'm not sure since I didn't test with an ARM compiler though.

Actions #2

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 3.3.5 to 3.3.6
Actions

Also available in: Atom PDF