gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Compile Error on Freebsd/Powerpc64


From: Gaius Mulley
Subject: Re: [Gm2] Compile Error on Freebsd/Powerpc64
Date: Tue, 10 Jul 2018 11:29:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Curtis Hamilton <address@hidden> writes:

> Attempting to compile the latest version on FreeBSD 11.1/Powerpc64 and
> getting the below errors:
>
> gm2/boot-bin/mc --olang=c++ --h-file-prefix=G -
> I../../gcc-versionno/gcc/gm2/gm2-libs -
> I../../gcc-versionno/gcc/gm2/gm2-compiler -
> I../../gcc-versionno/gcc/gm2/gm2-libiberty -
> I../../gcc-versionno/gcc/gm2/gm2-gcc -o=gm2/gm2-libs-boot/Scan.c .
> ./../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Compiling: ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Pass 1: lexical analysis, modules, root decls and C preprocessor
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.def
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Module SYSTEM : ../../gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.def
> Module M2RTS : ../../gcc-versionno/gcc/gm2/gm2-libs/M2RTS.def
> Module StdIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StdIO.def
> Module ASCII : ../../gcc-versionno/gcc/gm2/gm2-libs/ASCII.def
> Module StrLib : ../../gcc-versionno/gcc/gm2/gm2-libs/StrLib.def
> Module NumberIO : ../../gcc-versionno/gcc/gm2/gm2-libs/NumberIO.def
> Module FIO : ../../gcc-versionno/gcc/gm2/gm2-libs/FIO.def
> Module StrIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StrIO.def
> Module libc : ../../gcc-versionno/gcc/gm2/gm2-libs/libc.def
> Pass 2: [all modules] type equivalence and enumeration types
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.def
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Module SYSTEM : ../../gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.def
> Module M2RTS : ../../gcc-versionno/gcc/gm2/gm2-libs/M2RTS.def
> Module StdIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StdIO.def
> Module ASCII : ../../gcc-versionno/gcc/gm2/gm2-libs/ASCII.def
> Module StrLib : ../../gcc-versionno/gcc/gm2/gm2-libs/StrLib.def
> Module NumberIO : ../../gcc-versionno/gcc/gm2/gm2-libs/NumberIO.def
> Module FIO : ../../gcc-versionno/gcc/gm2/gm2-libs/FIO.def
> Module StrIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StrIO.def
> Module libc : ../../gcc-versionno/gcc/gm2/gm2-libs/libc.def
> Pass 3: [all modules] import lists, types, variables and procedure
> declarations
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.def
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Module SYSTEM : ../../gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.def
> Module M2RTS : ../../gcc-versionno/gcc/gm2/gm2-libs/M2RTS.def
> Module StdIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StdIO.def
> Module ASCII : ../../gcc-versionno/gcc/gm2/gm2-libs/ASCII.def
> Module StrLib : ../../gcc-versionno/gcc/gm2/gm2-libs/StrLib.def
> Module NumberIO : ../../gcc-versionno/gcc/gm2/gm2-libs/NumberIO.def
> Module FIO : ../../gcc-versionno/gcc/gm2/gm2-libs/FIO.def
> Module StrIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StrIO.def
> Module libc : ../../gcc-versionno/gcc/gm2/gm2-libs/libc.def
> Pass 4: [all modules] constant expressions
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.def
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> Module SYSTEM : ../../gcc-versionno/gcc/gm2/gm2-libs/SYSTEM.def
> Module M2RTS : ../../gcc-versionno/gcc/gm2/gm2-libs/M2RTS.def
> Module StdIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StdIO.def
> Module ASCII : ../../gcc-versionno/gcc/gm2/gm2-libs/ASCII.def
> Module StrLib : ../../gcc-versionno/gcc/gm2/gm2-libs/StrLib.def
> Module NumberIO : ../../gcc-versionno/gcc/gm2/gm2-libs/NumberIO.def
> Module FIO : ../../gcc-versionno/gcc/gm2/gm2-libs/FIO.def
> Module StrIO : ../../gcc-versionno/gcc/gm2/gm2-libs/StrIO.def
> Module libc : ../../gcc-versionno/gcc/gm2/gm2-libs/libc.def
> Parse implementation module
> Pass 5: [implementation module] build code tree for all procedures and
> module initialisations
> Module Scan : ../../gcc-versionno/gcc/gm2/gm2-libs/Scan.mod
> walk tree converting it to C/C++
> /usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xg++ -
> B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/ -
> B/usr/local/powerpc64-unknown-freebsd11.1/bin/ -nostdinc++ -
> B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/src/.libs
> -B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/libsupc++/.libs
> -I/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/include/powerpc64-unknown-freebsd11.1
> -I/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/include
> -I/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/gcc-versionno/libstdc++-v3/libsupc++
> -L/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/src/.libs
> -L/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/prev-powerpc64-unknown-freebsd11.1/libstdc++-v3/libsupc++/.libs
> -fno-PIE -c -fpermissive -DIN_GCC -g -O2 -gtoggle -
> I../../gcc-versionno/gcc/gm2 -Igm2 -I. -Igm2/gm2-libs-boot -
> I../../gcc-versionno/gcc/gm2/mc-boot-ch -I. -Igm2/gm2-libs-boot -
> I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2/gm2-libs-boot -
> I../../gcc-versionno/gcc/../include -
> I../../gcc-versionno/gcc/../libcpp/include -I/usr/local/include -
> I../../gcc-versionno/gcc/../libdecnumber -
> I../../gcc-versionno/gcc/../libdecnumber/dpd -I../libdecnumber -
> I../../gcc-versionno/gcc/../libbacktrace gm2/gm2-libs-boot/Scan.c -o
> gm2/gm2-libs-boot/Scan.o
> In file included from gm2/gm2-libs-boot/Glibc.h:16:0,
> from gm2/gm2-libs-boot/Scan.c:20:
> gm2/gm2-libs-boot/Scan.c:33:21: error: expected unqualified-id before
> '-' token
> static unsigned int EOF;
> ^
> gm2/gm2-libs-boot/Scan.c:33:21: error: expected ')' before '-' token
> gm2/gm2-libs-boot/Scan.c: In function 'void Read(char*)':
> gm2/gm2-libs-boot/Scan.c:273:33: error: lvalue required as left
> operand of assignment
> EOF = ! (FIO_IsNoError (f));
> ^
> gm2/gm2-libs-boot/Scan.c: In function 'unsigned int Scan_OpenSource
> (const char*, unsigned int)':
> gm2/gm2-libs-boot/Scan.c:295:41: error: lvalue required as left
> operand of assignment
> EOF = static_cast<unsigned int> (0);
> ^
> gm2/gm2-libs-boot/Scan.c: In function 'void _M2_Scan_init(int,
> char**)':
> gm2/gm2-libs-boot/Scan.c:460:37: error: lvalue required as left
> operand of assignment
> EOF = static_cast<unsigned int> (0);
> ^
> gmake[4]: *** [../../gcc-versionno/gcc/gm2/Make-lang.in:1046:
> gm2/gm2-libs-boot/Scan.o] Error 1
> gmake[4]: Leaving directory
> '/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/gcc'
>
> Regards,
>
> Curtis

Hi Curtis,

many thanks for the bug report - it looks as if the name EOF should be
avoided.  I'll add EOF to the list of words to avoid in mc.

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]