Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269217 - games-action/chromium-0.9.14 fails to compile using gcc-4.1 when USE="-nls"
Summary: games-action/chromium-0.9.14 fails to compile using gcc-4.1 when USE="-nls"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 08:03 UTC by Rick Harris
Modified: 2009-05-28 18:49 UTC (History)
0 users

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


Attachments
chromium-0.9.14-libintl.patch (chromium-0.9.14-libintl.patch,410 bytes, patch)
2009-05-10 08:04 UTC, Rick Harris
Details | Diff
emerge --info (emerge.info,10.91 KB, text/plain)
2009-05-10 21:12 UTC, Rick Harris
Details
build.log (build.log,11.97 KB, text/plain)
2009-05-15 02:28 UTC, Rick Harris
Details
libintl.h (libintl.h,4.59 KB, text/plain)
2009-05-15 23:53 UTC, Rick Harris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2009-05-10 08:03:25 UTC
games-action/chromium-0.9.14 fails to compile when USE="-nls" with the following error...

>>> Compiling source in /var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14 ...
make -j1                                                                                          
cd . && /bin/sh /var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/missing --run autoheader
rm -f stamp-h1                                                                                                 
touch config.h.in                                                                                              
cd . && /bin/sh ./config.status config.h                                                                       
config.status: creating config.h                                                                               
config.status: config.h is unchanged                                                                           
make  all-recursive                                                                                            
make[1]: Entering directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14'           
Making all in po                                                                                               
make[2]: Entering directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/po'        
make[2]: Nothing to be done for `all'.                                                                         
make[2]: Leaving directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/po'         
Making all in misc                                                                                             
make[2]: Entering directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/misc'      
make[2]: Nothing to be done for `all'.                                                                         
make[2]: Leaving directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/misc'       
Making all in src                                                                                              
make[2]: Entering directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/src'       
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -pthread -pthread   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL    "-DPACKAGE=\"chromium-bsu\"" "-DLOCALEDIR=\"/usr/games/share/locale\"" "-DPKGDATADIR=\"/usr/share/games/chromium-bsu\""   -O2 -march=k8 -pipe -fomit-frame-pointer -c -o chromium_bsu-Ammo.o `test -f 'Ammo.cpp' || echo './'`Ammo.cpp           
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -pthread -pthread   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL    "-DPACKAGE=\"chromium-bsu\"" "-DLOCALEDIR=\"/usr/games/share/locale\"" "-DPKGDATADIR=\"/usr/share/games/chromium-bsu\""   -O2 -march=k8 -pipe -fomit-frame-pointer -c -o chromium_bsu-Audio.o `test -f 'Audio.cpp' || echo './'`Audio.cpp        
/usr/include/libintl.h:40: error: expected unqualified-id before 'char'                                                                                                             
/usr/include/libintl.h:40: error: expected initializer before 'char'                                                                                                                
Audio.cpp: In member function 'virtual void Audio::setMusicVolume(float)':                                                                                                          
Audio.cpp:264: warning: converting to 'int' from 'float'                                                                                                                            
make[2]: *** [chromium_bsu-Audio.o] Error 1                                                                                                                                         
make[2]: Leaving directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14/src'                                                                             
make[1]: *** [all-recursive] Error 1                                                                                                                                                
make[1]: Leaving directory `/var/tmp/portage/games-action/chromium-0.9.14/work/chromium-bsu-0.9.14'                                                                                 
make: *** [all] Error 2

Solution is to always include libintl.h with the following patch...
Comment 1 Rick Harris 2009-05-10 08:04:10 UTC
Created attachment 190812 [details, diff]
chromium-0.9.14-libintl.patch
Comment 2 Sebastian Luther (few) 2009-05-10 08:19:24 UTC
Please provide emerge --info.
Comment 3 Rick Harris 2009-05-10 21:12:55 UTC
Created attachment 190871 [details]
emerge --info
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2009-05-12 20:51:16 UTC
Builds fine for me on stable x86.  Reopen with the full output from the attempted build.
Comment 5 Rick Harris 2009-05-15 02:28:54 UTC
Created attachment 191300 [details]
build.log
Comment 6 Rick Harris 2009-05-15 02:29:30 UTC
Re-opening with requested info.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2009-05-15 17:09:55 UTC
Can you attach your /usr/include/libintl.h please?
Comment 8 Rick Harris 2009-05-15 23:53:10 UTC
Created attachment 191430 [details]
libintl.h

Attached /usr/include/libintl.h is from the current stable sys-libs/glibc-2.8_p20080602-r1 installed with USE="-nls".
Comment 9 Rick Harris 2009-05-16 00:11:52 UTC
Please read some of the other bugs with the same problem and how they resolved, dev-util/monotone, dev-lang/mono, audacious-plugins, etc.

The issue needs to be reported to upstream and the attached patch in the first post applied until upstream fix.

Thanks :)
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2009-05-16 02:55:14 UTC
So far I'm not convinced it's not just something screwed up on your system.  It builds just fine for me on stable x86.
Comment 11 Rick Harris 2009-05-16 06:10:29 UTC
Do you have sys-libs/glibc-2.8_p20080602-r1 built with USE="-nls" ?
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2009-05-16 06:56:23 UTC
yes.  This whole system is built with -nls.  My copy of libintl.h is exactly the same as your copy.

The main difference that I see is that I'm using gcc-4.3 while you're still on 4.1.
Comment 13 Rick Harris 2009-05-16 22:45:52 UTC
You're spot on the mark :)

Compile failure only occurs with gcc-4.1 and only if USE="-nls".

Compile works fine with gcc-4.3.
Comment 14 Mr. Bones. (RETIRED) gentoo-dev 2009-05-28 18:49:23 UTC
ok, I'll go ahead and mark this won't fix then since it works with gcc4.3.  gcc4.1 is going away anyhow so this issue won't be around then and gcc4.3 is stable for all archs.

Thanks for the bug report and for testing.