Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259297 - sys-kernel/tuxonice-sources-2.6.28-r2 doesn't build
Summary: sys-kernel/tuxonice-sources-2.6.28-r2 doesn't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
: 259329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-17 00:46 UTC by Kingsly John
Modified: 2009-02-17 20:30 UTC (History)
5 users (show)

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


Attachments
tuxonice-sources-2.6.28-r2 build patch (gentoo-toi-2.6.28-r2-pageset.patch,370 bytes, text/plain)
2009-02-17 13:24 UTC, Peter Tworek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kingsly John 2009-02-17 00:46:51 UTC
The tuxonice-3.0-rc8 with reverted swsup code is against 2.6.28.1 and when applied to 2.6.28. it prevents the kernel from being built.



Reproducible: Always

Steps to Reproduce:
1. genkernel all 
2. 
3.

Actual Results:  
* ERROR: Failed to compile the "bzImage" target...


Expected Results:  
successful kernel build.

*         >> Compiling 2.6.28-tuxonice-r2 bzImage...
* ERROR: Failed to compile the "bzImage" target...

* -- Grepping log... --

  CC      kernel/user.o
  LD      arch/x86/kernel/cpu/mcheck/built-in.o
  CC      arch/x86/kernel/cpu/mtrr/main.o
  CC      kernel/signal.o
arch/x86/kernel/cpu/mtrr/main.c: In function 'mtrr_bp_init':
arch/x86/kernel/cpu/mtrr/main.c:1364: warning: 'gran_base' may be used uninitial
ized in this function
--
  CC      kernel/power/tuxonice_atomic_copy.o
  CC      mm/maccess.o
  CC      mm/page_alloc.o
  CC      kernel/power/tuxonice_checksum.o
kernel/power/tuxonice_checksum.c: In function 'check_checksums':
kernel/power/tuxonice_checksum.c:299: error: incompatible type for argument 1 of
 'get_next_bit_on'
kernel/power/tuxonice_checksum.c:299: error: incompatible type for argument 1 of
 'get_next_bit_on'
make[2]: *** [kernel/power/tuxonice_checksum.o] Error 1
make[1]: *** [kernel/power] Error 2
make: *** [kernel] Error 2
--
  CC      mm/allocpercpu.o
  LD      mm/built-in.o
* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: all

* ERROR: Failed to compile the "bzImage" target...

* -- End log... --
Comment 1 Myk Taylor 2009-02-17 05:41:34 UTC
I get a different error:

  CC      kernel/power/tuxonice_checksum.o
/usr/src/linux-2.6.28-tuxonice-r2/kernel/power/tuxonice_checksum.c: In function ‘check_checksums’:
/usr/src/linux-2.6.28-tuxonice-r2/kernel/power/tuxonice_checksum.c:299: error: incompatible type for argument 1 of ‘get_next_bit_on’
/usr/src/linux-2.6.28-tuxonice-r2/kernel/power/tuxonice_checksum.c:299: error: incompatible type for argument 1 of ‘get_next_bit_on’
make[3]: *** [kernel/power/tuxonice_checksum.o] Error 1
make[2]: *** [kernel/power] Error 2
make[1]: *** [kernel] Error 2
make: *** [sub-make] Error 2
Comment 2 Myk Taylor 2009-02-17 05:43:43 UTC
# emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.28-tuxonice-r1-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-glibc2.0
Timestamp of tree: Tue, 17 Feb 2009 02:35:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
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/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns alsa ao audiofile bash-completion berkdb bidi bluetooth branding bzip2 cairo cddb cdparanoia cdr cjk cli cracklib crypt cscope cups curl dbus dga directfb dri dts dvd dvdr dvdread eds emboss encode evo exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtkhtml hal iconv idn imagemagick imap imlib ipod isdnlog java jbig jikes joystick jpeg jpeg2k kde kdeenablefinal lame lcms ldap libnotify libsamplerate lirc lm_sensors mad matroska midi mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pango pcmcia pcre pdf perl plotutils png portaudio ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl scanner sdl session slang slp sndfile snmp speex spell spl sse sse2 ssl startup-notification svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xinerama xml xorg xosd xpm xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="sir" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" USERLAND="GNU" VIDEO_CARDS="fbdev radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Myk Taylor 2009-02-17 05:46:50 UTC
Ok, well, obviously my "different error" is exactly the same error.  I just can't read today.
Comment 4 Kingsly John 2009-02-17 09:05:26 UTC
This patch seems to work
http://www.tuxonice.net/downloads/all/current-tuxonice-for-2.6.28.patch-20090214-v1.bz2

At least it built the bzImage with the same .config that failed with the other patch.

Will test the kernel later and report.

Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-17 09:13:39 UTC
*** Bug 259329 has been marked as a duplicate of this bug. ***
Comment 6 Kingsly John 2009-02-17 12:59:26 UTC
Was able to successfully build  and suspend/restore by replacing tuxonice-3.0-rc8-for-2.6.28-removed-swsusp-bitmaps.patch.bz2  with this patch

http://www.tuxonice.net/downloads/all/current-tuxonice-for-2.6.28.patch-20090214-v1.bz2
Comment 7 Peter Tworek 2009-02-17 13:24:58 UTC
Created attachment 182329 [details]
tuxonice-sources-2.6.28-r2 build patch

I've successfully build latest tuxonice-sources with attached patch. So far it seems to be working fine, but I don't know if this is the right solution.
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-02-17 20:30:12 UTC
Fixed in 2.6.28-r3