Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing gentoo on ppc64 g5 mac
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
azazel616
n00b
n00b


Joined: 16 Feb 2023
Posts: 1

PostPosted: Thu Feb 16, 2023 10:07 am    Post subject: Installing gentoo on ppc64 g5 mac Reply with quote

Hi all, i'm trying my first gentoo installation on a G5 powemac following the ppc64 install guide nearly step by step

when i get to the kernel emerging procedure i get an error compiling package elfutils, here's the emerge reports

Code:

(chroot) # emerge --info '=dev-libs/elfutils-0.188::gentoo'
Portage 3.0.43 (python 3.10.9-final-0, default/linux/ppc64le/17.0/desktop, gcc-12, glibc-2.36-r5, 5.15.88-gentoo-ppc64-ppc ppc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.88-gentoo-ppc64-ppc-ppc64-PPC970,_altivec_supported-with-glibc2.36
KiB Mem:     5475048 total,    242040 free
KiB Swap:  125029544 total, 125029544 free
Timestamp of repository gentoo: Thu, 16 Feb 2023 09:00:01 +0000
Head commit of repository gentoo: b4b8386e4244bbf36b10a50144f71b10ce5b176e
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ http://ftp.agdsn.de/gentoo https://ftp.agdsn.de/gentoo rsync://ftp.agdsn.de/gentoo https://ftp.gwdg.de/pub/linux/gentoo/ http://ftp.gwdg.de/pub/linux/gentoo/ ftp://ftp.gwdg.de/pub/linux/gentoo/ rsync://ftp.gwdg.de/gentoo/ https://ftp.uni-hannover.de/gentoo/ http://ftp.uni-hannover.de/gentoo/ ftp://ftp.uni-hannover.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ https://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ https://packages.hs-regensburg.de/gentoo-distfiles/ http://packages.hs-regensburg.de/gentoo-distfiles/ rsync://packages.hs-regensburg.de/gentoo-distfiles/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo https://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.tu-ilmenau.de/mirror/gentoo/ http://ftp.tu-ilmenau.de/mirror/gentoo/ ftp://ftp.tu-ilmenau.de/mirror/gentoo/ rsync://ftp.tu-ilmenau.de/gentoo/ https://ftp.fau.de/gentoo http://ftp.fau.de/gentoo ftp://ftp.fau.de/gentoo rsync://ftp.fau.de/gentoo https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ https://gentoo.mirror.garr.it/ http://gentoo.mirror.garr.it/"
LANG="it_IT"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl alsa bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc64 ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_PPC="altivec" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS



Code:

# emerge -pqv '=dev-libs/elfutils-0.188::gentoo'
[ebuild  N    ] dev-libs/elfutils-0.188  USE="bzip2 nls utils -lzma -static-libs -test -valgrind -verify-sig -zstd"

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Code:

# cat /var/tmp/portage/dev-libs/elfutils-0.188/temp/build.log
 * Package:    dev-libs/elfutils-0.188:0
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        bzip2 elibc_glibc kernel_linux nls ppc64 userland_GNU utils
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking elfutils-0.188.tar.bz2 to /var/tmp/portage/dev-libs/elfutils-0.188/work
>>> Unpacking elfutils-0.187-patches.tar.xz to /var/tmp/portage/dev-libs/elfutils-0.188/work
>>> Source unpacked in /var/tmp/portage/dev-libs/elfutils-0.188/work
>>> Preparing source in /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188 ...
 * Applying patches from /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.187-patches/ ...
 *   elfutils-0.175-disable-biarch-test-PR24158.patch ...                                    [ ok ]
 *   elfutils-0.177-disable-large.patch ...                                                  [ ok ]
 *   elfutils-0.180-PaX-support.patch ...                                                    [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188 ...
 * .ppc64: running multilib-minimal_abi_src_configure
 * econf: updating elfutils-0.188/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating elfutils-0.188/config/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/configure --prefix=/usr --build=powerpc64-unknown-linux-gnu --host=powerpc64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/elfutils-0.188 --htmldir=/usr/share/doc/elfutils-0.188/html --libdir=/usr/lib64 --enable-nls --disable-debuginfod --disable-libdebuginfod --disable-thread-safety --disable-valgrind --program-prefix=eu- --with-zlib --with-bzlib --without-lzma --without-zstd
checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking for powerpc64-unknown-linux-gnu-gcc... powerpc64-unknown-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether powerpc64-unknown-linux-gnu-gcc accepts -g... yes
checking for powerpc64-unknown-linux-gnu-gcc option to enable C11 features... unsupported
checking for powerpc64-unknown-linux-gnu-gcc option to enable C99 features... unsupported
checking for powerpc64-unknown-linux-gnu-gcc option to enable C89 features... none needed
checking whether powerpc64-unknown-linux-gnu-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of powerpc64-unknown-linux-gnu-gcc... none
checking for powerpc64-unknown-linux-gnu-g++... powerpc64-unknown-linux-gnu-g++
checking whether the compiler supports GNU C++... yes
checking whether powerpc64-unknown-linux-gnu-g++ accepts -g... yes
checking for powerpc64-unknown-linux-gnu-g++ option to enable C++11 features... none needed
checking dependency style of powerpc64-unknown-linux-gnu-g++... none
checking for powerpc64-unknown-linux-gnu-ranlib... powerpc64-unknown-linux-gnu-ranlib
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... not found
configure: WARNING: required lex library not found; giving up on flex
checking for powerpc64-unknown-linux-gnu-ar... powerpc64-unknown-linux-gnu-ar
checking the archiver (powerpc64-unknown-linux-gnu-ar) interface... ar
checking for powerpc64-unknown-linux-gnu-readelf... powerpc64-unknown-linux-gnu-readelf
checking for powerpc64-unknown-linux-gnu-nm... powerpc64-unknown-linux-gnu-nm
checking whether gcc supports __attribute__((visibility()))... yes
checking whether gcc supports __attribute__((gcc_struct))... yes
checking whether gcc supports -fPIC... yes
checking whether gcc supports -fPIE... yes
checking whether gcc supports -Wl,-z,defs... yes
checking whether the compiler generates build-ids... no
configure: WARNING: compiler doesn't generate build-id by default
checking whether gcc supports -Wl,-z,relro... yes
checking for __thread support... yes
checking whether gcc provides stdatomic.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether fts.h is bad when included (with LFS)... no
checking whether to add -D_FORTIFY_SOURCE=2 or =3 to CFLAGS... yes -D_FORTIFY_SOURCE=2
checking for library containing gzdirect... -lz
checking for library containing BZ2_bzdopen... -lbz2
checking for powerpc64-unknown-linux-gnu-gcc options needed to detect all undeclared functions... none needed
checking whether memrchr is declared... yes
checking whether rawmemchr is declared... yes
checking whether powerof2 is declared... yes
checking whether mempcpy is declared... yes
checking whether reallocarray is declared... yes
checking for process_vm_readv... yes
checking for mremap... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for error.h... yes
checking for err.h... yes
checking whether strerror_r is declared... yes
checking whether strerror_r returns char *... yes
checking for __cxa_demangle in -lstdc++... yes
checking whether symbol versioning is supported... yes
checking whether gcc accepts -Wstack-usage... yes
checking whether gcc has a sane -Wlogical-op... yes
checking whether gcc accepts -Wduplicated-cond... yes
checking whether gcc accepts -Wnull-dereference... yes
checking whether gcc accepts -Wimplicit-fallthrough... yes
checking whether the compiler accepts -Wimplicit-fallthrough=5... yes
checking whether the compiler accepts -Wtrampolines... yes
checking whether the compiler accepts -Wno-packed-not-aligned... yes
checking for library containing argp_parse... none required
checking for library containing fts_close... none required
checking for library containing _obstack_free... none required
checking for a sed that does not truncate output... /bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by powerpc64-unknown-linux-gnu-gcc... /usr/powerpc64-unknown-linux-gnu/bin/ld
checking if the linker (/usr/powerpc64-unknown-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking how to run the C preprocessor... powerpc64-unknown-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking size of long... 8
checking for struct user_regs_struct... no
checking powerpc64-unknown-linux-gnu-gcc option for 32-bit word size... -m32
checking for 64-bit host... yes
checking whether powerpc64-unknown-linux-gnu-gcc -m32 makes executables we can run... no
configure: WARNING: not running biarch tests, powerpc64-unknown-linux-gnu-gcc -m32 does not work
checking for bunzip2... yes
checking for zstd... yes
checking for pthread_setname_np in -lpthread... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating config/Makefile
config.status: creating Makefile
config.status: creating elfutils.spec
config.status: creating debuginfod/Makefile
config.status: creating debuginfod/debuginfod.h
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating libelf/Makefile
config.status: creating libebl/Makefile
config.status: creating libdwelf/Makefile
config.status: creating libdw/Makefile
config.status: creating libdwfl/Makefile
config.status: creating libcpu/Makefile
config.status: creating libasm/Makefile
config.status: creating backends/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating tests/Makefile
config.status: creating config/libelf.pc
config.status: creating config/libdw.pc
config.status: creating config/libdebuginfod.pc
config.status: creating version.h
config.status: creating config/profile.sh
config.status: creating config/profile.csh
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
=====================================================================
        elfutils: 0.188 (eu_version: 188)
=====================================================================

    Prefix                             : /usr
    Program prefix ("eu-" recommended) : eu-
    Source code location               : /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188
    Maintainer mode                    :
    build arch                         : powerpc64-unknown-linux-gnu

    CFLAGS=-D_FORTIFY_SOURCE=2 -O2 -pipe
    CXXFLAGS=-D_FORTIFY_SOURCE=2 -O2 -pipe

  RECOMMENDED FEATURES (should all be yes)
    gzip support                       : yes
    bzip2 support                      : yes
    lzma/xz support                    : no
    zstd support                       : no
    libstdc++ demangle support         : yes
    File textrel check                 : yes
    Symbol versioning                  : yes

  NOT RECOMMENDED FEATURES (should all be no)
    Experimental thread safety         : no
    install elf.h                      : no

  OTHER FEATURES
    Deterministic archives by default  : false
    Native language support            : yes
    Extra Valgrind annotations         : no
    libdebuginfod client support       : no
    Debuginfod server support          : no
    Default DEBUGINFOD_URLS            :

  EXTRA TEST FEATURES (used with make check)
    have bunzip2 installed (required)  : yes
    have zstd installed                : yes
    debug branch prediction            : no
    gprof support                      : no
    gcov support                       : no
    run all tests under valgrind       : no
    gcc undefined behaviour sanitizer  : no
    gcc address sanitizer              : no
    use rpath in tests                 : no
    test biarch                        : no

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188 ...
 * .ppc64: running multilib-minimal_abi_src_compile
make -j2
make --no-print-directory all-recursive
Making all in config
make[2]: Nothing to be done for 'all'.
Making all in lib
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o xasprintf.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/xasprintf.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o xstrdup.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/xstrdup.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o xstrndup.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/xstrndup.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144  -ffunction-sections -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o xmalloc.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/xmalloc.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o next_prime.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/next_prime.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o crc32.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/crc32.c
powerpc64-unknown-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I..  -I. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib -I.. -I/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/../libelf  -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5  -Wunused -Wextra -Wstack-usage=262144   -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -c -o crc32_file.o /var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/crc32_file.c
during GIMPLE pass: vrp
/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/crc32.c: In function 'crc32':
/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188/lib/crc32.c:94:1: internal compiler error: Illegal instruction
   94 | crc32 (uint32_t crc, unsigned char *buf, size_t len)
      | ^~~~~
0x1172bf4b internal_error(char const*, ...)
   ???:0
0x3f9ea3a0ec28 __gmpn_invert_limb
   ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
make[2]: *** [Makefile:491: crc32.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:533: all-recursive] Error 1
make: *** [Makefile:449: all] Error 2
 * ERROR: dev-libs/elfutils-0.188::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/elfutils-0.188::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/elfutils-0.188::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/elfutils-0.188/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/elfutils-0.188/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188-.ppc64'
 * S: '/var/tmp/portage/dev-libs/elfutils-0.188/work/elfutils-0.188'


if anyone could be of help i'll be grateful
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Thu Feb 16, 2023 10:21 am    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
exuberantmonkey
n00b
n00b


Joined: 09 Apr 2023
Posts: 19

PostPosted: Thu May 18, 2023 11:26 pm    Post subject: Reply with quote

I ran into the same problem last week. You probably added "-march=native" in the CFLAGS and CXXFLAGS. Those instructions seem to be copy/pasted from the handbooks for other architectures like amd64. The gcc compiler does not support this option for ppc64 and so the build fails. Once I removed that, builds executed fine.

However, there are other problems too. See my reply to this post: https://forums.gentoo.org/viewtopic-t-1156522.html

Good news is, a 6.1 kernel will still build and boot on powermac g5, once you get it right.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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