[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Compile Error on Freebsd/Powerpc64
From: |
Curtis Hamilton |
Subject: |
Re: [Gm2] Compile Error on Freebsd/Powerpc64 |
Date: |
Tue, 10 Jul 2018 17:19:22 -0400 |
User-agent: |
Mozilla/5.0 (X11; FreeBSD powerpc; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/10/18 09:31, Gaius Mulley wrote:
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,
I've just git pushed a fix (I think to this problem). I wonder if you
could test against your system?
regards,
Gaius
I've rerun with the fix, here's what I got.
libcommon.a ../libcpp/libcpp.a -liconv
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
flex -t ../../gcc-versionno/gcc/gm2/m2.flex | sed -e 's/ malloc/
xmalloc/' | sed -e 's/ realloc/ xrealloc/' > gm2/gm2-compiler/m2flex.c
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GArgs.c -o gm2/mc-boot/GArgs.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GASCII.c -o gm2/mc-boot/GASCII.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GAssertion.c -o gm2/mc-boot/GAssertion.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GBreak.c -o gm2/mc-boot/GBreak.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GCmdArgs.c -o gm2/mc-boot/GCmdArgs.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GDebug.c -o gm2/mc-boot/GDebug.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GDynamicStrings.c -o
gm2/mc-boot/GDynamicStrings.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GEnvironment.c -o
gm2/mc-boot/GEnvironment.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GFIO.c -o gm2/mc-boot/GFIO.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GFormatStrings.c -o
gm2/mc-boot/GFormatStrings.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GFpuIO.c -o gm2/mc-boot/GFpuIO.o
/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/xgcc
-B/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/./prev-gcc/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/bin/
-B/usr/local/powerpc64-unknown-freebsd11.1/lib/ -isystem
/usr/local/powerpc64-unknown-freebsd11.1/include -isystem
/usr/local/powerpc64-unknown-freebsd11.1/sys-include
-I../../gcc-versionno/gcc/gm2/mc-boot-ch -g -c
../../gcc-versionno/gcc/gm2/mc-boot/GIO.c -o gm2/mc-boot/GIO.o
In file included from ../../gcc-versionno/gcc/gm2/mc-boot/GIO.c:23:0:
../../gcc-versionno/gcc/gm2/mc-boot/Glibc.h:54:8: error: unknown type
name 'ssize_t'
EXTERN ssize_t libc_write (int d, void * buf, size_t nbytes);
^~~~~~~
../../gcc-versionno/gcc/gm2/mc-boot/Glibc.h:55:8: error: unknown type
name 'ssize_t'
EXTERN ssize_t libc_read (int d, void * buf, size_t nbytes);
^~~~~~~
gmake[4]: *** [../../gcc-versionno/gcc/gm2/Make-lang.in:1795:
gm2/mc-boot/GIO.o] Error 1
gmake[4]: Leaving directory
'/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/gcc'
cp: stage1/gm2/cc1gm2: No such file or directory
gmake[3]: *** [../../gcc-versionno/gcc/gm2/Make-lang.in:601: cc1gm2] Error 1
gmake[3]: Leaving directory
'/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build/gcc'
gmake[2]: *** [Makefile:4453: all-stage2-gcc] Error 2
gmake[2]: Leaving directory
'/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build'
gmake[1]: *** [Makefile:20356: stage2-bubble] Error 2
gmake[1]: Leaving directory
'/usr/ports/tmp/gcc-6.4.0+gm2-git-latest/gm2/build'
gmake: *** [Makefile:920: all] Error 2
Regards,
Curtis