Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385977 - libspectrum-1.0.0 depends on windows.h
Summary: libspectrum-1.0.0 depends on windows.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 07:28 UTC by Paul Osmialowski
Modified: 2012-10-25 21:46 UTC (History)
1 user (show)

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


Attachments
build log (libspectrum.log,36.40 KB, text/plain)
2011-10-13 08:25 UTC, Paul Osmialowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Osmialowski 2011-10-07 07:28:58 UTC
compile time log:

x86_64-pc-linux-gnu-windres ./windres.rc windres.o
mv -f .deps/zxs.Tpo .deps/zxs.Plo
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -I/usr/include -DSRCDIR='"."' -O2 -pipe -fomit-frame-pointer -Wall -MT test_test-edges.o -MD -MP -MF .deps/test_test-edges.Tpo -c -o test_test-edges.o `test -f 'test/edges.c' || echo './'`test/edges.c
./windres.rc:28:21: fatal error: windows.h: No such file or directory
compilation terminated.
x86_64-pc-linux-gnu-windres: preprocessing failed.
Comment 1 Alexander E. Patrakov 2011-10-09 11:47:53 UTC
Which package on your gentoo system provides x86_64-pc-linux-gnu-windres? AFAIK, this program should not exist on normal installs.

Could you please also tell if you use the "crossdev" package and which cross-toolchains have you built with it? With what parameters?
Comment 2 Paul Osmialowski 2011-10-10 07:14:46 UTC
ls -la /usr/bin/x86_64-pc-linux-gnu-windres
lrwxrwxrwx 1 root root 36 09-19 07:47 /usr/bin/x86_64-pc-linux-gnu-windres -> /usr/x86_64-pc-linux-gnu/bin/windres

As it is stated in /var/db/*/CONTENTS, /usr/x86_64-pc-linux-gnu/bin/windres is provided by sys-devel/binutils, probably due to multitarged flag being set:

[ebuild   R    ] sys-devel/binutils-2.21.1-r1  USE="multitarget nls -multislot -static-libs -test -vanilla" 0 kB

So far no other package than libspectrum suffers from that.

The crossdev package isn't installed on this system.
Comment 3 Mike Gilbert gentoo-dev 2011-10-10 16:48:07 UTC
Please provide emerge --info and attach a build log.

The multitarget use flag seems like something that should only be enabled if you have some expertise in toolchain-y stuff.
Comment 4 Paul Osmialowski 2011-10-10 16:51:34 UTC
Here it is:

Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-AMD_Athlon-tm-_II_X2_245_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 10 Oct 2011 06:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"                                                                                                                                                                                                                                                                   
MAKEOPTS="-j3"                                                                                                                                                                                                                                                                 
PKGDIR="/usr/portage/packages"                                                                                                                                                                                                                                                 
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                                                                                         
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                 
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                                                                                      
PORTDIR="/usr/portage"                                                                                                                                                                                                                                                         
PORTDIR_OVERLAY=""                                                                                                                                                                                                                                                             
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                                                                                                                 
USE="16bit-indices 32bit 64bit 7zip R X Xaw3d a52 aac aalib abiword accessibility acl acpi adns adplug ads aesicm akode akonadi alias alisp allegro alsa amd64 amr amrnb amrwb angelscript animgif ao apbs aplaymidi apng applet archive arpack artworkextra asf aspell ass assistant asyncns athena attica attrib audacious audio audiofile auth automount autoreplace autotrace avalon-framework avalon-logkit avantgo background badval bash-completion bazaar bcmath berkdb bidi bittorrent bl blas blender-game blksha1 bluetooth boehm-gc bonjour bonobo bookmarks boost branding bs2b bzip2 cairo calendar caps catalogs cblas cdda cddax cdf cdio cdparanoia cdr cdrtools cg cgraph chardet chdir chicken chm clamd clamdtop cli client clipboard clisp clucene cluster clutter collab common-lisp community compat connectionstatus consolekit contactnotes context contrast contrib corefonts cpusets cracklib cramfs cron crypt cscope css ctype ctypes-python cue cups curl cursors cvs cxx d darcs data dbase dbus dc1394 debugger declarative default-font dell deprecated designer designer-plugin desktopglobe detex devfs-compat devhelp device-mapper devil dht dia digitalradio dirac discard-path discouraged djbfft djvu dmi dnd docbook dot double-precision dri drmaa dselect dssi dts dv dvb dvd dvdnav dvdr dvi dvi2tty dvipdfm eap-tls ebook edit editor eds egl eigen elf elisp emacs embedded emf emoticons-manager emovix enca enchant encode enscript eolconv epiphany escreen esd eselect ethernet excel exceptions exif expat extensions extra extra-cardsets extra-tools extrafilters extramodules extras faac faad facedetect fam fame fat festival ffamber ffmpeg fftw fileinfo filter findbugs finger firefox firefox3 fits flac fltk fluidsynth fontconfig fontforge foomaticdb fortran fping fpx frei0r ftp fts3 fuse gadu gallium games gcdmaster gconf gcrypt gd gdbm gdm gdu gecko gedit geoip geolocation geos ggi gif gimp ginac git gjdoc glade glibc-omitfp glitz gloox glut gmath gme gml gmp gmplayer gnet gnokii gnome gnome-keyring gnomecd gnuplot gnutls google-gadgets gopher gpg gphoto2 gpm gpu grammar graphics graphviz groupwise grp grub gs gsl gsm gstreamer gtk gtkhtml gtkstyle guile gunit gzip-el hal handbook hardcoded-tables hash hdf hdf5 health heterogeneous highlight hires-icons history hlapi hog hotpixels html http humanities hunspell ical icecast icons iconv icu id3 id3tag idn ieee1394 ifp image image-cache imagemagick imlib inherit-graph inifile inkjar inotify intl iodbc ipc iplayer ipod ipv6 irc irrlicht isag it3tag jabber jack jadetex jai java java5 java6 javacomm javamail javascript jbig jit jmf jms joystick jpeg jpeg2k json kate kde kdm kdrive kig-scripting kipi kpathsea ladspa lame lapack largefile lash lasi lastfm lastfmradio latex latex3 lcdfilter lcms ldap ldap-sasl ldb leim less levels libass libburn libcaca libclamav libdsk libextractor libffi libgda libmms libmpeg2 libnotify libs libsamplerate libssh2 libsysfs libtiger libv4l libv4l2 libvisual libwww libyaml lightning linuxkeys listen-queue live llvm lm_sensors log4j logitech-mouse logrotate lqr lua luatex lvm1 lyx lzo m17n-lib mad mail maps math mathml matroska mbox mcve md5sum memmap mercurial metis metric mew mhash midi mikmod mime mixer mjpeg mmap mmx mng modplug modules mono moonlight motif moviepack moviesounds mozdevelop mozdom mozilla mozsha1 mp2 mp3 mp3tunes mp4 mpeg mpg123 mpi mplayer mpx msn mta mtp mudflap mule multilib multimedia multitarget musepack music musicbrainz mvl mzscheme nautilus ncurses neXt nelma net netapi netbeans netcdf netlink netpbm network networking new-clx nextaw nfs nfsv3 nfsv4 nis njb nls nntp no-old-linux nodrm nogyroscopic nokia normalize nowlistening npp nptl nptlonly nsplugin nspluginwrapper nss ntfs ntlm ntlm_unsupported_patch ntp numpy nut nuv objc objc++ objc-gc ocaml ocamlopt octave odbc ode offensive ofx ogdi ogg ogg123 ogm okular omega opal openal opencore-amr openexr opengl openldap openmedia openmp openvg openxml orc oscar osdmenu osgapps otp otr ots overlays pager pam pango pari password pasteafter pbs pcap pcntl pcre pcsc-lite pda pdf pdfannotextractor pdo perl perl-geoipupdate pg-intdatetime phar phonon php physfs pic pike pipe pixmaps pkinit plasma player playlist plotutils plugins pnat png pnm policykit poppler-data portaudio posix postgres postproc postscript povray powerkadu ppds ppp pppd preview-latex private-headers profile4 profiler proj projectm pstricks pth publishers pulseaudio pvr python qalculate qhull qimageblitz qpak qscintilla qt-faststart qt-static qt3 qt3support qt4 quicktime quotes quvi qwt radio raptor rar raw rcs readline recursion-limit redeyes redland reflection regex remote remoteosd resid rle romio rpm rrdtool rss rtc rtf rtmp rtsp ruby samba sametime sasl scale0tilt scanner schroedinger science script sctp sdk sdl sdl-image sdl-sound sdlgfx semantic-desktop sensord serial servletapi session sge shaders shared-glapi sharedext sharedmem shine shm shout sid sigsegv simplexml skins skype slang smbclient smbkrb5passwd smbtav2 smp sms sndfile snmp soap sockets solver sound soundex sounds soundtouch soup sourceview sox sparse speech speex spell spl splash sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification statistics stats stk stream subject-rewrite subtitles subversion suhosin supernodal svg svm swat swig sysfs syslog sysvipc szip t1lib taglib tcl tcpd tdb tdbtest teamarena telepathy teletext test-framework tex4ht texteffect tga themedesigner themes theora thesaurus thin-splines threads threadsafe thumbnail thumbnails tidy tiff tilepath timezone timidity tk tokenizer toolame toolbar toolkit-scroll-bars tools totem track-src-odirect traits translator tremor truetype tta twisted twolame type3 udev udis86 umfpack unicode unlock-notify usb utempter utils uudeview uuid v4l v4l2 vaapi vala valgrind vamp vapigen vcd vcdinfo vcdx vdpau vdr verse vhook video vim-pager vim-with-x virtuoso visualization vlc vlm vmd vnc voice vorbis vpx vst wad wav wavpack wddx weather webdav webdav-neon webdav-serf webkit webm webp widescreen winbind wininst winpopup wma wma-fixed wmf wordperfect wxwidgets wxwindows x264 xanim xbase xcb xchatdccserver xcomposite xemacs xembed xerces-c xetex xext xface xforms xforward xfs xft xgetdefault xindy xine xinerama xinetd xml xmldoclet xmlpatterns xmlreader xmlrpc xmlwriter xmp xmpp xorg xorgmodule xosd xpdf-headers xpm xrandr xrender xscreensaver xsl xslt xterm xulrunner xv xvid xvmc yahoo youtube yp yv12 zip zlib zvbi" ALSA_CARDS="hdsp hdspm" 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="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 stage tables krita karbon braindump" CAMERAS="canon spca50x template 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="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy v4l intel vesa fglrx radeon radeonhd" 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, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Mike Gilbert gentoo-dev 2011-10-10 23:59:01 UTC
Build log?
Comment 6 Paul Osmialowski 2011-10-13 08:25:56 UTC
Created attachment 289735 [details]
build log

I'm sorry for late reply, I'm having busy week now
Comment 7 Jesus Rivero (RETIRED) gentoo-dev 2012-10-25 21:46:58 UTC
Im closing this as invalid.

Paul, why are you even using windres? are you cross-compiling for Windows? This is a corner case. 

From libspectrum, this is expected behavior. Also, from binutils documentation:

"windres may be used to manipulate Windows resources.

    Warning: windres is not always built as part of the binary utilities, since it is only useful for Windows targets."

The error actually happens trying to compile a Windows Resource File, which would never happen if not using windres.

So, you should expect the code to actually use windows.h

Just re-open if Im missing something here.