Created attachment 468583 [details] Complete log of mock build I am currently trying to rebuild rawhide for ppc/ppc64. I was able to rebuild gdb (gdb-7.2.50.20101117-1.fc15.src.rpm) on ppc but it fails on ppc64. I am using mock to do the rebuilds and it fails with following error: DEBUG: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I../../bfd -I../../bfd/../include -DHAVE_bfd_elf64_powerpc_vec -DHAVE_bfd_elf64_powerpcle_vec -DHAVE_bfd_elf32_powerpc_vec -DHAVE_bfd_elf32_powerpcle_vec -DHAVE_rs6000coff_vec -DHAVE_rs6000coff64_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/usr/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mminimal-toc -MT elf.lo -MD -MP -MF .deps/elf.Tpo -c ../../bfd/elf.c -o elf.o DEBUG: In file included from ../../bfd/elf64-ppc.c:35:0: DEBUG: ../../bfd/../include/elf/ppc64.h:28:3: error: expected identifier before numeric constant DEBUG: cc1: warnings being treated as errors DEBUG: ../../bfd/elf64-ppc.c:63:0: error: "ELF_ARCH" redefined DEBUG: /usr/include/asm/elf.h:120:0: note: this is the location of the previous definition DEBUG: ../../bfd/elf64-ppc.c:216:54: error: 'R_PPC64_max' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:758:3: error: 'R_PPC64_REL30' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1255:3: error: 'R_PPC64_TLSGD' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1269:3: error: 'R_PPC64_TLSLD' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1878:3: error: 'R_PPC64_JMP_IREL' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1892:3: error: 'R_PPC64_IRELATIVE' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1907:3: error: 'R_PPC64_REL16' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1922:3: error: 'R_PPC64_REL16_LO' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1937:3: error: 'R_PPC64_REL16_HI' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1953:3: error: 'R_PPC64_REL16_HA' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1968:3: error: 'R_PPC64_GNU_VTINHERIT' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c:1983:3: error: 'R_PPC64_GNU_VTENTRY' undeclared here (not in a function) DEBUG: ../../bfd/elf64-ppc.c: In function 'ppc_howto_init': DEBUG: ../../bfd/elf64-ppc.c:2012:7: error: invalid operands to binary / (have 'const struct reloc_howto_struct *' and 'long unsigned int') DEBUG: ../../bfd/elf64-ppc.c:2012:7: error: comparison between pointer and integer DEBUG: ../../bfd/elf64-ppc.c:2014:7: error: assignment of read-only location '<erroneous-expression>[type]' DEBUG: ../../bfd/elf64-ppc.c:2014:7: error: statement with no effect DEBUG: cc1: warnings being treated as errors DEBUG: ../../bfd/elf64-gen.c:94:0: error: "ELF_ARCH" redefined DEBUG: /usr/include/asm/elf.h:120:0: note: this is the location of the previous definition DEBUG: ../../bfd/elf64-ppc.c: In function 'ppc64_elf_reloc_type_lookup': DEBUG: ../../bfd/elf64-ppc.c:2024:7: error: wrong type argument to unary exclamation mark DEBUG: ../../bfd/elf64-ppc.c:2153:35: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2153:33: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2155:35: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2155:33: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2235:34: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2235:32: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2237:36: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2237:34: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2239:36: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2239:34: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2241:37: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2241:35: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2243:39: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2243:37: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2245:37: error: incompatible types when assigning to type 'enum elf_ppc64_reloc_type' from type 'const struct reloc_howto_struct *' DEBUG: ../../bfd/elf64-ppc.c:2245:35: error: statement with no effect DEBUG: ../../bfd/elf64-ppc.c:2249:3: error: incompatible types when returning type 'const struct reloc_howto_struct' but 'const struct reloc_howto_struct *' was expected DEBUG: ../../bfd/elf64-ppc.c: In function 'ppc64_elf_info_to_howto': DEBUG: ../../bfd/elf64-ppc.c:2277:7: error: wrong type argument to unary exclamation mark DEBUG: ../../bfd/elf64-ppc.c:2282:9: error: invalid operands to binary / (have 'const struct reloc_howto_struct *' and 'long unsigned int') DEBUG: ../../bfd/elf64-ppc.c:2281:12: error: comparison between pointer and integer DEBUG: ../../bfd/elf64-ppc.c:2288:20: error: incompatible types when assigning to type 'const struct reloc_howto_struct *' from type 'const struct reloc_howto_struct' DEBUG: ../../bfd/elf64-ppc.c:2288:3: error: statement with no effect DEBUG: make[4]: *** [elf64-gen.lo] Error 1 DEBUG: make[4]: *** Waiting for unfinished jobs.... DEBUG: ../../bfd/elf64-ppc.c: In function 'must_be_dyn_reloc': DEBUG: ../../bfd/elf64-ppc.c:3519:5: error: case value '26' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3520:5: error: case value '44' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3524:5: error: case value '69' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3525:5: error: case value '70' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3526:5: error: case value '71' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3527:5: error: case value '72' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3534:5: error: case value '73' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3528:5: error: case value '95' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3529:5: error: case value '96' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3530:5: error: case value '97' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3531:5: error: case value '98' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3532:5: error: case value '99' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:3533:5: error: case value '100' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c: In function 'ppc64_elf_check_relocs': DEBUG: ../../bfd/elf64-ppc.c:4955:39: error: comparison between pointer and integer DEBUG: ../../bfd/elf64-ppc.c:4956:42: error: comparison between pointer and integer DEBUG: ../../bfd/elf64-ppc.c:5332:2: error: case value '1' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5331:2: error: case value '2' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5321:2: error: case value '3' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5329:2: error: case value '4' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5324:2: error: case value '5' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5323:2: error: case value '6' not in enumerated type 'enum elf_ppc64_reloc_type' DEBUG: ../../bfd/elf64-ppc.c:5318:2: error: case value '7' not in enumerated type 'enum elf_ppc64_reloc_type'
Thanks!