From owner-freebsd-mips@freebsd.org Mon Aug 24 00:16:37 2015 Return-Path: Delivered-To: freebsd-mips@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 27EBD9C1EA6 for ; Mon, 24 Aug 2015 00:16:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB15A874; Mon, 24 Aug 2015 00:16:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igcse8 with SMTP id se8so35203927igc.1; Sun, 23 Aug 2015 17:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=8hsUzoWGtQCkZd8c4AFr2I1YJ9q2v2qFhsOE2ESgJ/4=; b=KJXutAbRwEfX5OTwWpMxOW9OpNOKV+kau6Ll42/Yuz4Zt5/1d3Gx1n8yiAr7cQRf0I 7gKYcZ2GQt1gQFbmKq8iLApFC2cEsplgw9kHxOPIyOwXunW36qnDqE5lft8nsM0AK75G CVe6Drm0WrnWqMzZLmKnQ19rJ8yw2OKJQkyxfNP0LFDFmAL5QUFYkxXNv8nW8QJxz18o moWhy1Mwhi9jWWu2H7+OcyiJG0rHGZJeBVLBIdqampb/38Oq2/XNfRCgEE8AfTYhTdRh iVONXZWYmI1mSyVQATsf2QT5v3r9kDdC8Pr7YngKtSlKZcWMwlp1XPBtfZZ9VoaBS68a /Dnw== MIME-Version: 1.0 X-Received: by 10.50.87.74 with SMTP id v10mr13090102igz.37.1440375396197; Sun, 23 Aug 2015 17:16:36 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 23 Aug 2015 17:16:36 -0700 (PDT) Date: Sun, 23 Aug 2015 17:16:36 -0700 X-Google-Sender-Auth: i-GvCT6i4vBK4M_Vc2pYReibb5Q Message-ID: Subject: gcc-5 doesn't compile a freebsd-head mips32 tree From: Adrian Chadd To: "freebsd-mips@freebsd.org" , Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2015 00:16:37 -0000 Hi, Here's what happens when I try compiling with: mips-gcc-5.2.0 Cross GNU Compiler Collection for mips mips-xtoolchain-gcc-0.1 Pre seeded toolchain to cross build FreeBSD base mips64-gcc-5.2.0 Cross GNU Compiler Collection for mips64 mips64-xtoolchain-gcc-0.1 Pre seeded toolchain to cross build FreeBSD base adrian@hulk:~/work/freebsd/head-embedded/src % env MAKEOBJDIRPREFIX=/home/adrian/work/freebsd/head-embedded/obj-test make DB_FROM_SRC=1 TARGET=mips TARGET_ARCH=mips NO_WERROR=1 CROSS_TOOLCHAIN=mips-gcc TARGET_CPUTYPE=mips32 CPUTYPE=mips32 buildworld ... /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp -B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -march=mips32 -msoft-float -I. -I/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c codes.c -o codes.o /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp -B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -march=mips32 -msoft-float -I. -I/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c expanded.c -o expanded.o /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp -B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -march=mips32 -msoft-float -I. -I/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c fallback.c -o fallback.o /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp -B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -march=mips32 -msoft-float -I. -I/home/adrian/work/freebsd/head-embedded/obj-test/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../ncurses -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c lib_gen.c -o lib_gen.o In file included from /usr/home/adrian/work/freebsd/head-embedded/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/curses.priv.h:313:0, from lib_gen.c:19: _35425.c:753:15: error: expected ')' before 'int' ./curses.h:1631:56: note: in definition of macro 'mouse_trafo' #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen) ^ *** Error code 1 .. I'd really appreciate some help on chasing down what's going on. I'm guessing it's some kind of odd macro expansion hilarity with something that is now defined when we use gcc-5. :( Thanks, -a