Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372467 - net-libs/xulrunner-2.0.1-r1 fails to configure without sys-devel/gcc:4.4
Summary: net-libs/xulrunner-2.0.1-r1 fails to configure without sys-devel/gcc:4.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 13:05 UTC by Dmitri Bogomolov
Modified: 2012-01-28 13:55 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Bogomolov 2011-06-21 13:05:16 UTC
There is a `-mno-avx` switch in cflags for net-libs/xulrunner-2.0.1-r1, which is unavailable for gcc:4.3 (at least my =sys-devel/gcc-4.3.4 doesn't understand it).

Reproducible: Always




/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/temp/build.log ends with:

checking whether the C compiler (i686-gentoo-linux-gnu-gcc  -march=i686 -pipe -Wno-return-type -w -mno-avx -Wl,-O1 -Wl,--as-needed) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/config.log

/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1024: checking host system type
configure:1045: checking target system type
configure:1063: checking build system type
configure:1144: checking for mawk
configure:1144: checking for gawk
configure:1274: checking for perl5
configure:1274: checking for perl
configure:2413: checking for gcc
configure:2526: checking whether the C compiler (i686-gentoo-linux-gnu-gcc  -march=i686 -pipe -Wno-return-type -w -mno-avx -Wl,-O1 -Wl,--as-needed) works
configure:2542: i686-gentoo-linux-gnu-gcc -o conftest  -march=i686 -pipe -Wno-return-type -w -mno-avx  -Wl,-O1 -Wl,--as-needed conftest.c  1>&5
cc1: error: unrecognized command line option "-mno-avx"
distcc[32148] ERROR: compile conftest.c on localhost failed
configure: failed program was:

#line 2537 "configure"
#include "confdefs.h"

main(){return(0);}

This commit is responsible:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-2.0.1-r1.ebuild?r1=1.1&r2=1.2&
Comment 1 Dmitri Bogomolov 2011-06-21 13:13:02 UTC
(In reply to comment #0)

> This commit is responsible:
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-2.0.1-r1.ebuild?r1=1.1&r2=1.2&

Excuse me, please. The line "append-flags -mno-avx " was in original 1.1 version of ebuild.

I think that line may be conditional or sys-devel/gcc:4.3 must be in DEPEND.
Comment 2 Serge FELIX 2011-06-30 09:38:31 UTC
Same problem with both xulrunner-2.0.1-r1 et firefox-5.0-r1

# cat /var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1024: checking host system type
configure:1045: checking target system type
configure:1063: checking build system type
configure:1144: checking for mawk
configure:1144: checking for gawk
configure:1274: checking for perl5
configure:1274: checking for perl
configure:2413: checking for gcc
configure:2526: checking whether the C compiler (i686-pc-linux-gnu-gcc  -march=i686 -pipe -Wno-return-type -w -mno-avx -Wl,-O1 -Wl,--as-needed) works
configure:2542: i686-pc-linux-gnu-gcc -o conftest  -march=i686 -pipe -Wno-return-type -w -mno-avx  -Wl,-O1 -Wl,--as-needed conftest.c  1>&5
cc1: error: unrecognized command line option "-mno-avx"
configure: failed program was:

#line 2537 "configure"
#include "confdefs.h"

main(){return(0);}
----------------------------
# emerge --info
Portage 2.1.10.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.12.2-r0, 2.6.38-gentoo-r6-sfx i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-sfx-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 29 Jun 2011 19:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.65-r1
sys-devel/automake:       1.4_p6, 1.6.3, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.3.4, 4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O2 -march=i686 -pipe"
Comment 3 Serge FELIX 2011-08-30 13:58:05 UTC
fixed in firefox : https://bugs.gentoo.org/show_bug.cgi?id=374325
but still active with xulrunner
Comment 4 Dmitri Bogomolov 2011-08-30 14:02:54 UTC
(In reply to comment #3)
> fixed in firefox : https://bugs.gentoo.org/show_bug.cgi?id=374325
> but still active with xulrunner

It was the same before firefox-5, which not depends on xulrunner.
Comment 5 Jory A. Pratt gentoo-dev 2012-01-28 13:55:45 UTC
xulrunner is being preped for removal, we have properly fixed it in tb and fx.