Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181174 - sys-boot/silo-1.4.13 build failed
Summary: sys-boot/silo-1.4.13 build failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-06-07 08:21 UTC by Andrey Kolbasenko
Modified: 2007-07-24 15:18 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 Andrey Kolbasenko 2007-06-07 08:21:04 UTC
>>> Emerging (1 of 1) sys-boot/silo-1.4.13 to /
sparc-unknown-linux-gnu-gcc -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -c -Wa,-Av9 -DIMGVERSION='"SILO0.99"' crt0.S
sparc-unknown-linux-gnu-gcc -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -DVERSION='"1.4.13"' -c decomp.c
sparc-unknown-linux-gnu-gcc -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -c -o malloc.o ../common/malloc.c
sparc-unknown-linux-gnu-gcc -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -c bmark.S -o bmark.o
sparc-unknown-linux-gnu-gcc -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -c main.c -o main.o
main.c:28:22: asm/page.h: No such file or directory
main.c:29:23: linux/elf.h: No such file or directory
main.c: In function `parse_executable':
main.c:881: error: syntax error before "Elf32_Ehdr"
main.c:881: warning: no semicolon at end of struct or union
main.c:882: error: `Elf64_Ehdr' undeclared (first use in this function)
main.c:882: error: (Each undeclared identifier is reported only once
main.c:882: error: for each function it appears in.)
main.c:882: error: `f' undeclared (first use in this function)
main.c:877: warning: unused variable `isfile'
main.c: At top level:
main.c:883: warning: type defaults to `int' in declaration of `hp'
main.c:883: warning: data definition has no type or storage class
main.c:886: error: `base' undeclared here (not in a function)
...


make[1]: *** [main.o] Error 1
make[1]: *** Ожидание завершения заданий...
make[1]: Leaving directory `/var/tmp/portage/sys-boot/silo-1.4.13/work/silo-1.4.13/second'
make: *** [all] Error 1

!!! ERROR: sys-boot/silo-1.4.13 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  silo-1.4.13.ebuild, line 40:   Called die


#emerge --info
Portage 2.1.2.9 (default-linux/sparc/sparc64/2006.1, gcc-3.4.6, glibc-2.5-r3, 2.6.21-gentoo-r2 sparc64)
=================================================================
System uname: 2.6.21-gentoo-r2 sparc64 sun4u
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 07 Jun 2007 07:30:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bitmap-fonts bzip2 cgi cli cracklib crypt ctype dba dri eds emboss encode fbcon foomaticdb fortran gcc64 gd gif gstreamer iconv isdnlog jpeg libwww mad midi mikmod mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ogg openmp oss pam pcre pear perl php5 png posix pppd python readline reflection session sparc spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xsl zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="sunffb"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



Reproducible: Always




I got this error on 2 devices: SunFire v120 & UltraSparc10
Comment 1 Michael Crawford (ali3nx) 2007-07-03 13:20:46 UTC
Fresh install... silo will not build.
quad e420r... urgent fix needed

reported please upgrade to blocker or advise on a fix asap. tyvm

livecd / # emerge --info
Portage 2.1.2.9 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r4 sparc64)
=================================================================
System uname: 2.6.20-gentoo-r4 sparc64 sun4u
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 03 Jul 2007 12:00:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 authdaemond berkdb bitmap-fonts bzip2 cairo chroot cli cracklib crypt dri erandom extensions fam fortran gdbm gnutls gpm iconv idn ipv6 isdnlog ithreads ldap ldap-sasl libg++ midi mpm-worker mudflap mysql ncurses nls nptl nptlonly offensive openmp pam pcre perl pic posix postgres ppds pppd python readline reflection ruby sasl session sparc spl ssl suhosin sysvipc tcl tcpd threads tiff truetype-fonts type1-fonts unicode urandom xattr xinetd xml zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx v4l voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-03 13:23:00 UTC
Mike: silo is only affected by ~sparc linux-headers and from your --info you seem to be using stable so you shouldn't be affected (and it's probably some other problem).
Comment 3 Michael Crawford (ali3nx) 2007-07-03 13:24:30 UTC
erm.... okay silo requires kernel sources or headers to build... suggest adding the virtual or a dep for gentoo-sources to the ebuild requirement for sys-boot/silo to satisfy asm/page.h and linux/elf.h
Comment 4 Michael Crawford (ali3nx) 2007-07-03 13:29:42 UTC
actually... amazing... i honestly havent worked on this much in the past week. machines been on a livecd hehe.. adding kernel sources did not work either. i just noticed i was using >=sys-kernel/linux-headers-2.6.20 which if i recall correctly does not have asm/page.h and linux/elf.h in the previously expected locations... i'll downgrade and retest. 

>>> sys-kernel/gentoo-sources-2.6.21-r3 merged

make: *** [all] Error 1

!!! ERROR: sys-boot/silo-1.4.13 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  silo-1.4.13.ebuild, line 40:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-boot/silo-1.4.13/temp/build.log'.

i
Comment 5 Michael Crawford (ali3nx) 2007-07-03 13:33:41 UTC
ok... found the problem for sure... expect silo compile to break with 2.6.21 linux headers. compiled file with 2.6.19 headers. good luck with a fix :)
Comment 6 Andrey Kolbasenko 2007-07-04 04:18:44 UTC
(In reply to comment #5)
> ok... found the problem for sure... expect silo compile to break with 2.6.21
> linux headers. compiled file with 2.6.19 headers. good luck with a fix :)
> 

And another problem with SILO. It's not work with bash >=3.2
silo
silo -f
.. does not install silo boot loader into mbr. With 3.1_p17 all worked.

http://forums.gentoo.org/viewtopic-t-519998.html
Comment 7 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-24 15:18:55 UTC
Fixed in silo-1.4.13-r1.