[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Building (cross-compiling) gcc+gm2 on Debain testing targeting
From: |
Christoph Schlegel |
Subject: |
Re: [Gm2] Building (cross-compiling) gcc+gm2 on Debain testing targeting MinGW |
Date: |
Thu, 6 Mar 2014 14:23:39 +0100 |
On Thu, 06 Mar 2014 11:22:48 +0000
Gaius Mulley <address@hidden> wrote:
> Christoph Schlegel <address@hidden> writes:
>
> > Hi all,
> >
> > now this problem is far from being urgent. But... As I didn't have success
> > in building GM2 on Windows 7 under MinGW/MSYS I tried cross-compiling the
> > combined tarball of gcc+gm2. Here are my results - I'll finish my email
> > above of these as the assembler just continues to cough out 'unknown
> > pseudo-op' errors. What am I doing wrong? I am using the prebuilt
> > cross-compiling environment provided by the Debian repositories.
> >
> > bash ../../gcc-4.7.3/gcc/gm2/tools-src/makeSystem -fpim \
> > ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.def \
> > ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod \
> > -I../../gcc-4.7.3/gcc/gm2/gm2-libs \
> > "./xgm2 -B./stage1/gm2"
> > /home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
> > /tmp/ccR53Ajh.s: Assembler messages:
> > /tmp/ccR53Ajh.s:4: Error: unknown pseudo-op: `.def'
>
> Hi Christoph,
>
> no sure - but the script makeSystem is about to run cc1gm2 to obtain the
> builtins and compile SYSTEM.mod. Could you run this script by hand via:
>
> cd /home/christoph/gm2build/gcc
> bash -x bash ../../gcc-4.7.3/gcc/gm2/tools-src/makeSystem -fpim \
> ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.def \
> ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod \
> -I../../gcc-4.7.3/gcc/gm2/gm2-libs \
> "./xgm2 -B./stage1/gm2" \
> /home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
>
> and then capture the cc1gm2 command line. It might be quite enlightening
> to see the options passed to cc1gm2
>
> and see if they differ from those passed to cc1 (the architectural flags
> rather than language flags)
Hi Gaius,
I executed "bash -x ../../gcc-4.7.3/gcc/gm2/tools-src/makeSystem" instead of
"bash -x bash ../../gcc-4.7.3/gcc/gm2/tools-src/makeSystem" (?) - the former
doesn't work.
This is what I get:
address@hidden:~/gm2build/gcc$ bash -x
../../gcc-4.7.3/gcc/gm2/tools-src/makeSystem -fpim
../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.def
../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod
-I../../gcc-4.7.3/gcc/gm2/gm2-libs "./xgm2 -B./stage1/gm2"
/home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
+ '[' 6 -lt 6 ']'
+ DIALECT=-fpim
+ SYSTEMDEF=../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.def
+ SYSTEMMOD=../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod
+ LIBRARY=-I../../gcc-4.7.3/gcc/gm2/gm2-libs
+ COMPILER='./xgm2 -B./stage1/gm2'
+ OUTPUTFILE=/home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
+ '[' -fpim '!=' -fiso -a -fpim '!=' -fpim ']'
+ rm -f /home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
+ ./xgm2 -B./stage1/gm2 -fpim -I../../gcc-4.7.3/gcc/gm2/gm2-libs -c
-fdump-system-exports ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod
++ cut -f5 '-d '
++ ./xgm2 -B./stage1/gm2 -fpim -I../../gcc-4.7.3/gcc/gm2/gm2-libs -c
-fdump-system-exports ../../gcc-4.7.3/gcc/gm2/gm2-libs/SYSTEM.mod -o /dev/null
+ types='LOC
WORD
BYTE
ADDRESS
INTEGER8
INTEGER16
INTEGER32
INTEGER64
CARDINAL8
CARDINAL16
CARDINAL32
CARDINAL64
WORD16
WORD32
WORD64
BITSET8
BITSET16
BITSET32
REAL32
REAL64
REAL96
REAL128
COMPLEX32
COMPLEX64
COMPLEX96
COMPLEX128'
+ touch /home/christoph/gm2build/gcc/gm2/gm2-libs/SYSTEM.def
+ displayStart
+ sed -e '1,/@SYSTEM_DATATYPES@/!d'
+ sed -e /@SYSTEM_DATATYPES@/d
+ displayExportedTypes
+ n=1
+ c=0
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'LOC, '
+ '[' 0 -eq 4 ']'
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'WORD, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'BYTE, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'ADDRESS, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'INTEGER8, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'INTEGER16, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'INTEGER32, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'INTEGER64, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'CARDINAL8, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'CARDINAL16, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'CARDINAL32, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'CARDINAL64, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'WORD16, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'WORD32, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'WORD64, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'BITSET8, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'BITSET16, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'BITSET32, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'REAL32, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'REAL64, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'REAL96, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'REAL128, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'COMPLEX32, '
+ '[' 2 -eq 4 ']'
++ expr 2 + 1
+ c=3
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'COMPLEX64, '
+ '[' 3 -eq 4 ']'
++ expr 3 + 1
+ c=4
+ for i in '${types}'
+ '[' 0 -eq 1 ']'
+ echo -n 'COMPLEX96, '
+ '[' 4 -eq 4 ']'
+ echo ' '
+ n=1
+ c=0
++ expr 0 + 1
+ c=1
+ for i in '${types}'
+ '[' 1 -eq 1 ']'
+ n=0
+ echo -n ' '
+ echo -n 'COMPLEX128, '
+ '[' 1 -eq 4 ']'
++ expr 1 + 1
+ c=2
+ echo ' '
+ displayMiddle
+ sed -e 1,/@SYSTEM_DATATYPES@/d
+ sed -e '1,/@SYSTEM_TYPES@/!d'
+ sed -e /@SYSTEM_TYPES@/d
+ displayBuiltinTypes
+ for i in '${types}'
+ echo ' LOC ; '
+ for i in '${types}'
+ echo ' WORD ; '
+ for i in '${types}'
+ echo ' BYTE ; '
+ for i in '${types}'
+ echo ' ADDRESS ; '
+ for i in '${types}'
+ echo ' INTEGER8 ; '
+ for i in '${types}'
+ echo ' INTEGER16 ; '
+ for i in '${types}'
+ echo ' INTEGER32 ; '
+ for i in '${types}'
+ echo ' INTEGER64 ; '
+ for i in '${types}'
+ echo ' CARDINAL8 ; '
+ for i in '${types}'
+ echo ' CARDINAL16 ; '
+ for i in '${types}'
+ echo ' CARDINAL32 ; '
+ for i in '${types}'
+ echo ' CARDINAL64 ; '
+ for i in '${types}'
+ echo ' WORD16 ; '
+ for i in '${types}'
+ echo ' WORD32 ; '
+ for i in '${types}'
+ echo ' WORD64 ; '
+ for i in '${types}'
+ echo ' BITSET8 ; '
+ for i in '${types}'
+ echo ' BITSET16 ; '
+ for i in '${types}'
+ echo ' BITSET32 ; '
+ for i in '${types}'
+ echo ' REAL32 ; '
+ for i in '${types}'
+ echo ' REAL64 ; '
+ for i in '${types}'
+ echo ' REAL96 ; '
+ for i in '${types}'
+ echo ' REAL128 ; '
+ for i in '${types}'
+ echo ' COMPLEX32 ; '
+ for i in '${types}'
+ echo ' COMPLEX64 ; '
+ for i in '${types}'
+ echo ' COMPLEX96 ; '
+ for i in '${types}'
+ echo ' COMPLEX128 ; '
+ displayEnd
+ sed -e 1,/@SYSTEM_TYPES@/d
address@hidden:~/gm2build/gcc$
I don't see a call to cc1gm2 anywhere?
Regards,
Christoph