[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778122: patch for gcc5 bug



On Wed, 15 Jul 2015 15:07:24 -0600, Alexander Balderson wrote:

> Here's a fix for the GCC 5 build issue. Added extern to inline functions in
> ppc_fpu.c, ppc_mmu.c, and emul.c

I can confirm that the patch fixes the build failure with GCC 5 but
with it the build with GCC 4.9 fails:

gcc    -Wl,-z,relro -o skyeye skyeye.o ./utils/libutils.a ./arch/arm/libarm.a ./device/libdev.a ./arch/mips/libmips.a ./arch/ppc/libppc.a ./arch/bfin/libbfin.a ./arch/mips/libmips.a ./arch/coldfire/libcoldfire.a   -lm -lc 
./arch/mips/libmips.a(decoder.o): In function `decode':
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1105: undefined reference to `sign_extend_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1079: undefined reference to `sign_extend_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1049: undefined reference to `sign_extend_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1027: undefined reference to `sign_extend_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1013: undefined reference to `sign_extend_UInt32'
./arch/mips/libmips.a(decoder.o):/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:1001: more undefined references to `sign_extend_UInt32' follow
./arch/mips/libmips.a(decoder.o): In function `decode':
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:240: undefined reference to `divide_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:231: undefined reference to `divide_Int32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:94: undefined reference to `sign_extend_UInt32'
/tmp/buildd/skyeye-1.2.5/arch/mips/common/decoder.c:64: undefined reference to `sign_extend_UInt32'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_fpu_test':
ppc_fpu.c:(.text+0xd2): undefined reference to `ppc_fpu_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_faddx':
ppc_fpu.c:(.text+0x434): undefined reference to `ppc_fpu_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_faddsx':
ppc_fpu.c:(.text+0x53e): undefined reference to `ppc_fpu_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fcmpo':
ppc_fpu.c:(.text+0x649): undefined reference to `ppc_fpu_compare'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fcmpu':
ppc_fpu.c:(.text+0x775): undefined reference to `ppc_fpu_compare'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fdivx':
ppc_fpu.c:(.text+0xa1b): undefined reference to `ppc_fpu_div'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fdivsx':
ppc_fpu.c:(.text+0xb5d): undefined reference to `ppc_fpu_div'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmaddx':
ppc_fpu.c:(.text+0xc68): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmaddsx':
ppc_fpu.c:(.text+0xd76): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmsubx':
ppc_fpu.c:(.text+0xee3): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmsubsx':
ppc_fpu.c:(.text+0xff1): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmulx':
ppc_fpu.c:(.text+0x1104): undefined reference to `ppc_fpu_mul'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fmulsx':
ppc_fpu.c:(.text+0x1214): undefined reference to `ppc_fpu_mul'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fnmaddx':
ppc_fpu.c:(.text+0x13e3): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fnmaddsx':
ppc_fpu.c:(.text+0x1500): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fnmsubx':
ppc_fpu.c:(.text+0x1626): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fnmsubsx':
ppc_fpu.c:(.text+0x174c): undefined reference to `ppc_fpu_mul_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_frsqrtex':
ppc_fpu.c:(.text+0x18f0): undefined reference to `ppc_fpu_sqrt'
ppc_fpu.c:(.text+0x192d): undefined reference to `ppc_fpu_div'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fsqrtx':
ppc_fpu.c:(.text+0x1aad): undefined reference to `ppc_fpu_sqrt'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fsubx':
ppc_fpu.c:(.text+0x1c0a): undefined reference to `ppc_fpu_add'
./arch/ppc/libppc.a(ppc_fpu.o): In function `ppc_opc_fsubsx':
ppc_fpu.c:(.text+0x1d25): undefined reference to `ppc_fpu_add'
./arch/ppc/libppc.a(ppc_mmu.o): In function `ppc_opc_lvx':
ppc_mmu.c:(.text+0x4cdf): undefined reference to `ppc_read_effective_qword'
./arch/ppc/libppc.a(ppc_mmu.o): In function `ppc_opc_stvx':
ppc_mmu.c:(.text+0x6b20): undefined reference to `ppc_write_effective_qword'
collect2: error: ld returned 1 exit status


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Featuring The Dubliners, The Fureys And Davey Arthur Etc.: Molly Malone, The Band Of ' Du

Attachment: signature.asc
Description: Digital Signature


Reply to: