Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111861 - udev-073 failed on SPARC
Summary: udev-073 failed on SPARC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 04:34 UTC by Charlie Gehlin
Modified: 2005-12-07 13:13 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 Charlie Gehlin 2005-11-08 04:34:47 UTC
Dunno if this is SPARC-specific, anyway here goes.....

Reproducible: Always
Steps to Reproduce:
1. emerge -uDpv --newuse world
2. [ebuild     U ] sys-fs/udev-073 [071] (-selinux) -static 0 kB
3. emerge -uv udev

Actual Results:  
Compiling udevd.c.
  sparc-unknown-linux-gnu-gcc -c -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BI
  TS=64 -Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts -Wmissing
  -declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -W
  missing-prototypes -Os -I/var/tmp/portage/udev-073/work/udev-073/libsysfs/sys
  fs -I/var/tmp/portage/udev-073/work/udev-073/libsysfs -DUSE_LOG udevd.c -o ud
  evd.o
  In file included from udevd.c:42:
  /usr/include/linux/netlink.h:22: error: syntax error before "__u32"
  /usr/include/linux/netlink.h:28: error: syntax error before "__u32"
  /usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
  /usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
  /usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
  /usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
  In file included from udevd.c:49:
  udev_utils.h:62: warning: declaration of `log' shadows a global declaration
  <built-in>:0: warning: shadowed declaration is here
  udevd.c: In function `udev_event_process':
  udevd.c:134: warning: cast increases required alignment of target type
  udevd.c:134: warning: cast increases required alignment of target type
  udevd.c: In function `running_with_devpath':
  udevd.c:315: warning: cast increases required alignment of target type
  udevd.c:315: warning: cast increases required alignment of target type
  udevd.c: In function `exec_queue_manager':
  udevd.c:357: warning: cast increases required alignment of target type
  udevd.c:357: warning: cast increases required alignment of target type
  udevd.c:357: warning: cast increases required alignment of target type
  udevd.c: In function `get_udevd_msg':
  udevd.c:462: warning: cast increases required alignment of target type
  udevd.c:500: warning: cast increases required alignment of target type
  udevd.c:507: warning: cast increases required alignment of target type
  udevd.c: In function `udev_done':
  udevd.c:598: warning: cast increases required alignment of target type
  udevd.c:598: warning: cast increases required alignment of target type
  udevd.c: In function `init_uevent_netlink_sock':
  udevd.c:666: error: storage size of `snl' isn't known
  udevd.c:670: error: invalid application of `sizeof' to an incomplete type
  udevd.c:684: error: invalid application of `sizeof' to an incomplete type
  udevd.c:666: warning: unused variable `snl'
make: *** [udevd.o] Error 1

Expected Results:  
udev to compile clean :)

emerge info
Portage 2.0.53_rc7 (default-linux/sparc/sparc64/2005.0, gcc-3.3.6, glibc-
2.3.3.20040420-r2, 2.4.31-sparc-r1 sparc64)
=================================================================
System uname: 2.4.31-sparc-r1 sparc64 sun4u
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.13
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
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mtune=v9 -O2 -pipe -fomit-frame-pointer"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=v9 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache cvs distcc distlocks keeptemp noauto 
noclean sandbox sfperms strict usepkg userpriv usersandbox"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo 
http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo 
ftp://ftp.sunet.se/pub/Linux/distributions/gentoo http://distfiles.gentoo.org 
http://gentoo.gehlin.com/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="sparc X X509 aac acl apache2 arts avi bash-completion bcmath berkdb bind-
mysql bitmap-fonts bmp bzip2 bzlib chroot crypt cups curl dba dio dlloader dlz 
dmx dpms encode esd ethereal expat extensions fbcon font-server foomaticdb 
fortran fpx ftp gcc64 gcj gd gdbm gif gmp gnome gnutls gphoto2 graphviz 
gstreamer gtk gtk2 hpn imagemagick imap imlib insecure-drivers ipv6 ithreads 
java javascript jbig jpeg jpeg2k kde kerberos krb4 lcms ldap libcaca libwww lz 
lzo lzw-tiff mad mailwrapper md5sum mhash mikmod mmap mng motif mpeg mysql nas 
ncurses network nls nocardbus objc oggvorbis opengl oss pam pcre pdflib perl 
php png python qt readline samba sasl sdl session sftplogging snmp ssl tcltk 
tcpd tga threads tiff truetype truetype-fonts type1-fonts udev unicode v4l v4l2 
vdesktop vhosts vim-with-x wmf xml2 xmms xprint xv zlib zvbi userland_GNU 
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-11-08 14:19:27 UTC
What kernel version do you have installed?  It looks like you have 2.4 os-headers
which might cause this.

Does other versions of udev build properly (like 070, 071, etc.)?
Comment 2 Charlie Gehlin 2005-11-09 02:00:27 UTC
(In reply to comment #1)
> What kernel version do you have installed?  It looks like you have 2.4 os-headers
> which might cause this.
> 
> Does other versions of udev build properly (like 070, 071, etc.)?

All that info is available above ;)
Anyway, here goes.

# emerge -s sparc-sources
*  sys-kernel/sparc-sources
      Latest version available: 2.4.31-r2
      Latest version installed: 2.4.31-r2
      Size of downloaded files: 30,577 kB
      Homepage:    http://www.kernel.org/ http://www.gentoo.org
      Description: Full sources for the Gentoo Sparc Linux kernel
      License:     GPL-2

uname -a
Linux gentoo 2.4.31-sparc-r1 #2 SMP Fri Sep 16 13:05:31 CEST 2005 sparc64 sun4u
TI UltraSparc II  (BlackBird) GNU/Linux

emerge -s linux-headers
*  sys-kernel/linux-headers
      Latest version available: 2.4.26-r1
      Latest version installed: 2.4.26-r1
      Size of downloaded files: 30,051 kB
      Homepage:    http://www.kernel.org/ http://www.gentoo.org/
      Description: Linux system headers
      License:     GPL-2


emerge -s udev
*  sys-fs/udev
      Latest version available: 073
      Latest version installed: 071
      Size of downloaded files: 423 kB
      Homepage:    http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
      Description: Linux dynamic and persistent device naming support (aka
userspace devfs)
      License:     GPL-2

(So yes, 071 were able to compile)

Thanks!
/Charlie
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-11-09 15:56:15 UTC
Um, udev does not work on 2.4, why would you be using that to build against?
Comment 4 Charlie Gehlin 2005-11-10 00:35:39 UTC
Well, in parallel with 2.4 we sometimes run 2.6 to test if the (in)famous
SCSI-bug has gone. Now, would it do any difference to boot up in 2.6 to build
udev? I mean; the build environment is the same?

Thanks!
/Charlie
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-11-10 09:08:35 UTC
It's a "which kernel headers are you building against" issue, not which kernel 
are you running at the time.

upstream is looking at this now...
Comment 6 Thorsten Hirsch 2005-11-11 06:05:54 UTC
Hi,

I want to confirm the problem. I'm running kernel 2.6.13-gentoo-r2, but
linux-headers are 2.4.26, because 2.6.x seem to be hard-masked for ~sparc. I
propose to soft-mask them.

Best regards,
Thorsten
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-12-07 13:13:02 UTC
Should be fixed in 077 release