Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274458 - x11-libs/qtscriptgenerator-0.1.0 fails to emerge.
Summary: x11-libs/qtscriptgenerator-0.1.0 fails to emerge.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-17 06:56 UTC by Hongjiu Zhang
Modified: 2010-07-17 09:18 UTC (History)
1 user (show)

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


Attachments
Whole emerge log. (qtscriptgenerator-0.1.0.txt,32.75 KB, text/plain)
2009-06-17 06:57 UTC, Hongjiu Zhang
Details
another build.log (qtsg.log,37.62 KB, text/plain)
2009-06-26 05:41 UTC, Hongjiu Zhang
Details
environment (environment,111.36 KB, text/plain)
2009-06-26 05:43 UTC, Emmanuel Pelado
Details
build.log (build.log,194.50 KB, text/plain)
2009-06-26 05:45 UTC, Emmanuel Pelado
Details
new build.log (qtfinal.log,38.39 KB, text/plain)
2009-06-28 00:50 UTC, Hongjiu Zhang
Details
new build.log (qtfinal.log,34.82 KB, text/plain)
2009-06-28 01:15 UTC, Hongjiu Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hongjiu Zhang 2009-06-17 06:56:18 UTC
I am using a hardened profile and I cannot emerge x11-libs/qtscriptgenerator-0.1.0.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--hash-style=both -Wl,--sort-common -o generator ast.o lexer.o list.o parser.o smallobject.o control.o visitor.o default_visitor.o dumptree.o tokens.o binder.o codemodel.o type_compiler.o name_compiler.o declarator_compiler.o class_compiler.o codemodel_finder.o compiler_utils.o preprocessor.o generator.o main.o reporthandler.o typeparser.o typesystem.o asttoxml.o fileout.o generatorset.o metajava.o customtypes.o abstractmetabuilder.o abstractmetalang.o prigenerator.o generatorsetqtscript.o metaqtscriptbuilder.o metaqtscript.o classgenerator.o shellgenerator.o shellimplgenerator.o shellheadergenerator.o setupgenerator.o docgenerator.o moc_generator.o moc_fileout.o moc_generatorset.o moc_prigenerator.o moc_generatorsetqtscript.o moc_classgenerator.o moc_shellgenerator.o moc_shellimplgenerator.o moc_shellheadergenerator.o moc_setupgenerator.o qrc_generator.o    -L/usr/lib/qt4 -lQtXml -L/usr/lib/qt4 -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
`.L1135' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1138' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1147' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1137' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1143' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1145' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1251' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1254' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1263' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1253' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1259' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
`.L1261' referenced in section `.gnu.linkonce.r._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o: defined in discarded section `.gnu.linkonce.t._ZN3rpp17pp_macro_expander23skip_argument_variadicsIPKcEET_RKSt6vectorISsSaISsEEPNS_8pp_macroES4_S4_' of main.o
collect2: ld returned 1 exit status
make: *** [generator] Error 1
 *
 * ERROR: x11-libs/qtscriptgenerator-0.1.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2787:  Called die
 * The specific snippet of code:
 *       emake || die "make generator failed";
 *  The die message:
 *   make generator failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qtscriptgenerator-0.1.0/temp/environment'.
 *
>>> Failed to emerge x11-libs/qtscriptgenerator-0.1.0


Portage 2.1.6.13 (selinux/2007.0/x86/hardened, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.29-hardened_b5 i686)
=================================================================
System uname: Linux-2.6.29-hardened_b5-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-1.12.12
Timestamp of tree: Tue, 16 Jun 2009 02:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fforce-addr -fomit-frame-pointer -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -fforce-addr -fomit-frame-pointer -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.kaist.ac.kr/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--hash-style=both -Wl,--sort-common"
LINGUAS="zh_TW zh af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca cs csb cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-7"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage/layman/gentoo-china"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb branding bzip2 cairo cdr cjk cli cracklib crypt cups custom-cflags custom-cxxflags dbus doc dri dvd dvdr dvdread emboss encode examples expat fam fontconfig fortran gdbm gif git gnutls gpm gstreamer hal handbook hardened iconv ieee1394 ipv6 isdnlog java java6 jpeg jpeg2k kde latex ldap libnotify lzo mad midi mikmod mmx mmxext mng mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly ogg openexr opengl openmp pam pcre pdf perl pic png policykit ppds pppd pulseaudio python qt qt3support qt4 quicktime readline reflection sdl selinux session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype unicode usb vim-syntax vorbis webkit win32codecs x86 xcb xcomposite xml xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 	emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 	maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_TW zh af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca cs csb cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zu" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel 	mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage 	siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware 	voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hongjiu Zhang 2009-06-17 06:57:12 UTC
Created attachment 194956 [details]
Whole emerge log.
Comment 2 Hongjiu Zhang 2009-06-17 06:58:46 UTC
By the way, I have no build.log in /var/tmp/portage/*-*/*/temp/ anymore. Is it because I set PORTAGE_ELOG_*? Or portage do not support this by default any more? I think it is a little hard for me to upload these information for bugs right now.
Comment 3 Emmanuel Pelado 2009-06-25 20:37:39 UTC
same problem here
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2009-06-25 21:25:54 UTC
Please try without '-Wl,--enable-new-dtags' in LDFLAGS.
Comment 5 Hongjiu Zhang 2009-06-26 05:41:49 UTC
Created attachment 195791 [details]
another build.log

It does not work. Should I re-emerge all its dependencies again without --enable-new-dtags? I am sorry that enabling these frustrating flags keeps you busy. If these LDFLAGS is obsolete, I will drop them.
Comment 6 Emmanuel Pelado 2009-06-26 05:43:10 UTC
Created attachment 195793 [details]
environment

-
Comment 7 Emmanuel Pelado 2009-06-26 05:45:15 UTC
Created attachment 195794 [details]
build.log

--
Comment 8 Emmanuel Pelado 2009-06-26 05:47:14 UTC
(In reply to comment #7)
> Created an attachment (id=195794) [edit]
> build.log
> 
> --
> 

my emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.30-rc7-git4-pelox64 x86_64)
=================================================================                                               
System uname: Linux-2.6.30-rc7-git4-pelox64-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 25 Jun 2009 22:30:01 +0000                                                               
ccache version 2.4 [enabled]                                                                                     
app-shells/bash:     4.0_p24                                                                                     
dev-lang/python:     2.6.2-r1                                                                                    
dev-util/ccache:     2.4-r8                                                                                      
dev-util/cmake:      2.6.4                                                                                       
sys-apps/baselayout: 2.0.1                                                                                       
sys-apps/openrc:     0.4.3-r3                                                                                    
sys-apps/sandbox:    2.0                                                                                         
sys-devel/autoconf:  2.13, 2.63-r1                                                                               
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11                                                            
sys-devel/binutils:  2.19.1-r1                                                                                   
sys-devel/gcc-config: 1.4.1                                                                                      
sys-devel/libtool:   2.2.6a                                                                                      
virtual/os-headers:  2.6.29                                                                                      
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.leaseweb.com/gentoo/"
LANG="es_AR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es_AR es es_LA"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/PORTAGE"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa amd64 bluetooth bzip2 cdr cli cracklib cups dbus dri dvd dvdr dvdread embedded encode ffmpeg flac fortran gdbm gif gpm hal iconv isdnlog joystick jpeg jpeg2k kde kde4 lame libffi lm_sensors mmx modplug mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg openal opengl openmp pcre pdf perl pic plasma png pppd python qt4 rar readline reflection reiserfs sdl session spell spl srt sse sse2 ssl ssse3 subversion svg sysfs tcpd themes toolbar truetype unicode usb v4l2 vcd vdpau webkit wifi wireless xcomposite xorg xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_AR es es_LA" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 9 Hongjiu Zhang 2009-06-26 05:51:13 UTC
http://blog.flameeyes.eu/2006/06/22/nonsensical-hacks-why-i-find-kdenewldflags-stupid

According to Flameeyes' opinion, I will drop this obsolete --enable-new-dtags since it is forced to be. However, the bug is still on.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2009-06-26 09:40:18 UTC
Better take this bug upstream

http://code.google.com/p/qtscriptgenerator/issues/list
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2009-06-26 10:04:26 UTC
Yes, --enable-new-dtags is obsolete.

@Emmanuel: your failure is different from the original reporter's one. It looks like some sort of corruption to me. Does the build always fail in the same way at the same point?

@Zhang: please try without -fforce-addr and -Wl,--sort-common
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2009-06-26 10:20:07 UTC
-fforce-addr is known to cause problems and became a no-op in gcc 4.3
Comment 13 Hongjiu Zhang 2009-06-26 14:52:07 UTC
I see, I will try it later. 
    However, since -fforce-addr is enabled by default in hardened stages, I do not know whether there are some problems building all my system without this flag.
    And I add --sort-common since someone in gentoo-dev mailing list suggests enable it by default in make.globals, and nobody disagree. I am not sure whether it is really needed by users to have an fast experience.
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2009-06-26 15:14:17 UTC
It may also be a race condition on some object file triggered by a parallel-unsafe Makefile. So, first of all, you may want to try with MAKEOPTS="-j1", because I can't reproduce the failure with -j3.
Comment 15 Emmanuel Pelado 2009-06-26 16:12:24 UTC
(In reply to comment #11)
> Yes, --enable-new-dtags is obsolete.
> 
> @Emmanuel: your failure is different from the original reporter's one. It looks
> like some sort of corruption to me. Does the build always fail in the same way
> at the same point?
> 
> @Zhang: please try without -fforce-addr and -Wl,--sort-common
> 

same problem, allways, with/without ccache,same way and same point, with MAKEOPTS="-j1" do the same
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2009-06-26 16:23:54 UTC
Emmanuel, please attach a full build log of:

LC_ALL=C MAKEOPTS="-j1" emerge -1 qtscriptgenerator
(with ccache disabled)

Also post the output of: emerge -pv qtscriptgenerator
Comment 17 Emmanuel Pelado 2009-06-26 18:35:47 UTC
(In reply to comment #16)
> Emmanuel, please attach a full build log of:
> 
> LC_ALL=C MAKEOPTS="-j1" emerge -1 qtscriptgenerator
> (with ccache disabled)
> 
> Also post the output of: emerge -pv qtscriptgenerator
> 

well, i can compile the package with this options.

what do LC_ALL=C variable?, i dont know if it was the solution, but it works great for me...
many thanks
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2009-06-26 20:28:03 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > Emmanuel, please attach a full build log of:
> > 
> > LC_ALL=C MAKEOPTS="-j1" emerge -1 qtscriptgenerator
> > (with ccache disabled)
> > 
> > Also post the output of: emerge -pv qtscriptgenerator
> > 
> 
> well, i can compile the package with this options.
> 
> what do LC_ALL=C variable?, i dont know if it was the solution, but it works
> great for me...
> many thanks
> 

No the trick was the "-j1" which disables parallel compilation. 
I ll fix the ebuild accordingly

Thank you all

Closing
Comment 19 Davide Pesavento (RETIRED) gentoo-dev 2009-06-27 09:52:48 UTC
Forcing -j1 is not a fix, but rather a workaround. The original reporter (or Emmanuel) should file a bug upstream so that it can be properly fixed. Please leave a comment here when the bug is fixed upstream so we can backport the patch.
Thanks.
Comment 20 Hongjiu Zhang 2009-06-28 00:49:42 UTC
I am sorry to reopen this bug. (Hmm, only half of this bug solved. I mean Emmanuel's is different with mine as you said.)

I have just set the following:

CFLAGS="-O2 -march=prescott -pipe"
MAKEOPTS="-j1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LC_ALL,LANG="POSIX"

but still get the error. 

ps: I am surprised that after unsetting PORT_LOGDIR and my Portage no longer produce temp/build.log anymore.
Comment 21 Hongjiu Zhang 2009-06-28 00:50:19 UTC
Created attachment 195927 [details]
new build.log
Comment 22 Hongjiu Zhang 2009-06-28 01:04:11 UTC
sorry. i uploaded wrong log, which is fforce-addr enabled. i will uploaded correct one in 2 days. simple saying, everything is same except "L11xx".
Comment 23 Hongjiu Zhang 2009-06-28 01:15:59 UTC
Created attachment 195929 [details]
new build.log

correct oone
Comment 24 Hongjiu Zhang 2009-06-28 02:29:50 UTC
does it have something to do with hardened specs or with gcc-3.4?
Comment 25 Hongjiu Zhang 2009-06-28 06:46:13 UTC
I see. I will send an upstream bug.
Comment 26 Davide Pesavento (RETIRED) gentoo-dev 2009-06-28 11:03:15 UTC
(In reply to comment #20)
> ps: I am surprised that after unsetting PORT_LOGDIR and my Portage no longer
> produce temp/build.log anymore.
> 

Please file another bug report for the portage logging problems.
Comment 27 Davide Pesavento (RETIRED) gentoo-dev 2009-06-28 12:01:41 UTC
(In reply to comment #24)
> does it have something to do with hardened specs or with gcc-3.4?
> 

CC'ing hardened to hear their opinion about the failure (see last attachment).
Comment 28 Ben de Groot (RETIRED) gentoo-dev 2009-06-28 14:30:10 UTC
(In reply to comment #24)
> does it have something to do with hardened specs or with gcc-3.4?

Quite likely. We (Qt team) don't support any GCC below 4.1.
Comment 29 Hongjiu Zhang 2009-06-29 05:08:22 UTC
Upstream: http://code.google.com/p/qtscriptgenerator/issues/detail?id=46#makechanges
Waiting for any information.

Another bug find about it: 275776
Comment 30 Hongjiu Zhang 2009-06-29 19:26:04 UTC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625

Finally I found a gcc bug that has something to do with this. It seems as if a binutils bug but no proper solution exists. A suggested way in http://powernerd.blogspot.com/2007/05/defined-in-discarded-section-gccg.html is to downgrade the binutils. I am trying to have my binutils downloading and test again.

But I am wondering whether higher version will be masked or blocked in this package if a gcc-3 is found if it is really about binutils.
Comment 31 Hongjiu Zhang 2009-06-29 19:28:13 UTC
Similar bug in Ubuntu: https://bugs.launchpad.net/binutils/+bug/32583
Comment 32 Davide Pesavento (RETIRED) gentoo-dev 2009-06-29 19:45:47 UTC
From what I could understand in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625 I'd say it's a compiler bug, fixed in gcc-4.1. The fix however requires COMDAT group support from the linker, so you need both gcc >= 4.1 and binutils >= 2.16.
Comment 33 Ben de Groot (RETIRED) gentoo-dev 2009-06-29 20:09:33 UTC
Re-assigning to hardened team, as this is not a configuration we as Qt team support.
Comment 34 Hongjiu Zhang 2009-06-30 01:41:50 UTC
Maybe it should be toolchain team.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16276

In this bug, I can only see it is about gcc-3. I don't know whether the patch is enabled, which I will see it later. Thanks for everyone here, for your help in these days.
Comment 35 Hongjiu Zhang 2009-06-30 03:16:06 UTC
Patch given in that mail does not work. Hope toolchain team can give some help.

I do not know what to do...
Comment 36 Hongjiu Zhang 2009-08-16 05:30:00 UTC
Cannot reproduce the bug.
Comment 37 Gordon Malm (RETIRED) gentoo-dev 2009-08-17 21:07:08 UTC
Re-opening, bug is reproducible.
Comment 38 Hongjiu Zhang 2009-12-18 07:33:05 UTC
Now hardened change to use gcc-4 now. Maybe this bug can be close as invalid.
Comment 39 Hongjiu Zhang 2010-01-15 12:11:09 UTC
Toolchain team does not support gcc-3 anymore. So keep on new things and forget this. :)
Comment 40 Nikos Chantziaras 2010-07-17 09:18:05 UTC
The ebuild still forces -j1.  This should be reopened.  Or should I file a new bug?