From owner-freebsd-bugs@freebsd.org Fri Nov 24 18:02:13 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47A38DED4D4 for ; Fri, 24 Nov 2017 18:02:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35B6A7E25D for ; Fri, 24 Nov 2017 18:02:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAOI2Dck088938 for ; Fri, 24 Nov 2017 18:02:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 223848] mips64 native-xtools build failure Date: Fri, 24 Nov 2017 18:02:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2017 18:02:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223848 Bug ID: 223848 Summary: mips64 native-xtools build failure Product: Base System Version: CURRENT Hardware: mips OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: sbruno@FreeBSD.org CC: bdrewery@FreeBSD.org, bsdimp@FreeBSD.org, emaste@freebsd.org, jhb@FreeBSD.org "Something" isn't right about the gcc build when using the native-xtools target. a Buildworld works fine, but trying to build the native-xtools tar= get for mips64 results in weird header file confusion: "make native-xtools TARGET=3Dmips TARGET_ARCH=3Dmips64" <--- Perhaps this = is wrong? cc -target x86_64-unknown-freebsd12.0 --sysroot=3D/var/tmp/test/home/sbruno/bsd/fbsd_head/amd64.amd64/nxb/mips.mi= ps64/tmp -B/var/tmp/test/home/sbruno/bsd/fbsd_head/amd64.amd64/nxb/mips.mips64/tmp/u= sr/bin -O -pipe -G0 -EB -mabi=3D64 -msoft-fl oat -DGCCVER=3D\"4.2\" -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=3D\"/usr\" -DMIPS_ABI_DEFAULT=3DABI_64 -I/var/tmp/test/home/sbruno/bsd/fbsd_head/amd64.amd64/nxb/mips.mips64/gnu/u= sr.bin/cc/cc_int/../cc_tools -I/home/sbruno/bsd/fbsd_head/gnu/usr.bin/cc /cc_int/../cc_tools -I/home/sbruno/bsd/fbsd_head/contrib/gcc -I/home/sbruno/bsd/fbsd_head/contrib/gcc/config -I/home/sbruno/bsd/fbsd_head/contrib/gcclibs/include -I/home/sbruno/bsd/fbsd_head/contrib/gcclibs/libcpp/include -I/home/sbruno/b sd/fbsd_head/contrib/gcclibs/libdecnumber -MD -MF.depend.mips.o -MTmips.o -std=3Dgnu89 -Qunused-arguments -c /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c -o mips.o /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:301:49: warning: declaration of 'struct mips_cpu_info' will not be visible outside of this function [-Wvisibility] static void mips_set_architecture (const struct mips_cpu_info *); ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:302:41: warning: declaration of 'struct mips_cpu_info' will not be visible outside of this function [-Wvisibility] static void mips_set_tune (const struct mips_cpu_info *); ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:436:8: error: redefinition of 'machine_function' struct machine_function GTY(()) { ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/i386/i386.h:2276:8: note: previous definition is here struct machine_function GTY(()) ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:512:25: error: fi= eld has incomplete type 'enum mips_symbol_type' enum mips_symbol_type symbol_type; ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:269:13: note: for= ward declaration of 'enum mips_symbol_type' static enum mips_symbol_type mips_classify_symbol (rtx); ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:595:16: error: us= e of undeclared identifier 'ABI_64' int mips_abi =3D MIPS_ABI_DEFAULT; ^ :5:26: note: expanded from here #define MIPS_ABI_DEFAULT ABI_64 ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:632:19: error: us= e of undeclared identifier 'NUM_SYMBOL_TYPES' bool mips_split_p[NUM_SYMBOL_TYPES]; ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:637:35: error: us= e of undeclared identifier 'NUM_SYMBOL_TYPES' static const char *mips_lo_relocs[NUM_SYMBOL_TYPES]; ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:640:35: error: us= e of undeclared identifier 'NUM_SYMBOL_TYPES' static const char *mips_hi_relocs[NUM_SYMBOL_TYPES]; ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:645:3: error: use= of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, M16_NA_REGS, V1_REG, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:645:13: error: us= e of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, M16_NA_REGS, V1_REG, home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:645:23: error: use= of undeclared identifier 'M16_NA_REGS' LEA_REGS, LEA_REGS, M16_NA_REGS, V1_REG, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:645:36: error: us= e of undeclared identifier 'V1_REG' LEA_REGS, LEA_REGS, M16_NA_REGS, V1_REG, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:646:3: error: use= of undeclared identifier 'M16_REGS'; did you mean 'MMX_REGS'? M16_REGS, M16_REGS, M16_REGS, M16_REGS, ^~~~~~~~ MMX_REGS /home/sbruno/bsd/fbsd_head/contrib/gcc/config/i386/i386.h:1121:3: note: 'MMX_REGS' declared here MMX_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:646:13: error: us= e of undeclared identifier 'M16_REGS'; did you mean 'MMX_REGS'? M16_REGS, M16_REGS, M16_REGS, M16_REGS, ^~~~~~~~ MMX_REGS /home/sbruno/bsd/fbsd_head/contrib/gcc/config/i386/i386.h:1121:3: note: 'MMX_REGS' declared here MMX_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:646:23: error: us= e of undeclared identifier 'M16_REGS'; did you mean 'MMX_REGS'? M16_REGS, M16_REGS, M16_REGS, M16_REGS, ^~~~~~~~ MMX_REGS /home/sbruno/bsd/fbsd_head/contrib/gcc/config/i386/i386.h:1121:3: note: 'MMX_REGS' declared here MMX_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:646:33: error: us= e of undeclared identifier 'M16_REGS'; did you mean 'MMX_REGS'? M16_REGS, M16_REGS, M16_REGS, M16_REGS, ^~~~~~~~ MMX_REGS /home/sbruno/bsd/fbsd_head/contrib/gcc/config/i386/i386.h:1121:3: note: 'MMX_REGS' declared here MMX_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:647:3: error: use= of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, LEA_REGS, LEA_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:647:13: error: us= e of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, LEA_REGS, LEA_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:647:23: error: us= e of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, LEA_REGS, LEA_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:647:33: error: us= e of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, LEA_REGS, LEA_REGS, ^ /home/sbruno/bsd/fbsd_head/contrib/gcc/config/mips/mips.c:648:3: error: use= of undeclared identifier 'LEA_REGS' LEA_REGS, LEA_REGS, LEA_REGS, LEA_REGS, --=20 You are receiving this mail because: You are the assignee for the bug.=