First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 165777
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mozilla Gentoo Team <mozilla@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Frederic Grosshans <frederic.grosshans_web@m4x.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
mozilla-ppc64-32bit.patch mozilla-ppc64-32bit.patch patch Markus Rothe 2007-02-24 20:04 0000 697 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 165777 depends on: Show dependency tree
Show dependency graph
Bug 165777 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-07 15:53 0000
Mozilla firefox 2 does not compile on my ppc64 with 32 bits userland. The error
message is :

powerpc-unknown-linux-gnu-g++ -o xptcstubs_ppc64_linux.o -c -fvisibility=hidden
-DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\"
-DBUILD_ID=0000000000 -DEXPORT_XPTC_API  
-I../../../../../../dist/include/xpcom -I../../../../../../dist/include
-I/usr/include/nspr    -I./../..    -fPIC 
-DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\"
-DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti
-fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-long-long -pipe -mtune=970 -mcpu=970 -mabi=altivec -Wno-return-type -w
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2 
-DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\"
-DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT
-include ../../../../../../mozilla-config.h
-Wp,-MD,.deps/xptcstubs_ppc64_linux.pp xptcstubs_ppc64_linux.cpp
{standard input}: Assembler messages:
{standard input}:14: Error: junk at end of line, first unrecognized character
is `@'
[..... repeated a lot of time ......... ]
{standard input}:9628: Error: junk at end of line, first unrecognized character
is `@'
gmake[7]: *** [xptcstubs_ppc64_linux.o] Error 1
gmake[7]: Leaving directory
`/var/tmp/portage/mozilla-firefox-2.0.0.1/work/mozilla/xpcom/reflect/xptcall/src/md/unix'
[...]

Reproducible: Always

Steps to Reproduce:
1.emerge mozilla-firefox




agena ~ # emerge --info
Portage 2.1.1-r2 (default-linux/ppc/ppc64/2006.1/32bit-userland/970/pmac,
gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r5 ppc64)
=================================================================
System uname: 2.6.19-gentoo-r5 ppc64 PPC970FX, altivec supported
Gentoo Base System version 1.12.6
Last Sync: Wed, 07 Feb 2007 01:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/X11/app-default /etc/X11/gdm/Init
/etc/X11/gdm/PostLogin /etc/X11/gdm/PostSession /etc/X11/gdm/PreSession
/etc/X11/gdm/Sessions /etc/X11/gdm/modules /etc/X11/mwm /etc/X11/rstart
/etc/X11/sysconfig/ /etc/X11/xdm//usr/share/texmf/ /etc/bash_completion.d/
/etc/dbus-1/ /etc/env.d /etc/gconf /etc/gimp/ /etc/gnome-vfs-2.0/modules/
/etc/init.d/ /etc/mono/ /etc/pam.d/ /etc/revdep-rebuild /etc/skel/
/etc/sound/events/ /etc/ssl/misc/ /etc/terminfo /etc/texmf/web2c /etc/udev
/etc/vim/ /etc/wget /usr/X11R6/lib/ /usr/lib/X11/"
CXXFLAGS="-O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LINGUAS="en fr zh zh_CN vi el de en en_US es en_GB be_BY it hu ar"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="ppc X Xaw3d acl alsa alsa_cards_aoa alsa_cards_aoa-fabric-layout
alsa_cards_aoa-soundbus alsa_cards_aoa-soundbus-i2s alsa_cards_usb-audio
alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym
alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare
alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug
alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958
alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat
alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw
alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug
alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share
alsa_pcm_plugins_shm alsa_pcm_plugins_softvol altivec apache2 async automount
avahi bash-completion beagle berkdb bitmap-fonts bonobo bzip2 c++ cairo cddb
cdr chm cjk cli cracklib crypt cups dbus djvu dlloader doc dri dvd dvdr dvi eds
elibc_glibc emboss encode esd evo example examples f77 fam fbcon firefox flac
font-server foomaticdb fortran freetype fs gcc64 gdbm gif gimpprint ginac glitz
gnome gpm gs gstreamer gtk gtk2 guile hal html iconv imagemagick imlib
input_devices_evdev input_devices_keyboard input_devices_mouse
input_devices_wacom isdnlog javascript jpeg kernel_linux lcd_devices_bayrad
lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780
lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses
lcd_devices_text libg++ libwww linguas_ar linguas_be_BY linguas_de linguas_el
linguas_en linguas_en_GB linguas_en_US linguas_es linguas_fr linguas_hu
linguas_it linguas_vi linguas_zh linguas_zh_CN mad maildir math midi mikmod
mono motif moznomail mozsvg mp3 mpeg mysql nautilus ncurses network nls
no-old-linux nptl nptlonly nsplugin offensive ogg ole opengl pam pcre pda pdf
perl plugin png ppds pppd python qhull quicktime readline reflection samba sdl
session slp sox spell spl spreadsheet ssl svg t1lib tcpd tetex theora tiff tk
truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales
video_cards_fbdev video_cards_radeon vim-with-x vorbis widescreen xml xorg xv
zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS


emerge -va mozilla firefox gives :

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] www-client/mozilla-firefox-2.0.0.1 [1.5.0.9] USE="gnome -debug
-filepicker% -ipv6 -java -mozbranding% -mozdevelop -moznopango
-restrict-javascript% -xforms% -xinerama -xprint" LINGUAS="ar* de el en_GB* es*
fr hu* it* zh%* zh_CN -bg -ca -cs -da -es_AR -es_ES -eu -fi -fy% -fy_NL -ga
-ga_IE -gu% -gu_IN -he -ja -ka% -ko -ku% -lt -mk -mn% -nb -nb_NO -nl -nn%
-nn_NO% -pa% -pa_IN -pl -pt% -pt_BR -pt_PT% -ru -sk -sl -sv -sv_SE -tr -zh_TW
(-ro%)" 0 kB

------- Comment #1 From Markus Rothe 2007-02-07 18:37:45 0000 -------
there is this workaround:

$ emerge --noreplace setarch
$ setarch ppc
$ emerge mozilla-firefox

------- Comment #2 From Frederic Grosshans 2007-02-08 11:55:54 0000 -------
This works, thanks !

------- Comment #3 From Markus Rothe 2007-02-24 20:04:00 0000 -------
Created an attachment (id=111147) [edit]
mozilla-ppc64-32bit.patch

this patch applies on top of the current ppc64 mozilla patch and fixes the
issues we have with 32bit userland for me (tested!).

mozilla: could you please add this patch to the next patchset? (there is no
need for a hurry I think)

------- Comment #4 From Raúl Porcel 2007-02-25 18:34:00 0000 -------
Added to CVS, and bumped patchset which includes it. Version 0.3 for 2.0.0.2.

Thanks for the patch and testing!

------- Comment #5 From Markus Rothe 2007-02-26 09:55:14 0000 -------
thanks. works like a charm!

------- Comment #6 From Brent Baude 2007-02-26 17:19:49 0000 -------
Would you consider something similar for thunderbird?

------- Comment #7 From Christian Marie 2007-03-02 04:14:33 0000 -------
Is this broken in thunderbird also? If so, please open a new bug.
Where did this patch come from? Is it back upstream now?

------- Comment #8 From Raúl Porcel 2007-03-02 10:25:28 0000 -------
(In reply to comment #7)
> Is this broken in thunderbird also? If so, please open a new bug.
> Where did this patch come from? Is it back upstream now?
> 

Yes, it affects thunderbird too. But i don't know if it affects the 1.5.x
series. In firefox we apply this patch in the 2.0 series, but not in the 1.5.
I plan to apply this patch to thunderbird 2.0 asap. However, i will not apply
this patch to 1.5 series, as ppc64 doesn't have firefox nor thunderbird
keyworded :)

And no, it's not applied upstream. Feel free to open a bug :)

------- Comment #9 From Raúl Porcel 2007-03-03 11:41:43 0000 -------
Reopening, with that patch building ff in pure ppc64 fails, same happens with
amd64 btw.

------- Comment #10 From Markus Rothe 2007-03-04 08:37:28 0000 -------
now this is stupid.. this shouldn't fail on ppc64/64-bit userland, because it
does exactly the same as in security/coreconf/Linux.mk.

and this just cannot fail on amd64 due to this patch as it enters this if
statement only if OS_TEST returns "Linuxppc64"... but as you said it does...

heh.. but let me check this.

But if this patch does break amd64 it should be removed again - quickly.

------- Comment #11 From Markus Rothe 2007-03-04 08:57:30 0000 -------
it seems like USE_64 isn't "seen" in
xpcom/reflect/xptcall/src/md/unix/Makefile.in

It does only work for ppc64/32bit userland, because "ifeq ($(USE_64),1)"
returns "false" then.

I'm not sure why this would break amd64...

mozilla: I'm sorry, but could you please remove this patch again? I'll do a
proper patch and submit it here, when it's (really) ready. Sorry for the
trouble this patch causes. :-/

------- Comment #12 From Raúl Porcel 2007-03-04 10:21:03 0000 -------
(In reply to comment #11)
> I'm not sure why this would break amd64...
> 
> mozilla: I'm sorry, but could you please remove this patch again? I'll do a
> proper patch and submit it here, when it's (really) ready. Sorry for the
> trouble this patch causes. :-/

Sorry i didn't explained myself. With amd64 we have the same problem, wrt
32bits ul, bug 168893, when applying a patch based on yours(which is not
included in the patchset right now). As you said, i think it's related that
USE_64 doesn't work.

I'm in #-ppc64 if you want to see how can we do this.

------- Comment #13 From Raúl Porcel 2007-03-05 19:02:35 0000 -------
Just a note for you, Markus.

I think i have the solution to this. So no need to looking more into this. 
Brent gave me access to his quad and i've tried with both gcc3(32 and 64bits)
and gcc4 profiles of 2006.1 and seems fine.

I'm waiting to get the reports back and i'll apply this to all the mozilla
products :)

------- Comment #14 From Raúl Porcel 2007-03-07 13:37:12 0000 -------
Fixed in:
mozilla-firefox 2.0.0.2, patchset 2.0.0.2-0.4
mozilla-thunderbird 2.0_beta2, patchset 2.0_beta2-0.3
seamonkey 1.1.1, patchset 1.1.1-0.1
mozilla-sunbird 0.3.1, patchset 0.3.1-0.1
xulrunner 1.8.0.4, patchset 1.8.0.4-0.9

First Last Prev Next    No search results available      Search page      Enter new bug