Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579854 - net-misc/dhcpcd-6.10.2 - x86_64-pc-linux-gnu-gcc does not create executables
Summary: net-misc/dhcpcd-6.10.2 - x86_64-pc-linux-gnu-gcc does not create executables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL: http://roy.marples.name/projects/dhcp...
Whiteboard:
Keywords:
: 580120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-13 18:31 UTC by Gary E. Miller
Modified: 2016-04-18 17:49 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,3.18 KB, text/plain)
2016-04-13 18:31 UTC, Gary E. Miller
Details
environment (environment,86.50 KB, text/plain)
2016-04-13 18:40 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2016-04-13 18:31:54 UTC
Created attachment 430338 [details]
build.log

Fails to emerge.

kong ~ # emerge -1  net-misc/dhcpcd
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-misc/dhcpcd-6.10.2::gentoo
[...]
dhcpcd-definitions.conf will be installed to /lib/dhcpcd
Using compiler .. x86_64-pc-linux-gnu-gcc
x86_64-pc-linux-gnu-gcc does not create executables

I know my gcc is working fine as I successfully emerged many updates before and after this failure.

kong ~ # emerge -pqv '=net-misc/dhcpcd-6.10.2::gentoo'
[ebuild     U ] net-misc/dhcpcd-6.10.2 [6.10.1] USE="ipv6 udev -embedded" 

kong ~ # emerge --info '=net-misc/dhcpcd-6.10.2::gentoo'
Portage 2.2.28 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.22-r4, 4.5.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.0-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_v3_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32860432 total,  18526008 free
KiB Swap:   50331640 total,  50331640 free
Timestamp of repository gentoo: Wed, 13 Apr 2016 16:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000

mysql
    location: /var/lib/layman/mysql
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mysql.git
    masters: gentoo
    priority: 50

sabayon
    location: /var/lib/layman/sabayon
    sync-type: laymansync
    sync-uri: git://github.com/Sabayon/for-gentoo.git
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

voip
    location: /var/lib/layman/voip
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/voip.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/"
USE="12bit 256-color X a52 aac aacplus aacs aalib acl acpi additions adns ads aes afterimage airplay alsa amarok amazon amd64 ao apache2 applet ares aspell asyncdns attica audiofile auth autoipd avahi avx avx2 background bash-completion bcmath berkdb binfilter bl blink bluetooth bluray bogofilter bonjour bonobo bookmarks bootsplash branding bzip2 cairo caps cdaudio cdda cdinstall cdr celt cgi cgroup chroot clang cle266 cleartype cli command-args consolekit contentcache corba cracklib crypt cscope css csv ctype cups curl curlwrappers cursors cxx daap dane dba dbm dbus dbx dcc dcraw declarative devfs26 device-mapper dga dirac disassembler discard-path divx dlz dmi dmx docbook dpms dri drm dtmf dts dv dvb dvd dvdr dvdread dvi dynagraph dynamicplugin ecc edl egl emboss encode equalizer escreen espeak ethereal etwin exif expat exscalibar extensions extramodules faac faad fading-colors faillog fam fame fat fdk festival ffmpeg ffmpeg-mt fftw firefox fits flac flatfile fltk fma fma3 fmod fontconfig foomatic-db foomaticdb fortran fpm fpx freetts ftp g3dvl gadu gajim gallium gcj gconf gd gdal gdbm gdu gecko-mediaplayer geoip geometry geonames geotiff gif gimp gimpprint git glade glamor gles gles1 gles2 glew glib glitz glut gmath gmedia gml gmp gmplayer gnuplot gnustep gnutls gost gphoto2 gpm gps grammar graphviz grass gs gsl gsm gstreamer gtk gtk3 gtkhtml gtkspell guile h323 hardened harfbuzz hdf5 hdri highlight hostip howl howl-compat http http2 httpd ibus icecast iconv icq id3 idea ilbc imagemagick imap imlib imlib2 infinality inkjar inode inotify insecure-savers int64 introspection ipmi ipv6 iso14755 jabber jack jadetex java javascript jbig jce jingle john jpeg jpeg2k karma kdepim keybinder kpathsea ladspa lame lastfm latex lcms ldap libass libedit libextractor libinput libnotify libsamplerate libv4l2 libvisual live lm_sensors lmdb logrotate lpr lua lv2 lxc lyrics lzma lzo mad manual map mapnik marble mbox md5sum mdadm mdnsresponder-compat menubar midi mikmod milter mime mimencode mmap mmx mmxext mng mnogosearch mod modplug modules mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpg123 mpi mplayer mpm-worker mtp multilib multimedia munin-apache munin-dhcp munin-irc munin-squid munin-surfboard musepack musicbrainz mysqli mythtv na_dd na_icons nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netlink network networking nfs nfsv4 nfsv41 nls nodrm nominatim nptl nsplugin objc offensive ogg oggvorbis on-the-fly-crypt openal openctl opencv openexr opengl openmp openssh openssl opensslcrypt opus oscar osmesa oss otr pam pango parse-clocks passfile passwdqc passwordsave paste64 pcap pci pcmcia pcntl pcre pdf pdfimport perl pgo php pidgin pixbuf player plazes plotutils png pnm policykit pop3d popcnt portage portaudio posix postproc ppds print printsupport priority procmail proj pulseaudio pvr python pyzor qml qt3support qt4 qt5 quicktime rar raw razor rc5 rdesktop readline realmedia realtime recursor redland remix rle rpc rpz rrdcgi rrdtool rss rtc rtf rtmp rtsp run-as-root sasl scanner schroedinger screen scripts scrypt sctp sdk sdl seccomp secure-delete sendmail sendto sensord serial server session sftp sftplogging shape sharedext sharedmem shmvideo shorten shout silc sip sipim skins slp smi smime smp smtp sndfile snmp soap sockets sofia-sip softfax sound spamassassin speex spell spf sqlite sqlite3 srt srtp sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-modules stats stream subtitles subversion svg svgz swat swig sync-plugin-portage syntax-check sysfs syslog sysvipc szip t1lib taglib tagwriting tcl tcltk tcpd template tetex tga themes theora thesaurus threads threadsafe thumbnail thunderbird tidy tiff timidity tk tokenizer tokyocabinet toolame toolbar tools transcode tremor truetype twolame type1 udev udisks ugly unbound unicode unzip upnp upower ups urandom usb utils v4l v4l2 vaapi vala vcd vdpau vdr vhosts video vim vim-syntax visualization vlc vlm vnc vorbis vorbis-psy vpx vxml watchdog wav wavpack web webkit webkit2 webp wfs widescreen wikipedia winbind wma wmf wmp wxwindows x264 x265 xa xanim xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xorg xosd xpm xrandr xrender xscreensaver xsettings xsl xslt xterm xulrunner xv xvfb xvid xvmc xz yaepg yahoo yahoo-geo zeroconf zip zlib zrtp zvbai zvbi" ABI_X86="32 64" 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" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="emu gentoo_platforms_efi-32 gentoo_platforms_efi-64 pc" INPUT_DEVICES="keyboard mouse wacom evdev roccat_savu" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gary E. Miller 2016-04-13 18:40:15 UTC
Created attachment 430342 [details]
environment
Comment 2 Adam Feldman gentoo-dev 2016-04-13 18:42:45 UTC
(In reply to Gary E. Miller from comment #0)
> Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL,
> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS

Can you try reselecting your compiler with gcc-config and then
source /etc/profile ?

Your environment looks a little wonky.  You don't have CC set, which is probably why it fails to make executables.
Comment 3 Mike Gilbert gentoo-dev 2016-04-13 18:45:09 UTC
Roy and Lars were discussing this in #openrc earlier. It seems like a legitimate bug.

http://roy.marples.name/projects/dhcpcd/ci/0a6856a348f7354b?sbs=0
Comment 4 Gary E. Miller 2016-04-13 19:21:34 UTC
(In reply to NP-Hardass from comment #2)
> (In reply to Gary E. Miller from comment #0)
> > Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL,
> > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> > PORTAGE_RSYNC_EXTRA_OPTS
> 
> Can you try reselecting your compiler with gcc-config and then
> source /etc/profile ?

No change.  See below.

> Your environment looks a little wonky.  You don't have CC set, which is
> probably why it fails to make executables

I have no trouble making executables.  I've emerged over a dozen other things today, before, after, and around trying this package.

kong ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-5.3.0 *
kong ~ # gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-5.3.0 ...             [ ok ]
kong ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-5.3.0 *
kong ~ # . /etc/profile
kong ~ # echo $CC

kong ~ # emerge -1  net-misc/dhcpcd
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-misc/dhcpcd-6.10.2::gentoo
[...]
Using compiler .. x86_64-pc-linux-gnu-gcc
x86_64-pc-linux-gnu-gcc does not create executables
Comment 5 Roy Marples 2016-04-14 08:23:28 UTC
The problem is caused by the embedded USE flag being disabled.
This causes dhcpcd-definitions.conf to be placed somewhere in the filesystem instead of being embedded within the dhcpcd binary itself. This file is needed to transcribe every DHCP option into a shell variable for dhcpcd-run-hooks(8).

I don't recall this USE flag being added, but it should be enabled by default due to less moving parts to go wrong.
It's only intended for people to place outside dhcpcd itself so they can maintain it themselves - mainly trimming it because they can change all the options in /etc/dhcpcd.conf anyway.
Comment 6 William Hubbs gentoo-dev 2016-04-15 13:59:29 UTC
It is enabled by default (see IUSE="+embedded"). The only way it gets
disabled is if someone disables it in their configuration.

Roy, do you want me to remove the use flag and force this to be enabled
for everyone?
Comment 7 Brian Evans (RETIRED) gentoo-dev 2016-04-15 18:37:57 UTC
*** Bug 580120 has been marked as a duplicate of this bug. ***
Comment 8 Mike Gilbert gentoo-dev 2016-04-15 18:59:40 UTC
(In reply to Roy Marples from comment #5)
> The problem is caused by the embedded USE flag being disabled.

That's not the root cause. The root cause is broken code in configure, which the referenced patch fixes.
Comment 9 Roy Marples 2016-04-16 08:46:02 UTC
(In reply to Mike Gilbert from comment #8)
> (In reply to Roy Marples from comment #5)
> > The problem is caused by the embedded USE flag being disabled.
> 
> That's not the root cause. The root cause is broken code in configure, which
> the referenced patch fixes.

No need to be flippant, just informing anyone else experiencing this issue how to resolve it without patching.

(In reply to William Hubbs from comment #6)
> Roy, do you want me to remove the use flag and force this to be enabled
> for everyone?

It was asked for, but it is of questionable use.
However, I do dislike ripping out stuff when it can also be easily fixed.
Comment 10 William Hubbs gentoo-dev 2016-04-18 16:58:28 UTC
I did not see the patch on this bug before my last post; it will be
applied.
Comment 11 Mike Gilbert gentoo-dev 2016-04-18 17:00:39 UTC
(In reply to Roy Marples from comment #9)
> No need to be flippant, just informing anyone else experiencing this issue
> how to resolve it without patching.

I was simply making sure the Gentoo maintainer has the facts before he makes a decision on how to resolve this. You made it seem like the USE flag was the cause of the failure, when it was merely a trigger for some broken code.

No disrespect was intended.
Comment 12 William Hubbs gentoo-dev 2016-04-18 17:49:47 UTC
This patch has been applied to dhcpcd-6.10.2; you should be able to
build with USE="-embedded" at this point.

Thanks for the report, and Roy, thanks for the patch.

William