LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 05-12-2013, 03:32 AM   #1
davepi
Member
 
Registered: Jun 2012
Distribution: Gentoo
Posts: 42

Rep: Reputation: Disabled
Question compilation error with ibus-1.5.2 gtk3 flag


As in the thread and I haven't found anyone having simillar problem. I try to install gnome 3 because I want to have both kde and gnome and I need to have ibus with gtk3 flag however this gives me problem resulting in compile error. It happens only if gtk3 flag is enabled and the error I can see is following:
Code:
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src    -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DG_LOG_DOMAIN=\"IBUS\"  -O2 -march=native -pipe -c -o im_ibus_la-ibusimcontext.lo `test -f 'ibusimcontext.c' || echo './'`ibusimcontext.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DG_LOG_DOMAIN=\"IBUS\" -O2 -march=native -pipe -c ibusimcontext.c  -fPIC -DPIC -o .libs/im_ibus_la-ibusimcontext.o
ibusimcontext.c: In function 'ibus_im_context_class_init':
ibusimcontext.c:566:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c:567:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c:569:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c: In function 'ibus_im_context_class_fini':
ibusimcontext.c:586:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c:587:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c:589:9: error: #pragma GCC diagnostic not allowed inside functions
make[3]: *** [im_ibus_la-ibusimcontext.lo] Błąd 1
make[3]: Opuszczenie katalogu `/var/tmp/portage/app-i18n/ibus-1.5.2/work/ibus-1.5.2/client/gtk2'
make[2]: *** [all-recursive] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/app-i18n/ibus-1.5.2/work/ibus-1.5.2/client'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/app-i18n/ibus-1.5.2/work/ibus-1.5.2'
make: *** [all] Błąd 2
 * ERROR: app-i18n/ibus-1.5.2 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/ibus-1.5.2'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/ibus-1.5.2'`.
 * The complete build log is located at '/var/tmp/portage/app-i18n/ibus-1.5.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/ibus-1.5.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/ibus-1.5.2/work/ibus-1.5.2'
 * S: '/var/tmp/portage/app-i18n/ibus-1.5.2/work/ibus-1.5.2'
It seems that there's something wrong with im_ibus_la-ibusimcontext.lo file but no idea how to fix that issue. Please help.
 
Old 05-12-2013, 02:06 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
ibusimcontext.c:566:9: error: #pragma GCC diagnostic not allowed inside functions
ibusimcontext.c:567:9: error: #pragma GCC diagnostic not allowed inside functions
From page 1 of the google search, you can see it's a bug. Due for a fix in 4.8 :-/.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52116
 
1 members found this post helpful.
Old 05-12-2013, 02:18 PM   #3
davepi
Member
 
Registered: Jun 2012
Distribution: Gentoo
Posts: 42

Original Poster
Rep: Reputation: Disabled
When I enter this output to google the only thing i got in reply was link to this place with my thread. And also I was looking for problems with ibus as i have never had problems with compiler. Maybe I should switch to clang instead. And don't be furious. Don't help if you don't want to. It's discouraging me from visiting this site.
 
Old 05-13-2013, 04:57 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
I searched for
Code:
#pragma GCC diagnostic not allowed inside functions
and gave you the relevant link in any case
 
1 members found this post helpful.
Old 05-13-2013, 06:56 AM   #5
davepi
Member
 
Registered: Jun 2012
Distribution: Gentoo
Posts: 42

Original Poster
Rep: Reputation: Disabled
That's why. I entered whole line. Nevertheless I apologise for my lack of knowledge and I am marking thread as solved. Solution is to upgrade to higher version of compiler. Thank you much.
 
  


Reply

Tags
compile error, gentoo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ibus compile error yasu Slackware 6 05-15-2013 09:39 AM
[SOLVED] enable ibus ibus-chewing input method on slackware 13.37 ted_chou12 Linux - Software 1 08-23-2012 09:35 AM
Slackbuild enconters error with missing "ibus.csh" ShellyCat Slackware 3 01-11-2011 07:07 AM
mount_smbfs authentication error with -N flag xaenn *BSD 1 11-18-2005 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration