Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564752 - sys-kernel/genkernel : ERROR: ppc64le not yet supported by genkernel. Please add the arch-specific config file
Summary: sys-kernel/genkernel : ERROR: ppc64le not yet supported by genkernel. Please ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-03 06:48 UTC by Kevin Zhao
Modified: 2017-09-13 18:01 UTC (History)
1 user (show)

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


Attachments
patch to fix this bug 564752 (0001-Bug-fix-Bug-564752-sys-kernel-genkernel-ERROR-ppc64l.patch,176.99 KB, patch)
2015-11-11 08:40 UTC, Kevin Zhao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Zhao 2015-11-03 06:48:04 UTC
Our team has finish compiling Gentoo stage3 and has successfully build a Gentoo image for ppc64le(powerpc64 Little-Endian),it is a new subarch for Gentoo .Also ,the profiles of ppc64le has been added to the mainline,here is the output of eselect,we can see there is a “little-endian” branch below ppc64 :-). 
Available profile symlink targets:
  [1]   default/linux/powerpc/ppc64/13.0/64bit-userland
  [2]   default/linux/powerpc/ppc64/13.0/64bit-userland/desktop
  [3]   default/linux/powerpc/ppc64/13.0/64bit-userland/desktop/gnome
  [4]   default/linux/powerpc/ppc64/13.0/64bit-userland/desktop/gnome/systemd
  [5]   default/linux/powerpc/ppc64/13.0/64bit-userland/desktop/kde
  [6]   default/linux/powerpc/ppc64/13.0/64bit-userland/desktop/kde/systemd
  [7]   default/linux/powerpc/ppc64/13.0/64bit-userland/developer
  [8]   default/linux/powerpc/ppc64/13.0/64bit-userland/little-endian *
  [9]   hardened/linux/powerpc/ppc64/64bit-userland

Now we are using genkernel to build a kernel for ppc64le ,but genkernel has not support ppc64le until now.


Reproducible: Always

Steps to Reproduce:
1.Go into the filesystem of Gentoo stage3
2.emerge genkernel to get the new version of genkernel and it's dependencies
3.run command genkernel all and returned the error log
Actual Results:  
Show the Error log as below:
* Gentoo Linux Genkernel; Version 3.4.49.2
* Running with options: all

* ERROR: ppc64le not yet supported by genkernel. Please add the arch-specific config file, /usr/share/genkernel/arch/ppc64le/config.sh
* 
* -- Grepping log... --
* 
*
* Gentoo Linux Genkernel; Version 3.4.49.2
* Running with options: all
*
* ERROR: ppc64le not yet supported by genkernel. Please add the arch-specific config file, /usr/share/genkernel/arch/ppc64le/config.sh
* 
* -- End log... --
* 
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* 
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
* 
* Not running any cleanup per DEBUGCLEANUP
* TEMP: /var/tmp/genkernel/11441.21627.26983.16422
* CACHE_DIR: /var/cache/genkernel
* TMPDIR: /var/tmp/genkernel


Expected Results:  
Recognize the arch and download the source ,compiling Linux kernel and initramsfs

Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland/little-endian, gcc-4.9.2, glibc-2.22, 3.16.0-23-generic ppc64le)
=================================================================
System uname: Linux-3.16.0-23-generic-ppc64le-POWER8E_-raw-,_altivec_supported-with-gentoo-2.2
KiB Mem:     8361792 total,     27584 free
KiB Swap:    4292544 total,   4292544 free
Timestamp of repository gentoo: Tue, 03 Nov 2015 00:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.7::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64le-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2 -lpthread"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2 -lpthread"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl altivec berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm ibm iconv ipv6 modules ncurses nls nptl openmp pam pcre ppc64 readline session ssl tcpd unicode xattr zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Kevin Zhao 2015-11-03 06:49:08 UTC
Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland/little-endian, gcc-4.9.2, glibc-2.22, 3.16.0-23-generic ppc64le)
=================================================================
System uname: Linux-3.16.0-23-generic-ppc64le-POWER8E_-raw-,_altivec_supported-with-gentoo-2.2
KiB Mem:     8361792 total,     27584 free
KiB Swap:    4292544 total,   4292544 free
Timestamp of repository gentoo: Tue, 03 Nov 2015 00:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.7::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64le-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2 -lpthread"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2 -lpthread"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl altivec berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm ibm iconv ipv6 modules ncurses nls nptl openmp pam pcre ppc64 readline session ssl tcpd unicode xattr zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Kevin Zhao 2015-11-11 08:40:14 UTC
Created attachment 416650 [details, diff]
patch to fix this bug 564752

Hi all,
I have submitted a patch to fix this bug.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-09-13 18:00:59 UTC
Please open a new bug, adding arch/ppc64le/arch-config, which should be the minimal kconfig options needed to get a PPC64LE build (this will be combined with defaults/kernel-generic-config)
Comment 4 Larry the Git Cow gentoo-dev 2017-09-13 18:01:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=7d6671d55d06082641987fae6e24903a1990de57

commit 7d6671d55d06082641987fae6e24903a1990de57
Author:     Kevin Zhao <kevin.zhaoshuai@cn.ibm.com>
AuthorDate: 2015-11-03 08:25:40 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-09-13 17:57:41 +0000

    ppc64le support
    
    Bug fix:Bug 564752 - sys-kernel/genkernel : ERROR: ppc64le not yet supported by genkernel.Please add the arch-specific config file
    
    Add support of genkernel for arch ppc64le.Then Gentoo profiles has
    supportted ppc64le now.Add a new arch configuration ,kernel configure
    and module loading file.Also add ppc64le to  gen_arch.sh.
    
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Fixes: https://bugs.gentoo.org/564752

 arch/ppc64le/config.sh     |   26 +
 arch/ppc64le/kernel-config | 7520 ++++++++++++++++++++++++++++++++++++++++++++
 arch/ppc64le/modules_load  |   28 +
 3 files changed, 7574 insertions(+)