Closed Bug 301936 Opened 20 years ago Closed 18 years ago

deerpark alpha2 fails to build on linux ppc using Gentoo

Categories

(Firefox :: General, defect)

PowerPC
Linux
defect
Not set
blocker

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: timothy.waters, Unassigned)

Details

(Whiteboard: closeme-2007-06-20)

User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.9) Gecko/20050716 Firefox/1.0.5 Build Identifier: firefox deerpark alpha2 source The build fails quickly. Probably some ppc linux specific problem. Reproducible: Always Steps to Reproduce: 1. emerge mozilla-firefox 2. wait 3. curse loudly Actual Results: Creating .deps gmake[6]: Entering directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom/typelib/xpt/tools' xpt_dump.c powerpc-unknown-linux-gnu-gcc -o xpt_dump.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2005072411 -I../../../../dist/include/xpcom -I../../../../dist/include -I../../../../dist/include/nspr -I../../../../dist/sdk/include -fPIC -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -mtune=G3 -pipe -Wno-return-type -w -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -include ../../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/xpt_dump.pp xpt_dump.c powerpc-unknown-linux-gnu-gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -mtune=G3 -pipe -Wno-return-type -w -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -o xpt_dump xpt_dump.o -L../../../../dist/bin -L../../../../dist/lib ../../../../dist/lib/libxpt.a -ldl -lm ../../../../dist/lib/libxpt.a(xpt_arena.o)(.text.XPT_ArenaStrDup+0x50): In function `XPT_ArenaStrDup': : undefined reference to `memcpy@@GLIBC_2.0' ../../../../dist/lib/libxpt.a(xpt_struct.o)(.text.XPT_InterfaceDescriptorAddTypes+0xa0): In function `XPT_InterfaceDescriptorAddTypes': : undefined reference to `memcpy@@GLIBC_2.0' ../../../../dist/lib/libxpt.a(xpt_struct.o)(.text.XPT_InterfaceDescriptorAddMethods+0xa0): In function `XPT_InterfaceDescriptorAddMethods': : undefined reference to `memcpy@@GLIBC_2.0' ../../../../dist/lib/libxpt.a(xpt_struct.o)(.text.XPT_InterfaceDescriptorAddConsts+0xa0): In function `XPT_InterfaceDescriptorAddConsts': : undefined reference to `memcpy@@GLIBC_2.0' ../../../../dist/lib/libxpt.a(xpt_xdr.o)(.text.GrowPool+0x9c): In function `GrowPool': : undefined reference to `memcpy@@GLIBC_2.0' ../../../../dist/lib/libxpt.a(xpt_xdr.o)(.text.XPT_NewString+0x64): more undefined references to `memcpy@@GLIBC_2.0' follow collect2: ld returned 1 exit status gmake[6]: *** [xpt_dump] Error 1 gmake[6]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom/typelib/xpt/tools' gmake[5]: *** [export] Error 2 gmake[5]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom/typelib/xpt/tools' gmake[4]: *** [export] Error 2 gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom/typelib/xpt' gmake[3]: *** [export] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom/typelib' gmake[2]: *** [export] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla/xpcom' gmake[1]: *** [tier_2] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.1_alpha2/work/mozilla' make: *** [default] Error 2 !!! ERROR: www-client/mozilla-firefox-1.1_alpha2 failed. !!! Function src_compile, Line 124, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: finish building ??? PROFIT!
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050724 Firefox/1.0+ The last lines (with the !!! sigils) suggest you are actually using Gentoo's portage (ebuild) system. You will probably find that the Mozilla team cannot offer any help in this forum. You might want to query the Gentoo bugzilla or forums as your problem may have seen before, or perhaps wait a day or two in case Gentoo release a newer ebuild for your platform. You might to check that your portage is uptodate (emerge -pv portage) as this has been updated recently, following any instructions concerning post-install of portage, especially relating to etc-update; and if you have recently updated glibc, you might want to do an 'emerge -e system' or follow your preferred recipe for updating your toolchain. This report is probably INVALID - relates to packaging not Mozilla.
that's right, no support here for the Ubuntu build system
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Please reopen this bug. It also happens on Debian with deerpark beta 1, and there is absolutely no reason for it to be related to packaging.
... and it doesn't happen with firefox 1.0.6 with the same toolchain. (just checked)
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
(In reply to comment #3) > Please reopen this bug. It also happens on Debian with deerpark beta 1, and > there is absolutely no reason for it to be related to packaging. If you are getting a similar problem on Debian, (or Ubuntu for that matter), it is probably a different defect, and warrants a separate report, if you consider that there is indeed a Bug in Firefox or its build system. Not accepting/processing defect reports in third party systems may seem curt (I am sure that a lot of Devs use Debian or Gentoo), but it is sensible.
(In reply to comment #5) > If you are getting a similar problem on Debian, (or Ubuntu for that > matter), it is probably a different defect I don't get a "similar problem". I get the *exact same one*.
It might be a toolchain problem, though I don't understand why it only happens on ppc... I worked around the issue by setting VISIBILITY_FLAGS to nothing in xpcom/typelib/xpt/src/Makefile.in, thus removing the include of the system_wrappers and the gcc_hidden.h file. It seems there is an issue with visibility stuff on ppc...
After some investigation, it appears that this bug is due to gcc bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297 and addressed in mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=307168
See http://forums.gentoo.org/viewtopic-t-347250-postdays-0-postorder-asc-start-25.html#2599109 I have not emerged Firefox on linuxc PPC for some months. Thank you for the info about gcc.
I have this problem with SuSE 10 (gcc 4.0.2). See this: http://forums.mozillazine.org/viewtopic.php?t=314642
this seems the same i cant build from source on powerpc. using a clean ubuntu 5.10 (breezy) with neccisary dev packages installed. i have tried building the firefox 1.5 b2 source, and then today 20051017 updated to the cvs version and tried again. on running "make -f client.mk build" i get c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-no n-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-h -Wl,libmozz.so -o libmozz .so adler32.o compress.o crc32.o deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o -ldl -lm deflate.o: In function `MOZ_Z_deflateSetDictionary': deflate.c:(.text+0x3f8): undefined reference to `memcpy@@GLIBC_2.0' deflate.o: In function `flush_pending': deflate.c:(.text+0x8a0): undefined reference to `memcpy@@GLIBC_2.0' deflate.o: In function `MOZ_Z_deflate': deflate.c:(.text+0x12b8): undefined reference to `memset@@GLIBC_2.0' deflate.o: In function `MOZ_Z_deflateCopy': deflate.c:(.text+0x15ac): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x15e4): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16a8): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16bc): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16d0): undefined reference to `memcpy@@GLIBC_2.0' deflate.o:deflate.c:(.text+0x16e0): more undefined references to `memcpy@@GLIBC_2.0' follow deflate.o: In function `lm_init': deflate.c:(.text+0x18a8): undefined reference to `memset@@GLIBC_2.0' deflate.o: In function `fill_window': deflate.c:(.text+0x1ce4): undefined reference to `memcpy@@GLIBC_2.0' gzio.o: In function `MOZ_Z_gzread': gzio.c:(.text+0x9b4): undefined reference to `memcpy@@GLIBC_2.0' gzio.o: In function `MOZ_Z_gzseek': gzio.c:(.text+0x1254): undefined reference to `memset@@GLIBC_2.0' infback.o: In function `MOZ_Z_inflateBack': infback.c:(.text+0x484): undefined reference to `memcpy@@GLIBC_2.0' inflate.o: In function `updatewindow': inflate.c:(.text+0x378): undefined reference to `memcpy@@GLIBC_2.0' inflate.c:(.text+0x3bc): undefined reference to `memcpy@@GLIBC_2.0' inflate.c:(.text+0x3d8): undefined reference to `memcpy@@GLIBC_2.0' inflate.o: In function `MOZ_Z_inflate': inflate.c:(.text+0xa10): undefined reference to `memcpy@@GLIBC_2.0' inflate.o:inflate.c:(.text+0xed0): more undefined references to `memcpy@@GLIBC_2.0' follow collect2: ld returned 1 exit status make[4]: *** [libmozz.so] Error 1 make[4]: Leaving directory `/usr/local/src/mozilla/firefox-build/modules/zlib/src' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/usr/local/src/mozilla/firefox-build/modules/zlib' make[2]: *** [tier_1] Error 2 make[2]: Leaving directory `/usr/local/src/mozilla/firefox-build' make[1]: *** [default] Error 2 make[1]: Leaving directory `/usr/local/src/mozilla/firefox-build' make: *** [build] Error 2 my uname -a Linux titania 2.6.12-9-powerpc #1 Mon Oct 10 15:26:45 BST 2005 ppc GNU/Linux
(In reply to comment #11) > this seems the same > > i cant build from source on powerpc. using a clean ubuntu 5.10 (breezy) with > neccisary dev packages installed. Without wishing to contradict comment 6 (which you may find helpful), can I suggest that try to resolve problems with a specific distro or its package system with the vendor. I bet that there are many Ubuntu users who would be grateful to you. (However that toolchain problems, and especially failures with "make -f client.mk build", need to be in our Bugzilla). Alternatively, your problem might be another manifestation of Bug 307168 "Need to clone NSPR X86-64 GCC configure fix to main configure (hidden visibility)" and you will probably find it helpful to look there as well.
Same problem hier, with ff 1.5.0.1 under PPC Ubuntu breezy: ---------- deflate.o: In function `MOZ_Z_deflateSetDictionary': deflate.c:(.text+0x3f8): undefined reference to `memcpy@@GLIBC_2.0' deflate.o: In function `flush_pending': deflate.c:(.text+0x8a0): undefined reference to `memcpy@@GLIBC_2.0' deflate.o: In function `MOZ_Z_deflate': deflate.c:(.text+0x12b8): undefined reference to `memset@@GLIBC_2.0' deflate.o: In function `MOZ_Z_deflateCopy': deflate.c:(.text+0x15ac): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x15e4): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16a8): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16bc): undefined reference to `memcpy@@GLIBC_2.0' deflate.c:(.text+0x16d0): undefined reference to `memcpy@@GLIBC_2.0' deflate.o:deflate.c:(.text+0x16e0): more undefined references to `memcpy@@GLIBC_2.0' follow deflate.o: In function `lm_init': deflate.c:(.text+0x18a8): undefined reference to `memset@@GLIBC_2.0' deflate.o: In function `fill_window': deflate.c:(.text+0x1ce4): undefined reference to `memcpy@@GLIBC_2.0' gzio.o: In function `MOZ_Z_gzread': gzio.c:(.text+0x9b4): undefined reference to `memcpy@@GLIBC_2.0' gzio.o: In function `MOZ_Z_gzseek': gzio.c:(.text+0x1254): undefined reference to `memset@@GLIBC_2.0' infback.o: In function `MOZ_Z_inflateBack': infback.c:(.text+0x484): undefined reference to `memcpy@@GLIBC_2.0' inflate.o: In function `updatewindow': inflate.c:(.text+0x378): undefined reference to `memcpy@@GLIBC_2.0' inflate.c:(.text+0x3bc): undefined reference to `memcpy@@GLIBC_2.0' inflate.c:(.text+0x3d8): undefined reference to `memcpy@@GLIBC_2.0' inflate.o: In function `MOZ_Z_inflate': inflate.c:(.text+0xa10): undefined reference to `memcpy@@GLIBC_2.0' inflate.o:inflate.c:(.text+0xed0): more undefined references to `memcpy@@GLIBC_2.0' follow collect2: ld returned 1 exit status make[3]: *** [libmozz.so] Error 1 make[3]: Leaving directory `/home/denny/progs/mozilla/modules/zlib/src' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/home/denny/progs/mozilla/modules/zlib' make[1]: *** [tier_1] Error 2 make[1]: Leaving directory `/home/denny/progs/mozilla' make: *** [default] Error 2 ----------
(In reply to comment #13) > Same problem hier, with ff 1.5.0.1 under PPC Ubuntu breezy: Your comment looks like an exact duplicate of comment 11 , and so I would assert that my comment 12 applies. Whilst I would recommend as I have done throughout this bug, that you install a toolchain with the features and implementation to correctly compile Mozilla, I do understand that you are not responsible for Ubuntu and 'we' are responsible for the Mozilla sources and coding standards. If I can lay my hands on a copy of PPC Badger, I will take a look, as at first glance it is not clear why the fix for Bug 307168 "Need to clone NSPR X86-64 GCC configure fix to main configure (hidden visibility)" has not resolved this problem. You might find it helpful to check with the Ubuntu bug tracking system as I would expect that other projects are affected and Ubuntu would want to fix their gcc package.
Could you please try the build from a 2.0.x release, branch , or latest trunk and advise as to your results?
Can one of the reporters advise us on whether this works now with Firefox 2 and a current version of Gentoo?
Whiteboard: closeme-2007-06-20
Resolving as INCOMPLETE due to lack of updates. Please address the questions in comments 15 and 16 before reopening.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago18 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.