Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot emerge genkernel or system logger
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
crake
n00b
n00b


Joined: 06 Nov 2012
Posts: 2

PostPosted: Tue Nov 06, 2012 7:23 am    Post subject: cannot emerge genkernel or system logger Reply with quote

Hey, giving my second go at installing Gentoo.
I came accross a problem when emerging genkernel, I decided to just go the alternative route and compile my own kernel. Then when I got to emerging a system logger i got this:
Code:
emerge metalog

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-admin/metalog-2
openpty failed: 'out of pty devices'
 * metalog-2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking metalog-2.tar.xz to /var/tmp/portage/app-admin/metalog-2/work
>>> Source unpacked in /var/tmp/portage/app-admin/metalog-2/work
>>> Preparing source in /var/tmp/portage/app-admin/metalog-2/work/metalog-2 ...
 * Applying metalog-0.9-metalog-conf.patch ...                                                                       [ ok ]
 * Applying metalog-2-no-gets.patch ...                                                                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-admin/metalog-2/work/metalog-2 ...
 * econf: updating metalog-2/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating metalog-2/config.guess with /usr/share/gnuconfig/config.guess
./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 --with-unicode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-admin/metalog-2/work/metalog-2':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-admin/metalog-2/work/metalog-2/config.log
 * ERROR: app-admin/metalog-2 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 2024:  Called econf '--with-unicode'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=app-admin/metalog-2'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/metalog-2'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/metalog-2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/metalog-2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/metalog-2/work/metalog-2'
 * S: '/var/tmp/portage/app-admin/metalog-2/work/metalog-2'

>>> Failed to emerge app-admin/metalog-2, Log file:

>>>  '/var/tmp/portage/app-admin/metalog-2/temp/build.log'

 * Messages for package app-admin/metalog-2:

 * ERROR: app-admin/metalog-2 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 2024:  Called econf '--with-unicode'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=app-admin/metalog-2'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/metalog-2'`.
 * The complete build log is located at '/var/tmp/portage/app-admin/metalog-2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/metalog-2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/metalog-2/work/metalog-2'
 * S: '/var/tmp/portage/app-admin/metalog-2/work/metalog-2'


Here is my emerge --info:

Code:
emerge --info
Portage 2.1.11.9 (default/linux/amd64/10.0/desktop, gcc-4.5.4, glibc-2.15-r2, 3.2.32-std310-amd64 x86_64)
=================================================================
System uname: Linux-3.2.32-std310-amd64-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 06 Nov 2012 05:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed --as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync5.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cd cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I've done some snooping to try and find similar problems with equal sulotions, unfortunetly no solutions have helped thus far. If anyone could help me solve this issue I would appreciate it greatly.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Tue Nov 06, 2012 7:33 am    Post subject: Reply with quote

try swapping up your CFLAGS/CXXFLAGS a bit. small change

Code:

-march=native -O2 -pipe


NB: seeing this is also helpful

Code:

/var/tmp/portage/app-admin/metalog-2/work/metalog-2/config.log

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
crake
n00b
n00b


Joined: 06 Nov 2012
Posts: 2

PostPosted: Tue Nov 06, 2012 5:15 pm    Post subject: Reply with quote

Thanks for the reply,

I changed up the CFLAGS/CXXFLAGS like you suggesting to no avail. I'm unsure though once you edit the make.conf file are those settings already good to go in the system, or is there something else needed to do after changing?

Here is what seems to be the problem within
Code:
/var/tmp/portage/app-admin/metalog-2/work/metalog-2/config.log


Code:
configure:4320: $? = 0
configure:4309: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.$
Thread model: posix
gcc version 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7)
configure:4320: $? = 0
configure:4309: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.$
Thread model: posix
gcc version 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7)
configure:4320: $? = 0
configure:4309: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:4320: $? = 1
configure:4309: x86_64-pc-linux-gnu-gcc -qversion >&5
x86_64-pc-linux-gnu-gcc: unrecognized option '-qversion'
configure:4320: $? = 1
configure:4340: checking whether the C compiler works
configure:4362: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed --as-needed conftest.c  >&5
cc1: error: unrecognized command line option "-fas-needed"
configure:4366: $? = 1
configure:4404: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "metalog"
| #define PACKAGE_TARNAME "metalog"
| #define PACKAGE_VERSION "2"
| #define PACKAGE_STRING "metalog 2"
| #define PACKAGE_BUGREPORT "metalog-users@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "metalog"
| #define VERSION "2"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:4409: error: in `/var/tmp/portage/app-admin/metalog-2/work/metalog-2':
configure:4411: error: C compiler cannot create executables
See `config.log' for more details



...And an update, I got emerge working!
I'm pretty sure changing changing
LDFLAGS="${LDFLAGS}--as-needed"
To
LDFLAGS="$-Wl,-O1 -Wl,--as-needed"
fixed the issue.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Tue Nov 06, 2012 6:53 pm    Post subject: Reply with quote

yip, just noticed that.

Code:

LDFLAGS="-Wl,-O1 -Wl,--as-needed --as-needed"


Code:

cc1: error: unrecognized command line option "-fas-needed"


on mine

Code:

LDFLAGS="-Wl,-O1 -Wl,--as-needed"


one thing worth noting; --as-needed is included by default now

my LDFLAGS posted above are the defaults. I do not set them at all in make.conf
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum