Bug#656313: Iceweasel FTBFS

2012-01-18 Thread Mike Hommey
On Wed, Jan 18, 2012 at 07:01:34PM +0100, Rogier wrote:
> 
> > On Wed, Jan 18, 2012 at 03:36:04PM +0100, Rogier wrote:
> > > > > 32-bits userspace on 64-bits kernel.
> > > > > I assume that's the same from a build-point-of-view ?
> > > > 
> > > > I bet it works if you build using "linux32 dpkg-buildpackage
> > > > -b".
> > > 
> > > Never heard of that...
> > > Thanks for educating me. (but, even if I had known of 'linux32',
> > > I doubt I would have suspected that to be the cause).
> > > 
> > > I'll try it tonight (the build takes rather long on my machine).
> > > 
> > > If my understanding is correct (the manual page says it only
> > > affects the output of uname -m), it implies that the detected
> > > kernel architecture is used to make decisions about the desired
> > > or applicable userspace architecture ? To me, it seems this is
> > > not quite Right ?
> > > 
> > > Anyway, I assume this will solve it for me.
> > 
> > I think your setup makes the build system assume you are
> > cross-compiling, which you really aren't, but triggers using uname.
> > Please check what the build-xulrunner/config/autoconf.mk file says
> > about TARGET_CPU when building without linux32.
> 
> Some snippets from build-*/config/autoconf.mk:
>   build-browser/config/autoconf.mk:target  = 
> x86_64-unknown-linux-gnu
>   build-browser/config/autoconf.mk:CROSS_COMPILE   =
>   build-browser/config/autoconf.mk:host_cpu   = x86_64
>   build-browser/config/autoconf.mk:TARGET_CPU = x86_64
>   build-browser/config/autoconf.mk:TARGET_XPCOM_ABI = x86_64-gcc3
>   build-browser/config/autoconf.mk:OS_TEST=x86_64
>   build-browser/config/autoconf.mk:CPU_ARCH=x86_64
> 
>   build-xulrunner/config/autoconf.mk:target  = i486-pc-linux-gnu
>   build-xulrunner/config/autoconf.mk:CROSS_COMPILE   = 
>   build-xulrunner/config/autoconf.mk:host_cpu = i486
>   build-xulrunner/config/autoconf.mk:TARGET_CPU   = i486
>   build-xulrunner/config/autoconf.mk:TARGET_XPCOM_ABI = x86-gcc3
>   build-xulrunner/config/autoconf.mk:OS_TEST=i486
>   build-xulrunner/config/autoconf.mk:CPU_ARCH=x86

Ah... so your build failure is happening under build-browser, not
build-xulrunner, right?

Mike



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#656313: Iceweasel FTBFS

2012-01-18 Thread Mike Hommey
On Wed, Jan 18, 2012 at 03:36:04PM +0100, Rogier wrote:
> > > 32-bits userspace on 64-bits kernel.
> > > I assume that's the same from a build-point-of-view ?
> > 
> > I bet it works if you build using "linux32 dpkg-buildpackage -b".
> 
> Never heard of that...
> Thanks for educating me. (but, even if I had known of 'linux32', I 
> doubt I would have suspected that to be the cause).
> 
> I'll try it tonight (the build takes rather long on my machine).
> 
> If my understanding is correct (the manual page says it only affects 
> the output of uname -m), it implies that the detected kernel 
> architecture is used to make decisions about the desired or applicable 
> userspace architecture ? To me, it seems this is not quite Right ?
> 
> Anyway, I assume this will solve it for me.

I think your setup makes the build system assume you are
cross-compiling, which you really aren't, but triggers using uname.
Please check what the build-xulrunner/config/autoconf.mk file says about
TARGET_CPU when building without linux32.

Mike



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#656313: Iceweasel FTBFS

2012-01-18 Thread Mike Hommey
On Wed, Jan 18, 2012 at 11:45:39AM +0100, Rogier wrote:
> Package: iceweasel
> Version: 8.0-3
> Severity: serious
> Justification: fails to build from source
> 
> Dear Maintainer,
> 
> As the title says: iceweasel does not build.
> After installation of the build dependencies, and downloading and compiling 
> using:
> 
>   apt-get source iceweasel
>   cd iceweasel-8.0
>   dpkg-buildpackage -b
> 
> Compilation stops with the following messages:
> 
>   g++ -fno-rtti -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 -Wno-long-
> long -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections 
> -fdata-sections -pipe -
> fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer 
> -fPIC -shared -Wl,-
> z,defs -Wl,--gc-sections -Wl,-h,test.so -o test.so -Wl,--as-needed -lpthread  
>   -Wl,-rpath-
> link,/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-xulrunner/dist/bin 
> -Wl,-rpath-link,/usr/lib  
> test.o
>   ===
>   === If you get failures below, please file a bug describing the error
>   === and your environment (compiler and linker versions), and use
>   === --disable-elf-hack until this is fixed.
>   ===
>   
> /home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser/build/unix/elfhack/elfhack
>  -b 
> test.so
>   test.so: terminate called after throwing an instance of 
> 'std::runtime_error'
> what():  Error opening file

Are you using a 32-bits chroot on a 64-bits system?

Mike



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#656313: Iceweasel FTBFS

2012-01-18 Thread Rogier
Package: iceweasel
Version: 8.0-3
Severity: serious
Justification: fails to build from source

Dear Maintainer,

As the title says: iceweasel does not build.
After installation of the build dependencies, and downloading and compiling 
using:

apt-get source iceweasel
cd iceweasel-8.0
dpkg-buildpackage -b

Compilation stops with the following messages:

g++ -fno-rtti -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 -Wno-long-
long -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections 
-fdata-sections -pipe -
fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer 
-fPIC -shared -Wl,-
z,defs -Wl,--gc-sections -Wl,-h,test.so -o test.so -Wl,--as-needed -lpthread
-Wl,-rpath-
link,/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-xulrunner/dist/bin 
-Wl,-rpath-link,/usr/lib  
test.o
===
=== If you get failures below, please file a bug describing the error
=== and your environment (compiler and linker versions), and use
=== --disable-elf-hack until this is fixed.
===

/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser/build/unix/elfhack/elfhack
 -b 
test.so
test.so: terminate called after throwing an instance of 
'std::runtime_error'
  what():  Error opening file
make[7]: *** [test.so] Aborted
make[7]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-
browser/build/unix/elfhack'
make[6]: *** [libs] Error 2
make[6]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-
browser/build/unix'
make[5]: *** [libs] Error 2
make[5]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser/build'
make[4]: *** [libs_tier_base] Error 2
make[4]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser'
make[3]: *** [tier_base] Error 2
make[3]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser'
make[2]: *** [default] Error 2
make[2]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0/build-browser'
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [stamps/build-browser] Error 2
make[1]: Leaving directory 
`/home/rogier/src/extern/iceweasel/iceweasel-8.0'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
(END)

After adding '--disable-elf-hack' on the 'configure' command-line in 
debian/rules and
in xulrunner.mozconfig, it compiles fine.

I have included the list of build dependencies and versions, including some of 
their
dependencies that seemed relevant. If you need any more info, please ask.

Kind Regards,

Rogier.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of build dependencies:
ii  autotools-dev 20110511.1
ii  base-files6.5
ii  binutils  2.22-2
ii  build-essential   11.5
ii  bzip2 1.0.6-1
ii  debhelper 8.9.14
ii  dpkg-dev  1.16.1.2
ii  g++   4:4.6.1-3
ii  gcc   4:4.6.1-3
ii  imagemagick   8:6.6.9.7-5+b2
ii  libasound2-dev1.0.24.1-4
ii  libbz2-dev1.0.6-1
ii  libc6-dev [libc-dev]  2.13-24
ii  libcairo2-dev 1.10.2-6.2
ii  libdbus-glib-1-dev0.98-1
ii  libdpkg-perl  1.16.1.2
ii  libevent-dev  2.0.16-stable-1
ii  libffi-dev3.0.10-3
ii  libglib2.0-dev2.30.2-4
ii  libgnome2-dev 2.32.1-2
ii  libgnomeui-dev2.24.5-2
ii  libgnomevfs2-dev  1:2.24.4-1
ii  libgtk2.0-dev 2.24.8-2
ii  libhunspell-dev   1.3.2-4
ii  libidl-dev0.8.14-0.2
ii  libiw-dev 30~pre9-8
ii  libjpeg8-dev [libjpeg-dev]8c-2
ii  libnotify-dev 0.7.4-1
ii  libnspr4-dev  4.8.9-1
ii  libnss3-dev   3.13.1.with.ckbi.1.88-1
ii  libreadline-dev   6.2-8
ii  librsvg2-bin  2.34.2-2
ii  libsqlite3-dev3.7.9-2
ii  libstartup-notification0-dev  0.12-1
ii  libvpx-dev0.9.7.p1-2
ii  libx11-dev2:1.4.4-4
ii  libxt-dev 1:1.1.1-2
ii  locales   2.13-24
ii  lsb-release   3.2-28
ii  make  3.81-8.1
ii