Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge VirtualBox 5: error: missing filename after '-o' ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sun Feb 21, 2016 5:10 pm    Post subject: Emerge VirtualBox 5: error: missing filename after '-o' ? Reply with quote

I'm trying to emerge the new Virtualbox:
Code:

emerge =app-emulation/virtualbox-5.0.14 =app-emulation/virtualbox-modules-5.0.14 =app-emulation/virtualbox-guest-additions-5.0.14

and get this error output:
Code:

x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-long-long -Wno-long-long -Wno-delete-non-virtual-dtor -Wno-variadic-macros -O2 -fno-omit-frame-pointer -fno-strict-aliasing -m64 -I/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/src/VBox/Runtime/include -I/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/src/libs/liblzf-3.4 -I/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/src/libs/kStuff/kStuff/include -I/usr/include/libxml2 -I/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/include -I/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -D_REENTRANT -DIN_RING3 -DLOG_DISABLED -DIN_RT_R3 -DIN_RT_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DIPRT_WITH_OPENSSL -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -DIPRT_WITHOUT_LDR_VERIFY -DRT_NO_GIP -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapoffset.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapoffset.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapoffset.o /var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/src/VBox/Runtime/common/alloc/heapoffset.cpp
x86_64-pc-linux-gnu-g++: error: missing filename after '-o'
x86_64-pc-linux-gnu-g++: fatal error: no input files
compilation terminated.

This is chrooted into a new system disk that I'm preparing.

I've tried using MAKEOPTS=-j1, didn't help, but I think there might be some sort of command line length limitation that I'm running into (never heard about that before), as the command like is long, and I can see where the file after the -o is specified.

Any ideas?
Back to top
View user's profile Send private message
HerbMillerJW
n00b
n00b


Joined: 16 Feb 2012
Posts: 37

PostPosted: Thu Mar 17, 2016 3:07 am    Post subject: Reply with quote

Which version of gcc are you using? VirtualBox is one of those packages that is super picky about gcc version. I keep multiple versions because of it.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Thu Mar 17, 2016 3:21 am    Post subject: Reply with quote

Hmm Interesting question.

Code:

#> gcc-config  -l
 [1] x86_64-pc-linux-gnu-4.6.4
 [2] x86_64-pc-linux-gnu-4.7.4
 [3] x86_64-pc-linux-gnu-4.8.5 *
 [4] x86_64-pc-linux-gnu-4.9.3


Thing of it is though, the make system is producing that fully qualified file path (from code posted earlier)
Code:

. . . .  -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-5.0.14/work/VirtualBox-5.0.14/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapoffset.o /var . . . . .


Might it be that the command line buffer ran out?
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Thu Mar 17, 2016 3:25 am    Post subject: Reply with quote

Quote:
I'm trying to emerge the new Virtualbox:


I am curious about this as you are trying to get the new version of virtualbox, but you are only trying to grab 5.0.14 when 5.0.16-r1 is the latest. If you are trying to get the newest version, you may want to either sync (to ensure you have an up to date tree) and check your package.mask (you are probably specifying a that exact version, which you can run into issues later on that, when you should be either leaving the version part off, or change it to >= instead of =)
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Thu Mar 17, 2016 4:14 am    Post subject: Reply with quote

Yeah, I emerge --sync, and now I've got the 5.0.16-r1 showing.

Getting late, will have to pick this up tomorrow or in the next few days. I'll post back up if either building 5.0.16-r1 or switching gcc versions resolve this issue.

Thanks for the hints.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sat Oct 15, 2016 1:48 pm    Post subject: Reply with quote

OK, yeah, been a few months, but finally getting back to this project.

This is on a completely from scratch machine that I'm building. I've taken great pains to make sure that it's completely up to date, and that an emerge update world runs cleanly to completion.

Getting this error while compiling the dev-util/kbuild-0.1.9998_pre20131130-r1::gentoo package

The emerge fails on this line:
Code:

kBuild: Compiling kmk_sed - /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20131130-r1/work/kBuild-0.1.9998-pre20131130/src/sed/lib/regex.c
gcc: error: missing filename after '-o'
gcc: fatal error: no input files
compilation terminated.


Code:

emerge --info '=dev-util/kbuild-0.1.9998_pre20131130-r1::gentoo

Portage 2.3.0 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.4.21-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.21-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     3988708 total,   1975312 free
KiB Swap:    1048572 total,   1037108 free
Timestamp of repository gentoo: Tue, 11 Oct 2016 00:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.3.5-r3::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://lug.mtu.edu/gentoo/ http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.osuosl.org/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS=" -j34 -l14"
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="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri ffmpeg fortran fpm gd gdbm gtk2 iconv ipv6 java latex lm_sensors mmx mmxext modules multilib ncurses nls nptl openmp pam pcre qt4 readline seccomp sensord server session sse sse2 ssl tcpd threads unicode xattr zlib" ABI_X86="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="mmx mmxext sse sse2 sse3 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" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Anyone have any ideas on this?
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sat Oct 15, 2016 11:09 pm    Post subject: Reply with quote

Not exactly sure how I juggled things around to get to this point, but the virtualbox emerge suffers from the same problem as the kbuild emerge.

Code:

x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long -Wno-long-long -Wno-delete-non-virtual-dtor -Wno-variadic-macros -O2 -fno-omit-frame-pointer -fno-strict-aliasing -m64 -I/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/src/VBox/Runtime/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/src/libs/liblzf-3.4 -I/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/src/libs/kStuff/kStuff/include -I/usr/include/libxml2 -I/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -D_REENTRANT -DIN_RING3 -DLOG_DISABLED -DIN_RT_R3 -DIN_RT_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DIPRT_WITH_OPENSSL -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -DIPRT_WITHOUT_LDR_VERIFY -DRT_NO_GIP -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapsimple.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapsimple.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/out/linux.amd64/release/obj/RuntimeBldProg/common/alloc/heapsimple.o /var/tmp/portage/app-emulation/virtualbox-4.3.38/work/VirtualBox-4.3.38/src/VBox/Runtime/common/alloc/heapsimple.cpp
x86_64-pc-linux-gnu-g++: error: missing filename after '-o'
x86_64-pc-linux-gnu-g++: fatal error: no input files
compilation terminated.


I dunno, but it seems if I use the raw tarballs and config, I might be able to get this to install OK.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sat Oct 15, 2016 11:27 pm    Post subject: Reply with quote

I've got rid of this error by disabling distcc.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sun Oct 16, 2016 1:46 pm    Post subject: Reply with quote

Buffoon wrote:
I've got rid of this error by disabling distcc.


OK.

Commented out the distccd and ccache features in the make.conf, and on the emerge command line eliminated the path directories to both.

Interestingly, when building kbuild-0.1.9998_pre20131130-r1 an additional error message came out
Config.kmk:78: Neither SvnInfo nor .svn/* was found in the root. Will have to cook up something too keep the build happy.
in addition to:
gcc: error: missing filename after '-o' as posted before.

Hmm.

Gonna try to get the VirtualBox one version back to build without distcc or ccache. Let you know.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sun Oct 16, 2016 3:33 pm    Post subject: Reply with quote

OK. By uninstalling distcc, and emerging again, I'm seeing kbuild and virtualbox-5.1.6 building nicely.

I guess maybe distcc needs to be disabled to build these 2 packages or something?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sun Oct 16, 2016 3:48 pm    Post subject: Reply with quote

Code:
FEATURES=-distcc emerge -av virtualbox

No need to uninstall anything.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 240

PostPosted: Sun Oct 16, 2016 3:51 pm    Post subject: Reply with quote

Buffoon wrote:
Code:
FEATURES=-distcc emerge -av virtualbox

No need to uninstall anything.


Yeah, did that, but since I had distcc and ccache in my path it still got pulled in.

Got the VBox installed now, as we've all good, and thanks for your help.

I owe you one. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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