By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2467 - Build issue: Koffice FTBFS on Fedora 22 / Ruby 2.2.2
Summary: Build issue: Koffice FTBFS on Fedora 22 / Ruby 2.2.2
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: other (any) (show other bugs)
Version: R14.0.1 [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
: 2466 (view as bug list)
Depends on:
Blocks: R14.0.3
  Show dependency treegraph
 
Reported: 2015-06-28 10:37 CDT by Francois Andriot
Modified: 2016-01-18 16:02 CST (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
Add ruby 2.2 detection (712 bytes, patch)
2015-12-12 07:55 CST, Slávek Banko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Andriot 2015-06-28 10:37:35 CDT
Because of ruby stuff, Koffice krossruby FTBFS.

make[5]: Entering directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c/lib/kross/ruby'
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/kross -I/usr/include  -I/opt/trinity/include/tde -I/usr/include/tqt3 -I. -include tqt.h  -I/opt/trinity/include/arts  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_TDENEWSTUFF -fexceptions -c -o krossruby_la.all_cpp.lo krossruby_la.all_cpp.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/kross -I/usr/include -I/opt/trinity/include/tde -I/usr/include/tqt3 -I. -include tqt.h -I/opt/trinity/include/arts -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_TDENEWSTUFF -fexceptions -c krossruby_la.all_cpp.cpp  -fPIC -DPIC -o .libs/krossruby_la.all_cpp.o
In file included from /usr/include/stdio.h:27:0,
                 from /usr/include/ruby/defines.h:26,
                 from /usr/include/ruby/ruby.h:29,
                 from /usr/include/ruby.h:33,
                 from rubyinterpreter.h:22,
                 from rubyinterpreter.cpp:19,
                 from krossruby_la.all_cpp.cpp:2:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
In file included from rubyscript.cpp:34:0,
                 from krossruby_la.all_cpp.cpp:4:
/usr/include/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
 #warning rubysig.h is obsolete
  ^
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp: In constructor 'Kross::Ruby::RubyInterpreter::RubyInterpreter(Kross::Api::InterpreterInfo*)':
rubyinterpreter.cpp:87:13: error: '__builtin_choose_expr' was not declared in this scope
         rb_set_safe_level( info->getOption("safelevel")->value.toInt() );
             ^
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp:87:9: error: '__builtin_choose_expr' was not declared in this scope
         rb_set_safe_level( info->getOption("safelevel")->value.toInt() );
         ^
rubyinterpreter.cpp:87:9: error: redeclaration of '<typeprefixerror>__builtin_choose_expr'
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp:87:13: note: previous declaration '<typeprefixerror>__builtin_choose_expr'
         rb_set_safe_level( info->getOption("safelevel")->value.toInt() );
             ^
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp:89:13: error: '__builtin_choose_expr' was not declared in this scope
         rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level
             ^
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp:89:9: error: '__builtin_choose_expr' was not declared in this scope
         rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level
         ^
rubyinterpreter.cpp:89:9: error: redeclaration of '<typeprefixerror>__builtin_choose_expr'
In file included from krossruby_la.all_cpp.cpp:2:0:
rubyinterpreter.cpp:89:13: note: previous declaration '<typeprefixerror>__builtin_choose_expr'
         rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level
             ^
In file included from krossruby_la.all_cpp.cpp:4:0:
rubyscript.cpp: In member function 'void Kross::Ruby::RubyScript::compile()':
rubyscript.cpp:96:9: warning: unused variable 'critical' [-Wunused-variable]
     int critical;
         ^
In file included from krossruby_la.all_cpp.cpp:4:0:
rubyscript.cpp: In member function 'virtual Kross::Api::Object::Ptr Kross::Ruby::RubyScript::callFunction(const TQString&, Kross::Api::List::Ptr)':
rubyscript.cpp:198:9: warning: unused variable 'ruby_errinfo' [-Wunused-variable]
     int ruby_errinfo = Qnil;
         ^
In file included from ../../../lib/kross/api/class.h:30:0,
                 from ../../../lib/kross/api/module.h:25,
                 from rubyinterpreter.cpp:27,
                 from krossruby_la.all_cpp.cpp:2:
../../../lib/kross/api/event.h: In instantiation of 'Kross::Api::Event<T>::~Event() [with T = Kross::Api::Module]':
../../../lib/kross/api/class.h:59:32:   required from 'Kross::Api::Class<T>::Class(const TQString&) [with T = Kross::Api::Module]'
../../../lib/kross/api/module.h:52:37:   required from here
../../../lib/kross/api/event.h:79:21: warning: deleting object of abstract class type 'Kross::Api::Function' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
                     delete it.data();
                     ^
Makefile:736: recipe for target 'krossruby_la.all_cpp.lo' failed
make[5]: *** [krossruby_la.all_cpp.lo] Error 1
make[5]: Leaving directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c/lib/kross/ruby'
Makefile:638: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c/lib/kross'
Makefile:636: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c/lib'
Makefile:689: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c'
Makefile:606: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/dev/shm/BUILD.fc22.x86_64/trinity-koffice-14.0.1~pre7+634c8f2c'
erreur : Mauvais statut de sortie pour /var/tmp/rpm-tmp.qZGmHQ (%build)
Comment 1 Slávek Banko 2015-12-12 07:55:47 CST
Created attachment 2593 [details]
Add ruby 2.2 detection

The patch only adds detection Ruby 2.2.x, but does not solve FTBFS. The problem seems to be identical, as is reported in the Debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791895
Comment 2 Francois Andriot 2016-01-01 06:58:33 CST
Marking as PATCH AVAILABLE.
This is also required in OpenSuse TumbleWeed.
Comment 3 Slávek Banko 2016-01-01 13:14:38 CST
Resolved, along with a second patch that fixes FTBFS! See GIT hash 4eabb309 and 0c09c41f (master), 8099312e and fac11962 (r14.0.x).
Comment 4 Francois Andriot 2016-01-18 16:02:37 CST
*** Bug 2466 has been marked as a duplicate of this bug. ***