Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146579 - linux-headers-2.6.11 does not cross compile
Summary: linux-headers-2.6.11 does not cross compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 09:34 UTC by Joakim Tjernlund
Modified: 2006-11-13 02:02 UTC (History)
4 users (show)

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


Attachments
Patch for the defconfig issue (kernel-2.patch,932 bytes, patch)
2006-10-06 08:46 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2006-09-06 09:34:42 UTC
Error message from crossdev:
>>> Compiling source in /var/tmp/cross/powerpc-softfloat-linux-uclibc/portage/linux-headers-2.6.11-r6/work/linux-2.6.11 ...
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-powerpc-softfloat-linux-uclibc/linux-headers-2.6.11-r6
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-powerpc-softfloat-linux-uclibc/linux-headers-2.6.11-r6
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/ppc/configs/pmac32_defconfig"!
***
make[1]: *** [pmac32_defconfig] Error 1
make: *** [pmac32_defconfig] Error 2

pmac32_defconfig does not exist on 2.6.11, only pmac_defconfig.

The pmac32_defconfig is from toolchain.eclass
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 09:59:58 UTC
(In reply to comment #0)
> The pmac32_defconfig is from toolchain.eclass

I guess not? 

# grep -Rni pmac32_defconfig /usr/portage/eclass/
/usr/portage/eclass/kernel-2.eclass:436:		powerpc*)	K_DEFCONFIG="pmac32_defconfig";;
Comment 2 Joakim Tjernlund 2006-09-06 12:27:01 UTC
Ah yes, my mistake.
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2006-09-06 13:49:35 UTC
It's pmac32_defconfig for kernel-2.6.16 and up.  For 2.6.15 and lower, it's just defconfig. (Due to the kernel headers merge).

We could change it to be something like:

        # if K_DEFCONFIG isn't set, force to "defconfig"
        # needed by mips
        if [[ -z ${K_DEFCONFIG} ]]; then
            if kernel_is le 2 6 15; then
                K_DEFCONFIG="defconfig";
            else                
                case ${CTARGET} in
                     powerpc64*) K_DEFCONFIG="ppc64_defconfig";;
                     powerpc)    K_DEFCONFIG="pmac32_defconfig";;
                     *)          K_DEFCONFIG="defconfig";;
                esac
            fi
        fi

Is that okay?
Comment 4 Luca Barbato gentoo-dev 2006-09-06 17:14:55 UTC
In the mean time I fixed that ugly typo in the eclass (missing *)

just add the right K_DEFCONFIG line in the ebuild please
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2006-09-06 17:49:40 UTC
I guess that means we add K_DEFCONFIG="defconfig" to all of the ppc/ppc64 keyworded kernel source ebuilds before 2.6.16?  I think it's probably easier to do it in the eclass. :p
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2006-09-11 14:21:42 UTC
I appreciate if we can resolve this soon, as it is a blocker to my stage1-test-build.

Joe, lu_zero, what holds you back?
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2006-09-12 07:28:11 UTC
I would rather do it in the eclass, while lu_zero wants to do it in the source.  Who is right? :)  I suppose that since there most likely will not be newer ppc sources with "defconfig", that I can see lu_zero's point, but I'm not sure the duplication of K_DEFCONFIG="defconfig" in the many existing ebuilds is the right thing to do either.

Comments?
Comment 8 Joakim Tjernlund 2006-09-25 13:59:10 UTC
Any progress?
Comment 9 Wormo (RETIRED) gentoo-dev 2006-09-29 17:15:38 UTC
I like the solution proposed by JoseJX, since it correctly handles all 2.6 kernels -- the correct behavior would be propagated to any ebuilds in overlays as well. It's also nice to look in one place and see what happened to the ppc defconfig (and when it happened -- 2.6.15).
Comment 10 Wormo (RETIRED) gentoo-dev 2006-09-29 17:19:32 UTC
sigh... by 2.6.15 I mean 2.6.16
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2006-10-06 08:46:18 UTC
Created attachment 98938 [details, diff]
Patch for the defconfig issue

Alright, since nothing has happened, if nobody objects, the attached patch is what I'm applying to the eclass.  Please voice your opinion now if you don't agree.
Comment 12 SpanKY gentoo-dev 2006-10-06 09:07:49 UTC
there is a typo in the first if (bad cASe handling)

use spaces in the case statement after the ) to line things up, not tabs
Comment 13 SpanKY gentoo-dev 2006-10-08 12:56:07 UTC
oh and the is_kernel statement is incorrect i think ... shouldnt it read "2 6 15"
Comment 14 Joe Jezak (RETIRED) gentoo-dev 2006-11-13 02:02:40 UTC
dostrow fixed it already with the same fix that I had.  Feel free to reopen if you're still having problems.