Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583546 - dev-libs/sway-0.6 - .../work/sway-0.6/sway/main.c:191:7: error: too few arguments to function ‘wlc_init’
Summary: dev-libs/sway-0.6 - .../work/sway-0.6/sway/main.c:191:7: error: too few argum...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jasen Borisov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-20 06:51 UTC by Marek Paśnikowski
Modified: 2016-05-21 02:10 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,99.07 KB, text/plain)
2016-05-20 06:51 UTC, Marek Paśnikowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Paśnikowski 2016-05-20 06:51:46 UTC
Created attachment 434758 [details]
build.log

/var/tmp/portage/dev-libs/sway-0.6/work/sway-0.6/sway/main.c: In function ‘main’:
/var/tmp/portage/dev-libs/sway-0.6/work/sway-0.6/sway/main.c:191:7: error: too few arguments to function ‘wlc_init’
  if (!wlc_init()) {
       ^

Thanks to that I can not install it. The full log is attached as well.

# emerge -pv gcc

These are the packages that would be merged, in order:

Calculating dependencies  ...... done!
[ebuild   R    ] sys-devel/gcc-5.3.0:5.3.0::gentoo  USE="cxx fortran (multilib) nls nptl openmp sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -gcj -go -graphite (-hardened) (-jit) (-libssp) -mpx -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 KiB

# emerge --info
Portage 2.3.0_rc1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.23-r2, 4.5.2-gentoo-0 x86_64)
=================================================================
System uname: Linux-4.5.2-gentoo-0-x86_64-AMD_E-300_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
Timestamp of repository gentoo: Thu, 19 May 2016 19:03:51 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2::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.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.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=btver1 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=btver1 -fstack-protector-strong "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/fonts/fonts.conf /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/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=btver1 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mprfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=btver1 -fstack-protector-strong "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --keep-going=n --nospinner --quiet-build=y --with-bdeps=y"
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://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j 2"
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="X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cjk cli cracklib crypt custom-cflags cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fontconfig fortran gdbm gif glamor gstreamer gtk iconv icu imap ipv6 jit jpeg kipi kolab lcms libass libnotify mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg openal opengl openmp pam pango pcre pdf phonon plasma png policykit qml qt3support qt4 qt5 readline s3tc sasl sdl seccomp session sound sqlite sse sse2 ssl svg systemd tcpd threads truetype udev udisks unicode upower usb v4l vaapi vorbis wayland widgets wifi x264 xa xattr xcb xcomposite xinerama xml xv xvid zeroconf zlib" 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="alias authn_core authz_core authz_host dir log_config mime socache_shmcb unixd" CALLIGRA_FEATURES="words" CAMERAS="fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a 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="pc" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="r600 radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jasen Borisov 2016-05-20 08:37:31 UTC
I just tried building sway-0.6 with GCC 5.3.0 on my system, and I cannot reproduce this error. I tried both versions of wlc available in portage (0.0.2 and the live one), and both of them work.

I saw you use systemd (you have the systemd USE flag enabled). That is the only difference in USE flag (on the sway package, at least) that I noticed between you and me (I don't use systemd), so I suspected that might be the problem. However, I just tried temporarily installing systemd and enabling the systemd USE flag for testing, and it still built just fine (no errors), so I confirmed it is indeed not the problem. Hmm, strange.

I also tried building with your CFLAGS. Still built fine.

I have no idea what the issue you are experiencing might be. This is strange.

I will try to investigate more, but I just cannot reproduce your build failure.
Comment 2 Marek Paśnikowski 2016-05-20 09:01:20 UTC
What about the "vtv" and "sanitize" flags in GCC? I have no idea what those two do exactly, but sounds to me like the "vtv" might have something to do here. I had enabled it thinking of security. I have just the slightest idea of programming, so the message "too few arguments" goes in line with requirement of certain quality level.
The weird thing is that throughout my use of the current portage settings I never had this kind of error. I had seen missing headers sometimes only. Everything else in my system compiles fine, whatever I request. I also have zero runtime crashes for over a year now, so I am confident my flags are sane. As my computer is a slow laptop, recompilation of GCC (more than ten hours) just for one file is something I would rather avoid.
Comment 3 Jasen Borisov 2016-05-20 10:41:46 UTC
I am a programmer, and yes, I agree that this error situation seems strange. You and I are compiling the exact same source code. The compiler error you are getting seems to indicate a mistake in the code (something that shouldn't be affected by CFLAGS, for instance, but I still gave it a try just in case), but yet it compiles for me.


I have a fast CPU; it takes just a few minutes to rebuild GCC. I will play around with compiling gcc with vtv and other options, and see how that goes. I am a little busy over the next few hours, though, so I'll do that later today when I have time.
Comment 4 Felix Janda 2016-05-20 11:40:01 UTC
The next lines in the build log are more interesting:

In file included from /var/tmp/portage/dev-libs/sway-0.6/work/sway-0.6/sway/main.c:4:0:
/usr/local/include/wlc/wlc.h:234:21: note: declared here

Notice the "/usr/local".
Comment 5 Jasen Borisov 2016-05-20 11:45:42 UTC
(In reply to Felix Janda from comment #4)
> The next lines in the build log are more interesting:
> 
> In file included from
> /var/tmp/portage/dev-libs/sway-0.6/work/sway-0.6/sway/main.c:4:0:
> /usr/local/include/wlc/wlc.h:234:21: note: declared here
> 
> Notice the "/usr/local".

I must be blind; that explains a lot ;-). Thank you for pointing it out.

To the original poster:

Please use the wlc package provided in gentoo. It provides the correct headers and version of wlc to build. It is the only supported way.

There is no support anyone can give you if you have your own custom headers in /usr/local.
Comment 6 Marek Paśnikowski 2016-05-20 20:16:50 UTC
Oi. I definitely understand how a header file from a test a few months back could break the compilation. Sorry about the false alert.
However - is Portage standardized to use the '/usr/local' headers before the package's? Maybe it is a good idea to open a bug for Portage in order to set the headers' path to safeguard against external sources?
Comment 7 Sam Jorna (wraeth) gentoo-dev 2016-05-21 02:10:42 UTC
(In reply to Marek Paśnikowski from comment #6)
> Oi. I definitely understand how a header file from a test a few months back
> could break the compilation. Sorry about the false alert.
> However - is Portage standardized to use the '/usr/local' headers before the
> package's? Maybe it is a good idea to open a bug for Portage in order to set
> the headers' path to safeguard against external sources?

Gentoo is about customisation and user choice, so locking the package manager down to prevent that would only be done with major problems. Regardless, generally the include paths are determined by the build system and preconceptions of upstreams - they expect you'll manually build and install software to /usr/local rather than using a package manager.