Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211378 - net-fs/openafs-kernel fails to configure with gentoo-sources-2.6.23-r8
Summary: net-fs/openafs-kernel fails to configure with gentoo-sources-2.6.23-r8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
: 211849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-25 13:52 UTC by Mike Hammill
Modified: 2010-06-21 23:13 UTC (History)
1 user (show)

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


Attachments
Full emerge log openafs kernel (openafs_kernel.log,22.93 KB, text/plain)
2008-02-26 11:04 UTC, Mike Hammill
Details
net-fs:openafs-kernel-1.4.7:20080506-075700.log (openafs_kernel_1.4.7.log,22.72 KB, text/plain)
2008-05-06 08:40 UTC, Mike Hammill
Details
emerge --info (giddy_openafs_emerge_info,3.12 KB, text/plain)
2008-05-06 08:41 UTC, Mike Hammill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hammill 2008-02-25 13:52:26 UTC
Compilation of openafs-kernel, both 1.4.6 (stable) 1.4.6_p20080222 (~ppc) fails with gentoo-sources-2.6.23-r8.  Version 1.4.6 had been working perfectly with gentoo-sources-2.6.23-gentoo-r5.

Reproducible: Always

Steps to Reproduce:
1. modules-rebuild after kernel upgrade (or simply any attempt to compile openafs-kernel with this kernel)



Actual Results:  
Fails to compile.

Expected Results:  
Shinny new openafs--I am only talking client here.  I have not tested any server components.

# emerge --info
Portage 2.1.4.4 (!//usr/portage/profiles/default-linux/ppc/ppc32/2007.0/server/G4/, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 ppc)
=================================================================
System uname: 2.6.23-gentoo-r8 ppc 7400, altivec supported
Timestamp of tree: Mon, 25 Feb 2008 00:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://ftp.rhnet.is/pub/gentoo/ http://mirror.gentoo.no/ http://gentoo.osuosl.org/"
LC_ALL="en_US.utf8"
MAKEOPTS="-j4"
PKGDIR="/usr/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/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://giddy.michael.hammill.name/gentoo-portage"
USE="acl altivec apache2 bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dri emacs fam fortran gdbm gpm iconv ipv6 isdnlog ldap mailwrapper midi mudflap mysql ncurses network-cron nls no-old-linux nptl nptlonly openmp pam pcre perl ppc pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts unicode xml xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Hammill 2008-02-25 13:56:35 UTC
From /var/log/portage/net-fs:openafs-kernel-1.4.6_p20080222:20080225-110959.log

Seem to stop at:
"make[3]: *** No rule to make target `param._linux26.h', needed by ..."

make build TARGET=libafs
make[1]: Entering directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6'
make libafs DEST=/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/_linux26/dest COMPILE_PART2B=all DESTDIR=
make[2]: Entering directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6'
cd src && cd config && make all
make[3]: Entering directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/src/config'
rm -f Makefile.version
if	[ -r SRC/../CML/state ] ; \
	then	cp ./Makefile.version-CML Makefile.version ; \
	else	cp Makefile.version-NOCML Makefile.version ; \
	fi
make -f Makefile.version AFS_component_version_number.c
make[4]: Entering directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/src/config'
echo 'char cml_version_number[]="@(#) OpenAFS 1.4.5 built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs 1.4.5"; ' >>AFS_component_version_number.c
make[4]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/src/config'
powerpc-unknown-linux-gnu-gcc  -O -I/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/include -I.   -I. -c ./config.c
./config.c: In function 'main':
./config.c:35: warning: incompatible implicit declaration of built-in function 'exit'
./config.c:40: warning: incompatible implicit declaration of built-in function 'exit'
./config.c:45: warning: incompatible implicit declaration of built-in function 'exit'
./config.c:65: warning: incompatible implicit declaration of built-in function 'exit'
./config.c:68: warning: incompatible implicit declaration of built-in function 'exit'
powerpc-unknown-linux-gnu-gcc  -O -I/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/include -I.   -c ./mc.c
powerpc-unknown-linux-gnu-gcc  -O -I/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/include -I.   -o config config.o mc.o
powerpc-unknown-linux-gnu-gcc  -O -I/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/include -I.   -o mkvers ./mkvers.c
make[3]: *** No rule to make target `param._linux26.h', needed by `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/include/afs/param.h'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6/src/config'
make[2]: *** [config] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-fs/openafs-kernel-1.4.6_p20080222/work/openafs-1.4.6'
make: *** [only_libafs] Error 2
 * 
 * ERROR: net-fs/openafs-kernel-1.4.6_p20080222 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3107:  Called die
 * The specific snippet of code:
 *       ARCH="$(tc-arch-kernel)" emake -j1 only_libafs || die "Failed: emake"
 *  The die message:
 *   Failed: emake
 * 
Comment 2 Mike Hammill 2008-02-25 14:00:52 UTC
I get precisely the same error with openafs-kernel-1.4.6 (stable) on a different ppc32 machine.  Since you're testing 2.6.24 kernels now, I suppose that is the next thing to try...

BTW, openafs-1.4.6 (and unstable version) also fail just as openafs-kernel does, same error, it appears.  I can post if anyone wants.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 16:57:32 UTC
Really nothing useful there; try w/ MAKEOPTS="-j1" and attach the full emerge log.
Comment 4 Mike Hammill 2008-02-26 11:04:58 UTC
Created attachment 144664 [details]
Full emerge log openafs kernel

NEEDINFO == RESOLVE (I gotta try that.  Sounds fantastic!)

Attached is the info you asked for, run as you asked for it (i.e., -j1, no ccache, distcc, etc).  I see nothing gained in the resulting file.  Hope you find what you're looking for.
Comment 5 Mike Hammill 2008-02-26 11:09:03 UTC
I guess sending the NEEDEDINFO does not automatically reopen a bug....hum...so I did it manually.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-26 11:13:20 UTC
Well, that's how bugzilla works, we can't change it :)
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-28 22:49:15 UTC
*** Bug 211849 has been marked as a duplicate of this bug. ***
Comment 8 Stefaan De Roeck (RETIRED) gentoo-dev 2008-04-14 11:10:02 UTC
Could you try creating a link from /usr/bin/arch to /bin/arch, and see what that gives?  (supposing /bin/arch doesn't exist)
Comment 9 Stefaan De Roeck (RETIRED) gentoo-dev 2008-04-14 11:57:16 UTC
A bit more verbose now that I have the time:

What this bug and bug #211849 seem to have in common is failure to detect the AFS sysname.  The architectures are ppc resp. sparc.  Both seem to call on '/bin/arch' to determine the eventual AFS sysname.  /bin/arch doesn't exist on my amd64, so I'm supposing it doesn't exist for those architectures either.  

As to why the sysname suddenly couldn't be detected by openafs-kernel-1.4.6 with gentoo-sources-2.6.23-r8, but works with gentoo-sources-2.6.23-r5, I have no clue, so I'd actually be surprised if linking /usr/bin/arch to /usr/bin/arch would fix the issue.  But I'm curious nevertheless..
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2008-04-15 19:08:06 UTC
This patch fixes the problem, /bin/arch is no longer provided, uname -m is the proper way to do this:
http://bugs.gentoo.org/attachment.cgi?id=134841&action=view
Comment 11 Mike Hammill 2008-04-17 18:57:11 UTC
(In reply to comment #8)
On my ppc32 system I have neither /usr/bin/arch nor /bin/arch:
quicky ~ # uname -m
ppc
quicky ~ # uname -a
Linux quicky 2.6.24-gentoo-r3 #1 Thu Mar 20 00:36:09 CET 2008 ppc 7450, altivec supported PowerMac3,5 GNU/Linux
quicky ~ # ls -l /bin/arch /usr/bin/arch
ls: cannot access /bin/arch: No such file or directory
ls: cannot access /usr/bin/arch: No such file or directory

Don't know that it matters, but I can provide emerge --info if you like.  I am now using the "default/linux/powerpc/ppc32/2008.0/desktop" profile. Also should not OpenAFS 1.4.7_pre3 fails with both 2.6.23-r8 and on up to 2.6.24 gentoo kernels.
Comment 12 Stefaan De Roeck (RETIRED) gentoo-dev 2008-05-03 09:53:10 UTC
(In reply to comment #10)
> This patch fixes the problem, /bin/arch is no longer provided, uname -m is the
> proper way to do this:
> http://bugs.gentoo.org/attachment.cgi?id=134841&action=view

I put this patch in openafs-1.4.7, so I'm assuming this is fixed for the two concerned architectures (I can't really test).  Please reopen if the problem still occurs.  Thanks for the patch!
Stefaan
Comment 13 Mike Hammill 2008-05-05 13:58:05 UTC
(In reply to comment #12)
Before reopening I will gather more info (try with a second machine and -j1, for example), but so far it failed on 

make[3]: *** No rule to make target `param._linux26.h', needed by `/var/tmp/portage/net-fs/openafs-kernel-1.4.7/work/openafs-1.4.7/include/afs/param.h'.  Stop.

This is for a ppc32.
/Mike
Comment 14 Mike Hammill 2008-05-06 08:38:54 UTC
(In reply to comment #12)
Dear Stefaan,
Unfortunately, this does not appear to fix the problem on ppc32.  I tried with -j1, and disabled ccache and distcc, see attached files.
/Mike
Comment 15 Mike Hammill 2008-05-06 08:40:50 UTC
Created attachment 152079 [details]
net-fs:openafs-kernel-1.4.7:20080506-075700.log
Comment 16 Mike Hammill 2008-05-06 08:41:34 UTC
Created attachment 152081 [details]
emerge --info
Comment 17 Stefaan De Roeck (RETIRED) gentoo-dev 2008-05-06 09:42:24 UTC
Could you see what happens if you add another parameter to econf:
  --build=$($(tc-getCC) -dumpmachine)
I'm particularly interested in what appears for "checking your AFS sysname".
Comment 18 Mike Hammill 2008-05-06 17:05:20 UTC
(In reply to comment #17)
Here is the short answer:
# grep econf /usr/local/portage/net-fs/openafs-kernel/openafs-kernel-1.4.7.ebuild
	ARCH="$(tc-arch-kernel)" econf --with-linux-kernel-headers=${KV_OUT_DIR} --build=$($(tc-getCC) -dumpmachine) || die "Failed: econf"
# giddy ~ # grep sysname /var/log/portage/net-fs:openafs-kernel-1.4.7:20080506-165139.log
checking your AFS sysname... ./configure: line 6182: /bin/arch: No such file or directory

Is it possible the patch didn't make it in?
ls -l /usr/portage/net-fs/openafs-kernel/files/
total 8
-rw-r--r-- 1 root root 574 2008-04-06 20:36 STABLE14-linux-flush-compare-20080402
-rw-r--r-- 1 root root 621 2008-04-06 20:36 STABLE14-linux-flush-unlock-20080402

Let me know if I should include more info.
/Mike
Comment 19 Mike Hammill 2008-11-09 16:19:09 UTC
Well, I'm not sure if ppc is still really supported with gentoo openafs.  It hasn't work in a long time.  I just tried 1.4.8pre3 and it also fails to compile against the current stable ppc kernel, 2.6.24-gentoo-r3.  The log file mentioned below ends with:

.log file:
checking if linux kbuild requires EXTRA_CFLAGS... yes
checking for linux kernel module build works... no
configure: error: Fix problem or use --disable-kernel-module...
See `config.log' for more details.

Nothing particular jumped out at me from the temp/environment file.

** Upgrading net-fs/openafs-kernel - 1 of 2
* Downloading openafs-gentoo-0.15.tar.bz2
* (87.5 KB/s) - `/usr/portage/distfiles/openafs-gentoo-0.15.tar.bz2' saved [20155/20155]
* Downloading openafs-1.4.8pre3-src.tar.bz2
* (365 KB/s) - `/usr/portage/distfiles/openafs-1.4.8pre3-src.tar.bz2' saved [11537447/11537447]
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found kernel object directory:
*     /lib/modules/2.6.24-gentoo-r3/build
* Found sources for kernel version:
*     2.6.24-gentoo-r3
* Checking for suitable kernel configuration options...
* Unpacking openafs-1.4.8pre3-src.tar.bz2 to net-fs/openafs-kernel-1.4.8_pre3
* Unpacking openafs-gentoo-0.15.tar.bz2 to net-fs/openafs-kernel-1.4.8_pre3
* Patching:....................done
** Compiling Source ... 
!!  Please attach the following file when seeking support:
!!  /var/tmp/portage/net-fs/openafs-kernel-1.4.8_pre3/work/openafs-1.4.8pre3/config.log
!! ERROR: net-fs/openafs-kernel-1.4.8_pre3 failed.
!! Call stack:
!!               ebuild.sh, line   49:  Called src_compile
!!             environment, line 3131:  Called econf 'src_compile' 'src_compile'
!!               ebuild.sh, line  519:  Called die
!! The specific snippet of code:
!!   			die "econf failed"
!!  The die message:
!!   econf failed
!! If you need support, post the topmost build error, and the call stack if relevant.
!! A complete build log is located at '/var/log/portage/net-fs:openafs-kernel-1.4.8_pre3:20081109-154704.log'.
!! The ebuild environment file is located at '/var/tmp/portage/net-fs/openafs-kernel-1.4.8_pre3/temp/environment'.
!! net-fs/openafs-kernel-1.4.8_pre3 failed to install.
! Failed so far: net-fs/openafs-kernel-1.4.8_pre3
* Checking dependencies for net-fs/openafs-1.4.8_pre3..done

PS: I'm not trying to complain here, just wanted to follow up.  Good luck to all!
Comment 20 Stefaan De Roeck (RETIRED) gentoo-dev 2008-11-10 19:58:15 UTC
You may be interested in some comments on bug #211367.  Short story is that it's very hard to fix / unsupported / needs a fight with linux kernel developers / ...  Bottom line is probably that I'm dropping support for ppc :(
Comment 21 Mike Hammill 2008-11-12 15:09:28 UTC
(In reply to comment #20)
> You may be interested in some comments on bug #211367.  Short story is that
> it's very hard to fix / unsupported / needs a fight with linux kernel
> developers / ...  Bottom line is probably that I'm dropping support for ppc :(
> 
Dear Stefaan,

Of course that is sad to hear.  I went over and read the bug you referred to.  I wish there was some way for those of us with effected processors to make our voices heard.  Anyway, thanks for leaving the possibility open--at least for a little while--for fixing it.

Best regards!
/Mike
Comment 22 SpanKY gentoo-dev 2010-06-21 23:13:37 UTC
openafs-kernel-1.4.12.1 should fix things