您尚未登录。

#1 2014-03-26 17:10:14

atmouse
会员
注册时间: 2011-08-24
帖子: 701

firefox-nightly 编译时出问题

==> Starting build()...
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
> obj-x86_64-unknown-linux-gnu/.mozconfig.mk
Adding client.mk options from /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/.mozconfig:
    PYTHON=/usr/bin/python2
    FOUND_MOZCONFIG := /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/.mozconfig
make[1]: Entering directory '/home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central'
/usr/bin/python2 /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/config/pythonpath.py -I /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/testing/mozbase/mozfile \
    /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/python/mozbuild/mozbuild/controller/clobber.py /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central obj-x86_64-unknown-linux-gnu
Clobber not needed.
cp /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/.mozconfig obj-x86_64-unknown-linux-gnu/.mozconfig
cd obj-x86_64-unknown-linux-gnu
/home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/configure
Adding configure options from /home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/.mozconfig:
  --enable-application=browser
  --prefix=/usr
  --libdir=/usr/lib
  --with-system-jpeg
  --with-system-zlib
  --with-system-bz2
  --with-system-png
  --with-system-libevent
  --with-system-libvpx
  --enable-system-hunspell
  --enable-system-sqlite
  --enable-system-ffi
  --enable-system-pixman
  --with-pthreads
  --enable-official-branding
  --enable-startup-notification
  --enable-gio
  --enable-gstreamer
  --disable-gnomevfs
  --disable-crashreporter
  --disable-updater
  --disable-tests
  --disable-installer
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... no
checking for gawk... gawk
Using Python from environment variable $PYTHON
Creating Python environment
checking Python environment is Mozilla virtualenv... yes
checking for perl5... no
checking for perl... /usr/bin/perl
checking for objcopy... /usr/bin/objcopy
checking for gcc... gcc -std=gnu99
checking whether the C compiler (gcc -std=gnu99 -march=x86-64 -mtune=x86-64 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox-31.0a1) works... yes
checking whether the C compiler (gcc -std=gnu99 -march=x86-64 -mtune=x86-64 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox-31.0a1) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for c++... g++ -std=gnu++0x
checking whether the C++ compiler (g++ -std=gnu++0x -march=x86-64 -mtune=x86-64 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox-31.0a1) works... yes
checking whether the C++ compiler (g++ -std=gnu++0x -march=x86-64 -mtune=x86-64 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox-31.0a1) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ -std=gnu++0x accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking how to run the C preprocessor... /lib/cpp
checking how to run the C++ preprocessor... /lib/cpp
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for minimum required perl version >= 5.006... 5.018002
checking for full perl installation... yes
checking for doxygen... /usr/bin/doxygen
checking for autoconf... /usr/bin/autoconf
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for xargs... /usr/bin/xargs
checking for rpmbuild... :
checking compiler version... gcc (GCC) 4.8.2 20140206 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
checking for make... /usr/bin/make
checking for X... libraries /usr/lib64, headers /usr/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... no
checking for connect... no
checking for remove... no
checking for shmat... no
checking for IceConnectionNumber in -lICE... yes
checking that static assertion macros used in autoconf tests work... yes
checking for --noexecstack option to as... yes
checking for -z noexecstack option to ld... yes
checking for -z text option to ld... yes
checking for --build-id option to ld... yes
checking for --ignore-unresolved-symbol option to ld... yes
checking if toolchain supports -mssse3 option... yes
checking if toolchain supports -msse4.1 option... yes
checking for x86 AVX2 asm support in compiler... yes
checking whether the C compiler supports -Werror=return-type... no
checking whether the C compiler supports -Werror=int-to-pointer-cast... no
checking whether the C compiler supports -Wtype-limits... no
checking whether the C compiler supports -Wempty-body... no
checking whether the C compiler supports -Wsign-compare... no
checking whether the C++ compiler supports -Werror=return-type... no
checking whether the C++ compiler supports -Werror=int-to-pointer-cast... no
checking whether the C++ compiler supports -Wtype-limits... no
checking whether the C++ compiler supports -Wempty-body... no
checking whether the C++ compiler supports -Wsign-compare... no
checking whether the C++ compiler supports -Wno-invalid-offsetof... no
checking whether the C++ compiler supports -Wno-inline-new-delete... no
checking whether ld has archive extraction flags... yes
checking for 64-bit OS... yes
checking for custom <inttypes.h> implementation... none specified
checking whether the C++ compiler (g++ -std=gnu++0x -march=x86-64 -mtune=x86-64 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fno-exceptions -fno-strict-aliasing -fno-rtti -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-rpath,/usr/lib/firefox-31.0a1 -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id) actually is a C++ compiler... yes
checking whether the linker supports Identical Code Folding... no
checking whether removing dead symbols breaks debugging... no
checking for ANSI C header files... no
checking for working const... yes
checking for mode_t... no
checking for off_t... no
checking for pid_t... no
checking for size_t... no
checking for ssize_t... no
checking for st_blksize in struct stat... no
checking for siginfo_t... yes
checking for gcc c++0x headers bug without rtti... yes
configure: error: Your toolchain does not support C++0x/C++11 mode properly. Please upgrade your toolchain
------ config.log ------
confdefs.h:14:16: error: expected unqualified-id before 'unsigned'
 #define size_t unsigned
                ^
confdefs.h:14:16: error: expected unqualified-id before 'unsigned'
 #define size_t unsigned
                ^
In file included from /usr/include/c++/4.8.2/memory:79:0,
                 from configure:10655:
/usr/include/c++/4.8.2/functional:1881:26: error: '_M_max_size' was not declared in this scope
   && sizeof(_Functor) <= _M_max_size
                          ^
/usr/include/c++/4.8.2/functional:1882:31: error: '_M_max_align' was not declared in this scope
   && __alignof__(_Functor) <= _M_max_align
                               ^
/usr/include/c++/4.8.2/functional:1883:7: error: '_M_max_align' was not declared in this scope
   && (_M_max_align % __alignof__(_Functor) == 0));
       ^
configure: failed program was:
#line 10654 "configure"
#include "confdefs.h"
#include <memory>
int main() {

; return 0; }
configure: error: Your toolchain does not support C++0x/C++11 mode properly. Please upgrade your toolchain
*** Fix above errors and then restart with\
               "make -f client.mk build"
/home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central/client.mk:361: recipe for target 'configure' failed
make[1]: *** [configure] Error 1
make[1]: Leaving directory '/home/atmouse/local/src/firefox-nightly-hg/src/mozilla-central'
client.mk:375: recipe for target 'obj-x86_64-unknown-linux-gnu/Makefile' failed
make: *** [obj-x86_64-unknown-linux-gnu/Makefile] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

我并不是用的extra/firefox 的PKGBUILD
gcc 我用的是4.8,

谁给我解释下这个错误啥意思?

离线

#2 2014-03-26 17:15:50

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: firefox-nightly 编译时出问题

gcc用的这个 core/gcc 4.8.2-8 (base-devel)

离线

#3 2014-03-26 17:32:28

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: firefox-nightly 编译时出问题

我PKGBUILD写的有问题, 手动make时不会

最近编辑记录 atmouse (2014-03-26 17:32:40)

离线

页脚