Closed Bug 714268 Opened 14 years ago Closed 6 years ago

Build error at xptcstubs_ppc64_linux.cpp

Categories

(Core :: XPCOM, defect)

9 Branch
PowerPC
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dougmencken, Unassigned)

Details

Attachments

(1 file)

I'm trying to build Firefox 9.0.1. That's what I've got: nsIInterfaceInfoManager.idl xptiInterfaceInfo.cpp xptiInterfaceInfoManager.cpp xptiTypelibGuts.cpp xptiWorkingSet.cpp xptcall.cpp xptcinvoke_ppc64_linux.cpp /home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp: In function ‘void invoke_copy_to_stack(PRUint64*, double*, PRUint32, nsXPTCVariant*, PRUint64*)’: /home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc64_linux.cpp:119:36: warning: ‘tempu64’ may be used uninitialized in this function [-Wuninitialized] xptcstubs_ppc64_linux.cpp {standard input}: Assembler messages: {standard input}:16: Error: junk at end of line, first unrecognized character is `@' {standard input}:55: Error: junk at end of line, first unrecognized character is `@' ... 243 similar lines omitted ... {standard input}:9591: Error: junk at end of line, first unrecognized character is `@' {standard input}:9630: Error: junk at end of line, first unrecognized character is `@' In the directory /home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/xpcom/reflect/xptcall/src/md/unix The following command failed to execute properly: c++ -o xptcstubs_ppc64_linux.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE="Linux3.1" -DOSARCH=Linux -DEXPORT_XPTC_API -D_IMPL_NS_COM -I./../.. -I./../../../../xptinfo/src -I. -I. -I../../../../../../dist/include -I../../../../../../dist/include/nsprpub -I/home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/dist/include/nspr -I/home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/dist/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DNDEBUG -DTRIMMED -g -pipe -O3 -fomit-frame-pointer -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -MD -MF .deps/xptcstubs_ppc64_linux.pp /home/username/build-farm/_BIGSYSTEM/icecat-v9.0.1.builddir/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc64_linux.cpp make[8]: *** [xptcstubs_ppc64_linux.o] Error 1 make[7]: *** [libs] Error 2 make[6]: *** [libs] Error 2 make[5]: *** [libs] Error 2 make[4]: *** [libs] Error 2 make[3]: *** [libs] Error 2 make[2]: *** [libs_tier_platform] Error 2 make[1]: *** [tier_platform] Error 2 make: *** [default] Error 2 ERROR: 'make' error. Abort. My .mozconfig: export MOZ_PHOENIX=1 mk_add_options MOZ_PHOENIX=1 ac_add_options --enable-postscript ac_add_options --enable-strip ac_add_options --prefix=/usr ac_add_options --sysconfdir=/etc ac_add_options --mandir=/usr/share/man ac_add_options --with-default-mozilla-five-home=/usr/lib ac_add_options --with-pthreads #ac_add_options --with-system-png ac_add_options --disable-calendar ac_add_options --disable-chatzilla ac_add_options --disable-composer ac_add_options --disable-crashreporter ac_add_options --disable-debug ac_add_options --disable-elf-dynstr-gc ac_add_options --disable-installer ac_add_options --disable-ipc ac_add_options --disable-ldap ac_add_options --disable-mailnews ac_add_options --disable-mochitest ac_add_options --disable-accessibility ac_add_options --disable-libnotify ac_add_options --disable-negotiateauth ac_add_options --disable-official-branding ac_add_options --disable-profilesharing ac_add_options --disable-system-cairo ac_add_options --disable-tests ac_add_options --disable-toolkit-qt ac_add_options --disable-updater ac_add_options --disable-xinerama ac_add_options --disable-xprint ac_add_options --disable-necko-wifi ac_add_options --enable-application=browser ac_add_options --enable-crypto ac_add_options --enable-default-toolkit=cairo-gtk2 ac_add_options --enable-extensions="default spellcheck" ac_add_options --enable-freetype2 ac_add_options --enable-optimize="-pipe -O3" ac_add_options --enable-pango ac_add_options --enable-strip ac_add_options --enable-svg ac_add_options --enable-svg-renderer=cairo ac_add_options --enable-toolkit-cairo-gtk2 ac_add_options --enable-xft ac_add_options --with-system-jpeg ac_add_options --with-system-zlib g++ -v: Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-linux-gnu/4.6/lto-wrapper Target: powerpc-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-9' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-secureplt --disable-softfloat --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --with-long-double-128 --enable-checking=release --build=powerpc-linux-gnu --host=powerpc-linux-gnu --target=powerpc-linux-gnu Thread model: posix gcc version 4.6.2 (Debian 4.6.2-9)
Attached file top-level config.log
Explicitly adding ac_add_options --build=powerpc64-linux ac_add_options --host=powerpc64-linux ac_add_options --target=powerpc64-linux to .mozconfig doesn't help. The error remains the same. The top-level config.log is attached.
Douglas -> Are you trying to build Firefox 9 for PPC? AFAIK PPC is not supported with versions >=4. Moving to correct component for further triage/confirmation of support
Component: General → Build Config
QA Contact: general → build.config
Component: Build Config → XPCOM
Product: Firefox → Core
QA Contact: build.config → xpcom
(In reply to Douglas from comment #2) > Explicitly adding > > ac_add_options --build=powerpc64-linux > ac_add_options --host=powerpc64-linux > ac_add_options --target=powerpc64-linux > > to .mozconfig doesn't help. The error remains the same. > > The top-level config.log is attached. We actually have ppc ppc64 working fine in gentoo with gcc-4.5.3, you need to test with gcc-4.5.x to rule gcc out of the mixture as the culprit.
I am seeing a similar error with the current mozilla-central with a ppc64 debian (wheezy pre-release). I get this error with both gcc 4.6 and gcc 4.4.
I see this on debian powerpc on a 64 bit machine,which is different than the debian ppc64 port. In this configuration it is calling gcc/g++ and as for a 32 bit build. The problem is that OS_ARCH is still powerpc64 so it tries to assemble xptcinvoke_asm_ppc64_linux in 32 bit mode. Adding -m64 to the assembler command lines will get past this error. However if you intend to do a 32 bit build on debian powerpc with a 64 bit CPU you can force this with the flags --host powerpc-unknown-linux-gnu --target powerpc-unknown-linux-gnu That should get it to use the 32 bit version xptinvoke_asm_ppc

I'm going to mark WFM since the ppc64 build was fixed with bug 1576303 and the 32-bit release does compile (it just has other issues).

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: