Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112713 - sys-boot/grub legacy + gcc-4 + netboot-flag does not compile
Summary: sys-boot/grub legacy + gcc-4 + netboot-flag does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 09:26 UTC by Daniel Webert
Modified: 2006-03-21 19:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Webert 2005-11-16 09:26:14 UTC
sys-boot/grub-0.96-r2 + gcc-4.0.2-r1 + netboot-flag does not compile

* same problem w/ grub-0.96-r3 and 0.97-r2
* w/o netboot all grub's compile fine ...

<snip>
main.c:1057: warning: pointer targets in passing argument 1 of 
Comment 1 Daniel Webert 2005-11-16 09:26:14 UTC
sys-boot/grub-0.96-r2 + gcc-4.0.2-r1 + netboot-flag does not compile

* same problem w/ grub-0.96-r3 and 0.97-r2
* w/o netboot all grub's compile fine ...

<snip>
main.c:1057: warning: pointer targets in passing argument 1 of grub_memcmp
differ in signedness
main.c:1057: warning: pointer targets in passing argument 2 of grub_memcmp
differ in signedness
make[2]: *** [libdrivers_a-main.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/grub-0.96-r2/work/grub-0.96/netboot'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/grub-0.96-r2/work/grub-0.96'
make: *** [all] Error 2

!!! ERROR: sys-boot/grub-0.96-r2 failed.
!!! Function src_compile, Line 90, Exitcode 2
!!! making netboot stuff
</snip>

<snip>
dapengoo src # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r0,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-mtune=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.coprodeli.org/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="es en de"
PKGDIR="/usr/local/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirrors.coprodeli.org/gentoo-portage"
USE="x86 X acl alsa apache2 apm arts audiofile avi bash-completion berkdb
bitmap-fonts bluetooth bzip2 crypt cups curl dv dvd dvdr eds emboss encode exif
expat fam foomaticdb fortran gdbm gif glut gmp gphoto2 gpm gtk gtk2 hal idn
ieee1394 imlib ipv6 irda ithreads java jpeg kde lcms ldap libg++ libwww
lm_sensors mng motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss
pam pcmcia pcre pda pdflib perl png python qt quicktime readline samba scanner
sdl slang snmp spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev
unicode usb userlocales vorbis wifi xinerama xml2 xprint xv zlib linguas_es
linguas_en linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
</snip>
Comment 2 SpanKY gentoo-dev 2005-11-16 21:21:26 UTC
try 0.97-r2
Comment 3 SpanKY gentoo-dev 2005-11-16 21:21:46 UTC
err, nm, read your report ;P
Comment 4 Kerie 2006-03-20 05:46:02 UTC
(In reply to comment #0)
same problem here on AMD64 witb grub-0.97-r2

<snip>
main.c:57: error: static declaration of 'bootp_data' follows non-static declaration
./etherboot.h:534: error: previous declaration of 'bootp_data' was here
main.c:59: error: static declaration of 'end_of_rfc1533' follows non-static declaration
./etherboot.h:536: error: previous declaration of 'end_of_rfc1533' was here
main.c: In function 'udp_transmit':
main.c:231: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c:276: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c:290: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c: In function 'tftp':
main.c:462: warning: pointer targets in passing argument 1 of 'fnc' differ in signedness
main.c: In function 'rarp':
main.c:509: warning: pointer targets in passing argument 1 of 'eth_transmit' differ in signedness
main.c: In function 'udpchksum':
main.c:729: warning: dereferencing type-punned pointer will break strict-aliasing rules
main.c: In function 'await_reply':
main.c:893: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness
main.c:895: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness
main.c:925: warning: pointer targets in passing argument 1 of 'decode_rfc1533' differ in signedness
main.c: In function 'decode_rfc1533':
main.c:973: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness
main.c:973: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness
main.c:984: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness
main.c:984: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness
main.c:1057: warning: pointer targets in passing argument 1 of 'grub_memcmp' differ in signedness
main.c:1057: warning: pointer targets in passing argument 2 of 'grub_memcmp' differ in signedness
misc.c: In function 'etherboot_sprintf':
misc.c:214: warning: dereferencing type-punned pointer will break strict-aliasing rules
misc.c: In function 'etherboot_printf':
misc.c:220: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [libdrivers_a-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/grub-0.97-r2/work/grub-0.97/netboot'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/grub-0.97-r2/work/grub-0.97'
make: *** [all] Error 2

!!! ERROR: sys-boot/grub-0.97-r2 failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile

!!! making netboot stuff
!!! If you need support, post the topmost build error, and the call stack if relevant.


Portage 2.1_pre6-r4 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/ebuildexchange /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 16bit 64bit 7zip X a52 aac aalib acl acpi adns aim alsa apache apache2 applet asf async atk automount bash-completion bdf berkdb bidi bigger-fonts bl bonjour bootsplash boundschecking browserplugin bzip2 cairo calendar cdda cddb cdinstall cdio cdparanoia cdr cdrom chm chroot clamav clamd cpudetection cracklib crypt css cups daap dbus dga dio dlloader dri dvd dvdr dvdread emul-linux-x86 encode escreen examples exif extensions fame fat fbcon fbsplash ffmpeg firefox flac foomaticdb ftp gecko-sdk gif gimp gimpprint glut glx gnome gpm gs gstreamer gtk gtk2 hal id3 idn ieee1394 imagemagick imap imlib imlib2 inifile innodb irc jack java jp2 jpeg jpeg2k kde kerberos lame latex lesstif libclamav libsamplerate lm_sensors logrotate mad maildir math memlimit mikmod mime mjpeg mmap mng motif mozcalendar mozdevelop mozilla moznocompose moznoirc mozsvg mp3 mp4live mpeg mpeg2 mpi mplayer msn msnextras musicbrainz mysql ncurses netboot nis no-old-linux nocardbus nocd nodrm nowin nptl nptlonly nsplugin ntfs ntlm nvidia offensive ogg openal opengl osc pam pascal pcntl pdf pdflib perl php player png posix postfix povray ppds python qt quicktime readline real reiserfs rrdtool samba sasl sblive screen sdl sensord session sftp sharedmem sndfile sockets socks5 soundtouch sox spell spl sql sqlite ssl subtitles subversion svg swat sysvipc tagwriting tcltk tcpd tetex threads tidy tiff tokenizer tos transcode truetype truetype-fonts type1 type1-fonts unicode urandom usb v4l v4l2 vcd verbose vhosts vorbis wma wmf wxwindows xanim xine xinerama xml xml2 xmms xosd xpm xprint xsl xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 5 SpanKY gentoo-dev 2006-03-21 19:40:07 UTC
fixed in 0.97-r2