Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yaboot won't compile, starting to pull my hair out.
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
blackjok3r
n00b
n00b


Joined: 13 Feb 2005
Posts: 16

PostPosted: Sun Jul 23, 2017 3:36 pm    Post subject: Yaboot won't compile, starting to pull my hair out. Reply with quote

Hey everyone.
I have build yaboot once and as far as I know everything is still the same. Now it doesn't work. I didn't realize yaboot cannot boot from ext4 so I made a boot partition of ext2 by splitting the swap into two parts with mac-fdisk. This worked perfectly except when i tried to run yabootconfig to reinstall the bootstrap. The makeofboot or whatever command was gone.

I started again completely by copying my make.conf and kernel .config into the boot partition and formatting the root partition to ext3. I then followed the handbook though and copied these two files back into their respective locations to save typing them out all over again. I'm getting quite lost as there is almost no up to date info for this machine.

600mhz G3 iBook. CPU M750 384MB ram. I have been following http://cmr.cx/ibook/linux/g3/ibook_g3_linux.html but checking the gentoo handbook for things that may have been updated or no longer work such as the CHOST flasgs in there etc. The kernel compiles flawlessly, however I really want to try and boot it to see if it will work. I have spent about 3 days so far in this and got nowhere. I enjoy a challenge but this is getting ridiculous. I have the log files posted below of the output of yaboot emerge command.

I have no idea why it keeps saying two config files require updating. To be noted I had to add "static-libs" and "-ibm" to my make.conf for it to compile the dependencies for yaboot. Im sure the first time, these weren't required.

Please can someone help me. I've wasted so much time on this but I have learnt a lot battling though on my own so far.

Code:

 * Package:    sys-boot/yaboot-1.3.17-r2
 * Repository: gentoo
 * Maintainer: ppc@gentoo.org
 * USE:        abi_ppc_32 elibc_glibc kernel_linux ppc userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking yaboot-1.3.17.tar.gz to /var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work
>>> Source unpacked in /var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work
>>> Preparing source in /var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work/yaboot-1.3.17 ...
 * Applying yabootconfig-1.3.13.patch ...
 [ ok ]
 * Applying chrpfix.patch ...
 [ ok ]
 * Applying yaboot-1.3.17-nopiessp-gcc4.patch ...
 [ ok ]
 * Applying yaboot-stubfuncs.patch ...
 [ ok ]
 * Applying new-ofpath-devspec.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work/yaboot-1.3.17 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work/yaboot-1.3.17 ...
make -j2 PREFIX=/usr MANDIR=share/man CC=powerpc-unknown-linux-gnu-gcc LD=powerpc-unknown-linux-gnu-ld
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -D__ASSEMBLY__  -c -o second/crt0.o second/crt0.S
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/yaboot.o second/yaboot.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -D__ASSEMBLY__  -c -o second/cache.o second/cache.S
second/yaboot.c: In function 'setup_display':
second/yaboot.c:1510:13: warning: variable 'result' set but not used [-Wunused-but-set-variable]
      int i, result;
             ^
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/prom.o second/prom.c
second/yaboot.c: In function 'yaboot_text_ui':
second/yaboot.c:1321:9: warning: 'ph' may be used uninitialized in this function [-Wmaybe-uninitialized]
      if (ph)
         ^
second/yaboot.c:1198:23: note: 'ph' was declared here
      Elf32_Phdr  *p, *ph;
                       ^
second/yaboot.c:1453:9: warning: 'ph' may be used uninitialized in this function [-Wmaybe-uninitialized]
      if (ph)
         ^
second/yaboot.c:1331:23: note: 'ph' was declared here
      Elf64_Phdr  *p, *ph;
                       ^
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/file.o second/file.c
second/file.c: In function 'open_file':
second/file.c:662:28: warning: argument to 'sizeof' in 'memset' call is the same pointer type 'struct boot_file_t *' as the destination; expected 'struct boot_file_t' or an explicit length [-Wsizeof-pointer-memaccess]
      memset(file, 0, sizeof(struct boot_file_t*));
                            ^
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/partition.o second/partition.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs.o second/fs.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/cfg.o second/cfg.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -D__ASSEMBLY__  -c -o second/setjmp.o second/setjmp.S
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/cmdline.o second/cmdline.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_of.o second/fs_of.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_ext2.o second/fs_ext2.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_iso.o second/fs_iso.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_swap.o second/fs_swap.c
second/fs_swap.c: In function 'swap_open':
second/fs_swap.c:90:15: warning: unused variable 'rc' [-Wunused-variable]
           int rc = prom_readblocks(file->of_device, blk, BLKCOUNT, buffer);
               ^
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/iso_util.o second/iso_util.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/nonstd.o lib/nonstd.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/nosys.o lib/nosys.c
lib/nonstd.c: In function 'exit':
lib/nonstd.c:140:1: warning: 'noreturn' function does return
 }
 ^
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -D__ASSEMBLY__  -c -o lib/string.o lib/string.S
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/strtol.o lib/strtol.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/vsprintf.o lib/vsprintf.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/ctype.o lib/ctype.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/malloc.o lib/malloc.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/strstr.o lib/strstr.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o lib/ssp.o lib/ssp.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/md5.o second/md5.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_xfs.o second/fs_xfs.c
powerpc-unknown-linux-gnu-gcc -Os -m32  -fno-stack-protector  -nostdinc -Wall -isystem `powerpc-unknown-linux-gnu-gcc -m32 -print-file-name=include` -fsigned-char -DVERSION="\"1.3.17\"" -DTEXTADDR=0x100000 -DDEBUG=0 -DMALLOCADDR= -DMALLOCSIZE=0x100000 -DKERNELADDR=0x00000000 -Wno-error -fdiagnostics-show-option -I ./include -fno-strict-aliasing -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/fs_reiserfs.o second/fs_reiserfs.c
In file included from ./include/byteorder.h:4:0,
                 from ./include/reiserfs/reiserfs.h:3,
                 from second/fs_reiserfs.c:33:
second/fs_reiserfs.c: In function 'block_read':
./include/swab.h:12:5: warning: operation on '*journal_table' may be undefined [-Wsequence-point]
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
     ^
./include/byteorder.h:8:26: note: in expansion of macro 'swab32'
 # define le32_to_cpu(x)  swab32((x))
                          ^
second/fs_reiserfs.c:221:17: note: in expansion of macro 'le32_to_cpu'
         j_len = le32_to_cpu((*journal_table)++);
                 ^
./include/swab.h:12:5: warning: operation on '*journal_table' may be undefined [-Wsequence-point]
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
     ^
./include/byteorder.h:8:26: note: in expansion of macro 'swab32'
 # define le32_to_cpu(x)  swab32((x))
                          ^
second/fs_reiserfs.c:221:17: note: in expansion of macro 'le32_to_cpu'
         j_len = le32_to_cpu((*journal_table)++);
                 ^
./include/swab.h:12:5: warning: operation on '*journal_table' may be undefined [-Wsequence-point]
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
     ^
./include/byteorder.h:8:26: note: in expansion of macro 'swab32'
 # define le32_to_cpu(x)  swab32((x))
                          ^
second/fs_reiserfs.c:221:17: note: in expansion of macro 'le32_to_cpu'
         j_len = le32_to_cpu((*journal_table)++);
                 ^
second/fs_reiserfs.c:224:38: warning: operation on 'journal_table' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(*journal_table++) == blockNr )
                                      ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:224:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(*journal_table++) == blockNr )
            ^
second/fs_reiserfs.c:224:38: warning: operation on 'journal_table' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(*journal_table++) == blockNr )
                                      ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:224:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(*journal_table++) == blockNr )
            ^
second/fs_reiserfs.c:224:38: warning: operation on 'journal_table' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(*journal_table++) == blockNr )
                                      ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:224:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(*journal_table++) == blockNr )
            ^
second/fs_reiserfs.c:243:42: warning: operation on 'i' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:243:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
            ^
second/fs_reiserfs.c:243:42: warning: operation on 'i' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:243:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
            ^
second/fs_reiserfs.c:243:42: warning: operation on 'i' may be undefined [-Wsequence-point]
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:243:12: note: in expansion of macro 'le32_to_cpu'
       if ( le32_to_cpu(desc.j_realblock[i++]) == blockNr )
            ^
second/fs_reiserfs.c:255:42: warning: operation on 'i' may be undefined [-Wsequence-point]
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:255:10: note: in expansion of macro 'le32_to_cpu'
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
          ^
second/fs_reiserfs.c:255:42: warning: operation on 'i' may be undefined [-Wsequence-point]
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:255:10: note: in expansion of macro 'le32_to_cpu'
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
          ^
second/fs_reiserfs.c:255:42: warning: operation on 'i' may be undefined [-Wsequence-point]
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
                                          ^
./include/swab.h:12:13: note: in definition of macro 'swab32'
   (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) | \
             ^
second/fs_reiserfs.c:255:10: note: in expansion of macro 'le32_to_cpu'
     if ( le32_to_cpu(commit.j_realblock[i++ - JOURNAL_TRANS_HALF]) == blockNr )
          ^
powerpc-unknown-linux-gnu-gcc -Os  -fno-stack-protector  -Wall  -Wno-error -fdiagnostics-show-option -o util/addnote util/addnote.c
ln -sf ybin ybin/mkofboot
powerpc-unknown-linux-gnu-ld -Ttext 0x100000 -Bstatic -melf32ppclinux second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o second/fs_of.o second/fs_ext2.o second/fs_iso.o second/fs_swap.o second/iso_util.o lib/nonstd.o lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o lib/ssp.o second/md5.o second/fs_xfs.o second/fs_reiserfs.o -lext2fs `powerpc-unknown-linux-gnu-gcc -m32 -print-libgcc-file-name` -o second/yaboot
/usr/lib/libext2fs.a(mkjournal.o): In function `ext2fs_add_journal_device':
(.text+0x510): undefined reference to `__xstat'
/usr/lib/libext2fs.a(mkjournal.o): In function `ext2fs_add_journal_inode2':
(.text+0x82c): undefined reference to `__strcat_chk'
/usr/lib/libext2fs.a(mkjournal.o): In function `ext2fs_add_journal_inode2':
(.text+0xb34): undefined reference to `__fxstat'
/usr/lib/libext2fs.a(blkmap64_rb.o): In function `rb_insert_extent':
(.text+0xf44): undefined reference to `abort'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x40): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x70): undefined reference to `fopen'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x8c): undefined reference to `fgets'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x114): undefined reference to `fclose'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x164): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `is_swap_device':
(.text+0x1a4): undefined reference to `fgets'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x238): undefined reference to `setmntent'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x250): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x284): undefined reference to `getmntent'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x2c0): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x310): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x338): undefined reference to `endmntent'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x47c): undefined reference to `__xstat'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x524): undefined reference to `hasmntopt'
/usr/lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
(.text+0x5a8): undefined reference to `unlink'
/usr/lib/libext2fs.a(ismounted.o): In function `ext2fs_check_mount_point':
(.text+0x6ec): undefined reference to `__xstat'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_cache_readahead':
(.text+0x188): undefined reference to `posix_fadvise64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_open_channel':
(.text+0xedc): undefined reference to `setrlimit64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_open_channel':
(.text+0xee8): undefined reference to `getrlimit64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_open_channel':
(.text+0xf10): undefined reference to `setrlimit64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_zeroout':
(.text+0x11a0): undefined reference to `ftruncate64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_zeroout':
(.text+0x120c): undefined reference to `fallocate64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_zeroout':
(.text+0x1268): undefined reference to `fallocate64'
/usr/lib/libext2fs.a(unix_io.o): In function `unix_discard':
(.text+0x144c): undefined reference to `fallocate64'
make: *** [Makefile:112: yaboot] Error 1
 * ERROR: sys-boot/yaboot-1.3.17-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-boot/yaboot-1.3.17-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-boot/yaboot-1.3.17-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-boot/yaboot-1.3.17-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/yaboot-1.3.17-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work/yaboot-1.3.17'
 * S: '/var/tmp/portage/sys-boot/yaboot-1.3.17-r2/work/yaboot-1.3.17'


Code:
Portage 2.3.3 (python 3.4.5-final-0, default/linux/powerpc/ppc32/13.0/desktop, gcc-4.9.4, glibc-2.23-r3, 3.12.21-gentoo-r1-ppc32 ppc)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.21-gentoo-r1-ppc32-ppc-750FX-with-gentoo-2.3
KiB Mem:      382532 total,     84000 free
KiB Swap:    1126396 total,   1062624 free
Timestamp of repository gentoo: Sun, 23 Jul 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::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 -mcpu=750 -pipe -fno-strict-aliasing"
CHOST="powerpc-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 -mcpu=750 -pipe -fno-strict-aliasing"
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://ftp.swin.edu.au/gentoo"
LANG="en_AU.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa apache2 bash-completion berkdb big-endian branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac gdbm gif gimp glamor gpm gtk iconv ieee1394 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mplayer mysql ncurses nls nptl ogg opengl openmp oss pam pango pcre pdf php png policykit ppc ppds qt3support qt4 qt5 radeon readline sdl seccomp session spell ssl startup-notification static-libs svg tcpd tetex tiff truetype udev udisks unicode upower usb utf8 vorbis wma-fixed wxwidgets x264 xattr xcb xml xmms2 xv xvid zlib" ABI_PPC="32" ALSA_CARDS="powermac" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" 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-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" 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



Code:

 * IMPORTANT: 2 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild  N    ] sys-boot/yaboot-1.3.17-r2  USE="(-ibm)"

 * IMPORTANT: 8 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Back to top
View user's profile Send private message
blackjok3r
n00b
n00b


Joined: 13 Feb 2005
Posts: 16

PostPosted: Sun Jul 23, 2017 6:13 pm    Post subject: Reply with quote

I managed to compile and install the yaboot-static instead. It works. But I still have the 'filesystem is corrupt' error.
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sun Jul 23, 2017 8:35 pm    Post subject: Reply with quote

Why did you want to recompile yaboot?
There are utilities to handle
Quote:
IMPORTANT: 2 config files in '/etc/portage' need updating.

blackjok3r wrote:
I didn't realize yaboot cannot boot from ext4

I do not know what that means. Yaboot boots to a boot partition, and it can be ext4.
blackjok3r wrote:
I still have the 'filesystem is corrupt' error.

Where do you have this error? It is nowhere in your output.
It is not clear what you are trying to do.
Back to top
View user's profile Send private message
blackjok3r
n00b
n00b


Joined: 13 Feb 2005
Posts: 16

PostPosted: Mon Jul 24, 2017 4:52 am    Post subject: Reply with quote

Thanks for the reply mate sorry it was like 4am and I had been awake for so long. I am following the handbook to install gentoo-ppc. Disregard my original post as I got that working.

I have the same error as here now: https://forums.gentoo.org/viewtopic-t-929118.html

I had my '/' partition installed on an ext4 partition on /dev/hda4. After installing yaboot as per the handbook using the yabootconfig out of chroot as per the handbook my computer boots to yaboot. However I had the same error as the above thread and it would not load the kernel. I assumed that this was because yaboot could not read etx4 so I split the swap partition into 2. One 50mb /boot partition at /dev/hda3 and a 1.1GB swap partition at /dev/hda4. I then formatted the /dev/hda5 partition to etx3 and started my install again using the boot partition to store my config files to save typing them all out again.

This time when I went to emerge yaboot to install it as per the handbook on this page it would not compile with the above errors. So I used yaboot-static instead and it compiled fine. Also this time yabootconfig gives me an error 'could not find necessary information'. And exits. I made my own yaboot.conf file and ran mkofboot to install yaboot and that ran fine. However now when my computer boots I get on yaboot " Unknown partition or corrupted filesystem" the same as I had on the first try.

If anyone knows how to fix this I will pay them some BTC. I have spent days and days working out how I want my Gentoo system only for it to not even let me boot and its vrey annoing to say the least.

Does anyone have more info on the last post in the top thread where the guy says he made boot partition XFS as I am about to give this a try.?
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