Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100285 - mozilla-firefox-1.0.6-r3 does not compile on AMD64
Summary: mozilla-firefox-1.0.6-r3 does not compile on AMD64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 13:55 UTC by Real Name
Modified: 2005-07-26 17:39 UTC (History)
1 user (show)

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


Attachments
New GCC4 patch (mozilla-firefox-1.0.4-gcc4.patch,5.99 KB, patch)
2005-07-26 14:23 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Real Name 2005-07-25 13:55:33 UTC
x86_64-pc-linux-gnu-g++ -o nsHttpRequestHead.o -c -DOSTYPE=\"Linux2.6\"
-DOSARCH=\"Linux\" -I./../../..
/base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string
-I../../../../dist/include
/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype
-I../../../../dist/include
/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps
-I../../../../dist/include
/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv
-I../../../../dist/include/ne
cko -I../../../../dist/include
-I/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla/dist/include/ns
pr        -fPIC   -fno-rtti -fno-handle-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Wov
erloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-long-long -march=athlon64 -p
ipe -fPIC -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED
-ffunction-sections -O1 
  -DMOZILLA_CLIENT -include ../../../../mozilla-config.h
-Wp,-MD,.deps/nsHttpRequestHead.pp nsHttpReque
stHead.cpp
nsHttpConnectionMgr.cpp: In member function 'void
nsHttpConnectionMgr::OnMsgUpdateParam(nsresult, void*
)':
nsHttpConnectionMgr.cpp:837: error: cast from 'void*' to 'PRUint32' loses precision
nsHttpConnectionMgr.cpp:838: error: cast from 'void*' to 'PRUint32' loses precision
gmake[5]: *** [nsHttpConnectionMgr.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
gmake[5]: Leaving directory
`/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla/netwerk/protocol/ht
tp/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory
`/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla/netwerk/protocol/ht
tp'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla/netwerk/protocol'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory
`/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla/netwerk'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.6-r3/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.0.6-r3 failed.


Reproducible: Always
Steps to Reproduce:
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-07-25 14:38:51 UTC
It builds fine here.  Please include your `emerge info` output.
Comment 2 Jory A. Pratt 2005-07-25 22:56:40 UTC
reopen with emerge info.
Comment 3 Real Name 2005-07-26 00:42:17 UTC
"nsHttpConnectionMgr.cpp:837: error: cast from 'void*' to 'PRUint32' loses
precision"

this error message comes from gcc-4.0.1, it obvious you cannot cast an void*
type (which could be a 64bit Integer) to Int32 without loss of precision, so
emerge info is not needed i think 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-26 01:53:41 UTC
(In reply to comment #3)
> "nsHttpConnectionMgr.cpp:837: error: cast from 'void*' to 'PRUint32' loses
> precision"
> 
> this error message comes from gcc-4.0.1, it obvious you cannot cast an void*
> type (which could be a 64bit Integer) to Int32 without loss of precision, so
> emerge info is not needed i think 

And everyone obviously has a crystal ball and hence *must* know that you are
using gcc-4.0.1. You are just wasting developers' time. :/
Comment 5 Real Name 2005-07-26 02:57:50 UTC
sorry for wasting devs time, maybe we should just drop back this problem to "GCC
Porting" as it was originally intended (this means problems which occur with
current gcc-versions). Maybe the devs should look on this page:
http://gcc.gnu.org/ where 4.0.1 is current & stable so its nothing phenomenal
ppl using it, is it? Why not fix current bugs which maybe were just warnings
yesterday?

PS: my whole system is build with this gcc with no problems elsewhere
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-07-26 07:36:39 UTC
I have an updated patch for GCC4 and amd64.  I'm just testing it out and I'll
post it later.
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2005-07-26 14:23:46 UTC
Created attachment 64382 [details, diff]
New GCC4 patch

Here is a new GCC4 patch for all mozilla based programs.  All the parts of the
patch can be found upstream, and I haven't had any problems in my testing.
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-07-26 14:24:06 UTC
reopening
Comment 9 Jory A. Pratt 2005-07-26 14:53:24 UTC
(In reply to comment #5)
> sorry for wasting devs time, maybe we should just drop back this problem to "GCC
> Porting" as it was originally intended (this means problems which occur with
> current gcc-versions). Maybe the devs should look on this page:
> http://gcc.gnu.org/ where 4.0.1 is current & stable so its nothing phenomenal
> ppl using it, is it? Why not fix current bugs which maybe were just warnings
> yesterday?
> 
> PS: my whole system is build with this gcc with no problems elsewhere
 You sure are cocky, gcc-4.0.1 is not marked stable in the tree we know problems
still exist we are aiming to correct all problems before we think about bring
gcc 4.0.1 to the table for arch testing. Personal I think you need to sit down
an evalute the entire picture here ... This picture is we do what is best for
the majority of users not what a user believe should be stable just cause
upstream says it is.

HalcyOn I will look at replacing patch in a bit thanks for providing.
Comment 10 Real Name 2005-07-26 15:28:46 UTC
>You sure are cocky, gcc-4.0.1 is not marked stable in the tree we know problems
>still exist we are aiming to correct all problems before we think about bring
>gcc 4.0.1 to the table for arch testing. Personal I think you need to sit down
>an evalute the entire picture here ... This picture is we do what is best for
>the majority of users not what a user believe should be stable just cause
>upstream says it is.

the point is not the gcc-version itself, for me as java-fan its not
comprehendable why the devs will ignore a such casting failure just because a
former (old) compiler version isnt checking it? I can imagine the same devs like
buffer-overfl. and such

you should be happy the new compiler is examining the code better at
compile-time whicht produces generally a better code at runtime

gcc4 *thumbs-up*
Comment 11 Jory A. Pratt 2005-07-26 16:51:23 UTC
This is amd64 specific patch is here and I will be testing it now. If someone on
amd64 dev team would please join -moz and speak to me on this issue. Thanks.
Comment 12 Jory A. Pratt 2005-07-26 17:39:00 UTC
New gcc4 patch is in the tree should be on mirrors soon. No revision bump.