Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Building, daq, failed
Date: Sun, 14 Sep 2014 08:10:08
Message-Id: 54154D0E.303@gmail.com
In Reply to: [gentoo-user] Building, daq, failed by meino.cramer@gmx.de
1 On 14/09/2014 09:10, meino.cramer@×××.de wrote:
2 > Hi,
3 >
4 > The command emerge "=daq-daq-2.0.2" failed with:
5 >>>> Configuring source in /var/tmp/portage/net-libs/daq-2.0.2/work/daq-2.0.2 ...
6 > * econf: updating daq-2.0.2/config.guess with /usr/share/gnuconfig/config.guess
7 > * econf: updating daq-2.0.2/config.sub with /usr/share/gnuconfig/config.sub
8 > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --enable-ipv6 --enable-pcap-module --enable-afpacket-module --enable-dump-module --disable-nfq-module --disable-ipq-module --disable-static --disable-ipfw-module --disable-bundled-modules
9 > configure: loading site script /usr/share/config.site
10 > checking for a BSD-compatible install... /usr/bin/install -c
11 > checking whether build environment is sane... yes
12 > checking for a thread-safe mkdir -p... /bin/mkdir -p
13 > checking for gawk... gawk
14 > checking whether make sets $(MAKE)... yes
15 > checking whether make supports nested variables... yes
16 > checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
17 > checking whether the C compiler works... no
18 > configure: error: in `/var/tmp/portage/net-libs/daq-2.0.2/work/daq-2.0.2':
19 > configure: error: C compiler cannot create executables
20 > See `config.log' for more details
21 >
22 > The relevant part of the config.log shows:
23 > configure:3355: $? = 0
24 > configure:3344: x86_64-pc-linux-gnu-gcc -v >&5
25 > Using built-in specs.
26 > COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/x86_64-pc-linux-gnu-gcc
27 > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
28 > Target: x86_64-pc-linux-gnu
29 > Configured with: /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-
30 > gnu/4.8.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-p
31 > c-linux-gnu/4.8.2/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/python --enable-languages=c,c++,objc,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-incl
32 > uded-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.3r1, pie-0.5.8r1' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu -
33 > -enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog
34 > Thread model: posix
35 > gcc version 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1)
36 > configure:3355: $? = 0
37 > configure:3344: x86_64-pc-linux-gnu-gcc -V >&5
38 > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-V'
39 > x86_64-pc-linux-gnu-gcc: fatal error: no input files
40 > compilation terminated.
41 > configure:3355: $? = 1
42 > configure:3344: x86_64-pc-linux-gnu-gcc -qversion >&5
43 > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'
44 > x86_64-pc-linux-gnu-gcc: fatal error: no input files
45 > compilation terminated.
46 > configure:3355: $? = 1
47 > configure:3375: checking whether the C compiler works
48 > configure:3397: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -msse3 -ggdb -combine -ffast-math -fopenmp -fprefetch-loop-arrays -ftree-parallelize-loops=12 -funroll-all-loops -fwhole-program -mtune=amdfam10 -O3 -Wl,-O1 -Wl,--as-needed
49 > conftest.c >&5
50 > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-combine'
51 > configure:3401: $? = 1
52 > configure:3439: result: no
53 > configure: failed program was:
54 > | /* confdefs.h */
55 > | #define PACKAGE_NAME "daq"
56 > | #define PACKAGE_TARNAME "daq"
57 > | #define PACKAGE_VERSION "2.0.2"
58 > | #define PACKAGE_STRING "daq 2.0.2"
59 > | #define PACKAGE_BUGREPORT "snort-team@××××××××××.com"
60 > | #define PACKAGE_URL ""
61 > | #define PACKAGE "daq"
62 > | #define VERSION "2.0.2"
63 > | /* end confdefs.h. */
64 > |
65 > | int
66 > | main ()
67 > | {
68 > |
69 > | ;
70 > | return 0;
71 > | }
72 > configure:3444: error: in `/var/tmp/portage/net-libs/daq-2.0.2/work/daq-2.0.2':
73 > configure:3446: error: C compiler cannot create executables
74 > See `config.log' for more details
75 >
76 > To check I reemerged 'less' and this compiles fine. So, gcc works fine
77 > so far.
78 >
79 > What's wrong here? Wrong gcc-version? daq not compatible with gcc (or
80 > vice versa)?
81
82
83 I think it's wrong gcc-version because of these silly errors:
84
85 x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-V'
86 x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'
87 x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-combine'
88
89 I haven't looked into it any further, but I'd say it's a bug in the
90 build system so report it to bgo.
91
92 Meanwhile, as a workaround to get it to build, install gcc:4.7 and use
93 that to build daq. See if that works, if so mention it in your bug report.
94
95
96
97 --
98 Alan McKinnon
99 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Building, daq, failed meino.cramer@×××.de