View previous topic :: View next topic |
Author |
Message |
rican-linux n00b

Joined: 13 Apr 2015 Posts: 34
|
Posted: Wed Jun 01, 2016 5:59 pm Post subject: ppc64 cannot cross compile |
|
|
I have gentoo installed on my PowerMac G5. I want to set it up with 64base and 32 userland. However when compiling the kernel I get the following error:
Code: | (chroot) livecd linux # CROSS_COMPILE="powerpc64-unknown-linux-gnu-" make && make modules_install
make: powerpc64-unknown-linux-gnu-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: powerpc64-unknown-linux-gnu-gcc: Command not found
./scripts/gcc-version.sh: line 25: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 26: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 25: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 26: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 25: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 26: powerpc64-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 28: powerpc64-unknown-linux-gnu-gcc: command not found
Sorry, GCC v4.0 or above is required to build the 64-bit powerpc kernel.
arch/powerpc/Makefile:317: recipe for target 'checkbin' failed
make: *** [checkbin] Error 1
|
when I checked gcc i saw that the multilib USE flag was off
Code: | (chroot) livecd linux # gcc -v
Using built-in specs.
COLLECT_GCC=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.9.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.9.3/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.9.3/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.9.3 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.9.3/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.9.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-vtable-verify --disable-libvtv --enable-lto --without-cloog --enable-libsanitizer
Thread model: posix
gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4)
|
I do have a multilib profile selected
Code: | (chroot) livecd linux # eselect profile list
Available profile symlink targets:
[1] default/linux/powerpc/ppc32/13.0
[2] default/linux/powerpc/ppc32/13.0/desktop
[3] default/linux/powerpc/ppc32/13.0/desktop/gnome
[4] default/linux/powerpc/ppc32/13.0/desktop/gnome/systemd
[5] default/linux/powerpc/ppc32/13.0/desktop/kde
[6] default/linux/powerpc/ppc32/13.0/desktop/kde/systemd
[7] default/linux/powerpc/ppc32/13.0/developer
[8] default/linux/powerpc/ppc64/13.0/32bit-userland
[9] default/linux/powerpc/ppc64/13.0/32bit-userland/desktop *
[10] default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/gnome
[11] default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/gnome/systemd
[12] default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/kde
[13] default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/kde/systemd
[14] default/linux/powerpc/ppc64/13.0/32bit-userland/developer
[15] hardened/linux/powerpc/ppc32
[16] hardened/linux/powerpc/ppc64/32bit-userland
[17] hardened/linux/musl/ppc
[18] default/linux/uclibc/ppc
[19] hardened/linux/uclibc/ppc
|
I am also posting my emerge --info if anyone can point me in the right direction that would be awesome!
Code: | (chroot) livecd linux # emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/powerpc/ppc64/13.0/32bit-userland/desktop, gcc-4.9.3, glibc-2.22-r4, 3.12.21-gentoo-r1-G5 ppc64)
=================================================================
System uname: Linux-3.12.21-gentoo-r1-G5-ppc64-PPC970,_altivec_supported-with-gentoo-2.2
KiB Mem: 4008512 total, 3032012 free
KiB Swap: 1048572 total, 1048572 free
Timestamp of repository gentoo: Tue, 31 May 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p42-r1::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.19.1::gentoo
sys-apps/sandbox: 2.10-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 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.3::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: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.22-r4::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=970"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ http://www.gtlib.gatech.edu/pub/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://cosmos.illinois.edu/pub/gentoo/ http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="X a52 aac acl alsa altivec berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gcc64 gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc ppds pulseaudio qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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="radeon" 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
|
|
|
Back to top |
|
 |
rican-linux n00b

Joined: 13 Apr 2015 Posts: 34
|
Posted: Thu Jun 02, 2016 2:49 am Post subject: |
|
|
UPDATE: It looks like all needed was to build the kernel using the following
Code: | make g5_defconfig
make && make modules_install |
My system booted after that! |
|
Back to top |
|
 |
rican-linux n00b

Joined: 13 Apr 2015 Posts: 34
|
Posted: Wed Jun 08, 2016 4:58 pm Post subject: |
|
|
UPDATE I did not need to cross-compile to get a working kernel. I am up and running on my G5. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|