[Bug d/91666] New: _builtin function no work with GDC

2019-09-04 Thread ray_linn at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91666

Bug ID: 91666
   Summary: _builtin function no work with GDC
   Product: gcc
   Version: 9.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: ray_linn at hotmail dot com
  Target Milestone: ---

when compiling libphobos with MinGW-W64, I got the following errors on thread.d

/bin/sh ../libtool --tag=D   --mode=compile /home/alpha/gcc-build/./gcc/gdc
-B/home/alpha/gcc-build/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib
-L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/
-B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include
-isystem /mingw64/x86_64-w64-mingw32/sys-include -O2 -g  -nostdinc -I
../../../../gcc-9.2.0/libphobos/libdruntime -I . -c -o core/thread.lo
../../../../gcc-9.2.0/libphobos/libdruntime/core/thread.d
libtool: compile:  /home/alpha/gcc-build/./gcc/gdc
-B/home/alpha/gcc-build/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib
-L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/
-B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include
-isystem /mingw64/x86_64-w64-mingw32/sys-include -O2 -g -nostdinc -I
../../../../gcc-9.2.0/libphobos/libdruntime -I . -c
../../../../gcc-9.2.0/libphobos/libdruntime/core/thread.d -o core/thread.o
../../../../gcc-9.2.0/libphobos/libdruntime/core/thread.d:2430:13: error:
undefined identifier '__builtin_unwind_init'
 2430 | __builtin_unwind_init();
  | ^
../../../../gcc-9.2.0/libphobos/libdruntime/core/thread.d:3220:16: error:
undefined identifier '__builtin_frame_address'
 3220 | return __builtin_frame_address(0);
  |^
...

it looks' the built-in function does not work here.

[Bug d/91600] New: "Architecture not supported" reported for MinGW-W64

2019-08-29 Thread ray_linn at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91600

Bug ID: 91600
   Summary: "Architecture not supported" reported for MinGW-W64
   Product: gcc
   Version: 9.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: ray_linn at hotmail dot com
  Target Milestone: ---

I am enabling D with its runtime on MinGW-W64 + Windows 10, the TargetTDM is
patched to enable version (Windows). Now I notice many file in runtime is not
support either version (Windows) or version (MinGW), so it will finally reports
"Architecture not supported" and break.

impact file includes: stdio.d,  assert_.d, thread.d and more will be identified
if continue.


I think it is a good chance to enable the Dlang with MinGW-W64, i hope to
co-work with you to check all gatings.

Thanks a lot

[Bug d/91595] New: Version (Windows) is not defined in GCC D Compiler

2019-08-28 Thread ray_linn at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595

Bug ID: 91595
   Summary: Version (Windows) is not defined in GCC D Compiler
   Product: gcc
   Version: 9.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: ray_linn at hotmail dot com
  Target Milestone: ---

when build Druntime with msys2/mingw-w64 on Windows 10, it looks version
(Windows) is not defined into the compiler.

The trouble appears while building libdruntime

EXAMPLE: libphobos\libdruntime\core\stdc\time.d
error: undefined identifier 'time_t'
error: undefined identifier 'tm'

Manually add

version (GNU) {
alias c_long time_t;
alias c_long clock_t;
}

into time.d then it compiles but it seems weird.

The trouble is that there are many other similar errors
with core\stdc\stddef.d, stdlib.d, stdint.d, etc ...

[Bug bootstrap/81963] ICE in stage 2 compiler while configuring libgcc in stage2, during GIMPLE pass: cfg

2018-07-17 Thread ray_linn at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81963

ray linn  changed:

   What|Removed |Added

 CC||ray_linn at hotmail dot com

--- Comment #1 from ray linn  ---
I also occurred the same error on GCC 8.1.0 with target i686-w64-mingw32 the
Error message is as following:



configure:3458: $? = 1
configure:3474:  /home/alpha/gcc-build/./gcc/xgcc
-B/home/alpha/gcc-build/./gcc/ -L/mingw32/i686-w64-mingw32/lib
-L/mingw32/mingw/lib -isystem /mingw32/i686-w64-mingw32/include -isystem
/mingw32/mingw/include -B/mingw32/i686-w64-mingw32/bin/
-B/mingw32/i686-w64-mingw32/lib/ -isystem /mingw32/i686-w64-mingw32/include
-isystem /mingw32/i686-w64-mingw32/sys-include-o conftest -g -O2  
conftest.c  >&5
during GIMPLE pass: cfg
conftest.c: In function 'main':
conftest.c:11:1: internal compiler error: Segmentation fault
 main ()
 ^~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
configure:3477: $? = 1
configure:3665: checking for suffix of object files
configure:3687:  /home/alpha/gcc-build/./gcc/xgcc
-B/home/alpha/gcc-build/./gcc/ -L/mingw32/i686-w64-mingw32/lib
-L/mingw32/mingw/lib -isystem /mingw32/i686-w64-mingw32/include -isystem
/mingw32/mingw/include -B/mingw32/i686-w64-mingw32/bin/
-B/mingw32/i686-w64-mingw32/lib/ -isystem /mingw32/i686-w64-mingw32/include
-isystem /mingw32/i686-w64-mingw32/sys-include-c -g -O2  conftest.c >&5
during GIMPLE pass: cfg
conftest.c: In function 'main':
conftest.c:11:1: internal compiler error: Segmentation fault
 main ()
 ^~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
configure:3691: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3705: error: in `/home/alpha/gcc-build/i686-w64-mingw32/libgcc':
configure:3708: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

[Bug ada/57040] New: SEH Exception defined is conflicted with SJLJ Eception within several files.

2013-04-22 Thread ray_linn at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57040



 Bug #: 57040

   Summary: SEH Exception defined is conflicted with SJLJ Eception

within several files.

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: major

  Priority: P3

 Component: ada

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: ray_l...@hotmail.com





Today I complied the new GCC 4.8.0 for MinGW-W64, I specified to enable SJLJ

Exception in configure commands, and several error occurs in different

libraries.



files impact: ada/raise-gcc.c , libobjc/exception.c.  



Error Message is as following:



C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:528:1: error: unknown type

n

ame 'EXCEPTION_DISPOSITION'

 EXCEPTION_DISPOSITION

 ^

C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:529:30: error: unknown type

name 'PEXCEPTION_RECORD'

 __gnu_objc_personality_seh0 (PEXCEPTION_RECORD ms_exc, void *this_frame,

  ^

C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:530:9: error: unknown type

n

ame 'PCONTEXT'

 PCONTEXT ms_orig_context,

 ^

C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:531:9: error: unknown type

n

ame 'PDISPATCHER_CONTEXT'

 PDISPATCHER_CONTEXT ms_disp)

 ^

C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:203:30: warning:

'__gnu_objc

_personality_sj0' defined but not used [-Wunused-function]

 #define PERSONALITY_FUNCTION __gnu_objc_personality_sj0

  ^

C:/msys/1.0/home/beta/gcc-4.8.0/libobjc/exception.c:234:1: note: in expansion

of

 macro 'PERSONALITY_FUNCTION'

 PERSONALITY_FUNCTION (int version,





Solution is simple, find out all



 #ifdef __SEH__ 



and repalced it with 



#if defined(__SEH__) && !defined(SJLJ_EXCEPTIONS)



please help to patch.


[Bug target/55445] Always defined __SEH__ when build from trunk

2013-04-22 Thread ray_linn at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55445



ray linn  changed:



   What|Removed |Added



 CC||ray_linn at hotmail dot com



--- Comment #4 from ray linn  2013-04-23 02:49:48 
UTC ---

Please patch the raise-gcc.c too, same error and reason can be found .


[Bug c/53084] New: GCC cannot handle array initialization of string constant with point arithmetic properly

2012-04-23 Thread ray_linn at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53084

 Bug #: 53084
   Summary: GCC cannot handle array initialization of string
constant with point arithmetic properly
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ray_l...@hotmail.com


Consider the following code:

#include 
int main() {
static const char *const aa[] = {"foo"+1};
printf("aa[0] = %s\n",aa[0]);
return 0;
}

 works fine on GCC 4.5.2 and 4.6.1
C:\work>gcc --version
gcc (tdm-1) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\work>gcc a.c -oa.exe

C:\work>a
aa[0] = oo


C:\work>gcc --version
gcc (tdm-1) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\work>gcc a.c -oa.exe

C:\work>a
aa[0] = oo

On GCC 4.7.0, it fails with segmentation fault.

C:\work>gcc --version
gcc (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\work>gcc a.c -oa.exe

C:\work>a

(error dialog)


Please go there to find the original bug threads: 
http://bugs.ruby-lang.org/issues/6333


[Bug ada/49248] New: Cross compile ada failed at finding command gnatmake.

2011-05-31 Thread ray_linn at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49248

   Summary: Cross compile ada failed at finding command gnatmake.
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: ada
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ray_l...@hotmail.com


I am trying use i686-pc-mingw32 (GCC 4.6.0) to compile the target
x86_64-w64-mingw32.

in the 1st loop, I used the following command to compile binutils and GCC.

bintuils:
configure --target=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared
--enable-static --prefix=/mingw32 --with-sysroot=/mingw32 --disable-nls  
--with-gcc --with-gnu-as --with-gnu-ld --with-stabs  --enable-interwork
--enable-multilib 
make && make install

GCC 4.6.0
../gcc-4.6.0/configure --target=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --enable-multilib
--enable-64bit --prefix=/mingw32 --with-sysroot=/mingw32 --disable-shared
--enable-static --enable-version-specific-runtime-libs --with-dwarf2
--enable-fully-dynamic-string --enable-languages=c,ada --disable-libgomp
--enable-libada --enable-gnattools --with-gcc --with-gnu-as --with-gnu-ld
--with-stabs   --enable-interwork --enable-multilib 

and I also compiled the MinGW64 Runtime with multi-lib.


and I succeed got binaries start with x86_64-w64-mingw32 like
x86_64-w64-mingw32-gnatmake under /mingw32/bin.

in the 2nd loop, i tried to compile a pure 64bit binaries, so i run:

binutils:
configure --build=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared
--enable-static --disable-nls --prefix=/tools --with-sysroot=/tools
--host=x86_64-w64-mingw32
make -j 2 CFLAGS="-O3 -fomit-frame-pointer -pipe -m64 -m128bit-long-double
-minline-stringops-dynamically" LDFLAGS="-s -Wl,--as-needed"

I succeed at binutils and mingw64-runtime.

but when I compiled GCC as following command:

$ ../gcc-4.6.0/configure --build=x86_64-w64-mingw32 --enable-targets=all --enab
le-multilib --enable-64bit --prefix=/tools --with-sysroot=/tools --disable-shar
ed --enable-static --disable-nls --enable-version-specific-runtime-libs --disab
le-win32-registry --with-dwarf2 --enable-fully-dynamic-string --enable-language
s=c,c++,ada --disable-libgomp --enable-lto --disable-libssp  --host=x86_64-w64-
mingw32
make -j 2


I got failed at :

x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg -gnata -gnatwns
-
nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada
-I../../gcc-4.6.0/gcc/ada/gcc-i
nterface ../../gcc-4.6.0/gcc/ada/debug.adb -o ada/debug.o
cp -p ../../gcc-4.6.0/gcc/ada/sinfo.ads ../../gcc-4.6.0/gcc/ada/nmake.adt
../../
gcc-4.6.0/gcc/ada/xnmake.adb ../../gcc-4.6.0/gcc/ada/xutil.ads
../../gcc-4.6.0/g
cc/ada/xutil.adb ada/bldtools/nmake_b
x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg -gnata -gnatwns
-
nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada
-I../../gcc-4.6.0/gcc/ada/gcc-i
nterface ../../gcc-4.6.0/gcc/ada/elists.adb -o ada/elists.o
x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg -gnata -gnatwns
-
nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada
-I../../gcc-4.6.0/gcc/ada/gcc-i
nterface ../../gcc-4.6.0/gcc/ada/err_vars.ads -o ada/err_vars.o
(cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb )
(cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest )
x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg -gnata -gnatwns
-
nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada
-I../../gcc-4.6.0/gcc/ada/gcc-i
nterface ../../gcc-4.6.0/gcc/ada/fmap.adb -o ada/fmap.o
x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS  -gnatpg -gnata -gnatwns
-
nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada
-I../../gcc-4.6.0/gcc/ada/gcc-i
nterface ../../gcc-4.6.0/gcc/ada/fname-uf.adb -o ada/fname-uf.o
/bin/sh: gnatmake: command not found
/bin/sh: gnatmake: command not found
/bin/sh: ./xnmake: No such file or directory
/bin/sh: ./xsnamest: No such file or directory
make[2]: *** [ada/nmake.adb] Error 127
make[2]: *** Waiting for unfinished jobs
make[2]: *** [ada/stamp-snames] Error 127
make[2]: Leaving directory `/home/beta/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/beta/gcc-build'
make: *** [all] Error 2


I am not sure why it failed, need your great support.


[Bug ada/48942] New: [gcc-4.6.0] opt.adb compiled error while multilib enabled

2011-05-10 Thread ray_linn at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48942

   Summary: [gcc-4.6.0] opt.adb compiled error while multilib
enabled
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ray_l...@hotmail.com


I am using MinGW (GCC-4.5.2 i686-pc-mingw32) to compiled a 64bit ada from
GCC-4.6.0。 the configure command is as following:

mkdir gcc-build
cd gcc-build
../gcc-4.6.0/configure --target=x86_64-w64-mingw32 --enable-targets=all
--enable-multilib --enable-64bit --prefix=/mingw32 --with-sysroot=/mingw32
--disable-shared --enable-static --enable-version-specific-runtime-libs
--with-dwarf2 --enable-fully-dynamic-string --enable-languages=c,ada
--disable-libgomp --enable-libada

then:

make all-gcc && make install-gcc   sucesss, no problem.

make all-target-libgcc && make install-target-libgcc ---sucess, lib32 and lib64
installed.

make all-target-libada && make install-target-libada --- sucess, lib32 and
lib64 installed

but when i running make all-gnattools , the compile stop with the following
error:

# gnattools1-re
make -C ../gcc/ada/tools -f ../Makefile \
  "CC=gcc" "CFLAGS=-g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes" "LDFLAGS=-Wl,--stack,12582912"
"ADAFLA
GS=-gnatpg -gnata" "ADA_CFLAGS=" "INCLUDES=-I. -I.. -I../..
-I/home/beta/gcc-4.6
.0/gcc/ada -I/home/beta/gcc-4.6.0/gcc/config
-I/home/beta/gcc-4.6.0/gcc/../inclu
de -I/home/beta/gcc-4.6.0/gcc"
"ADA_INCLUDES=-ID:/mingw/lib/gcc/mingw32/4.5.2/ad
alib/../adainclude -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/ -I.
-I/home/beta/gcc
-4.6.0/gcc/ada" "exeext=.exe" "fsrcdir=/home/beta/gcc-4.6.0/gcc"
"srcdir=/home/b
eta/gcc-4.6.0/gcc" "GNATMAKE=gnatmake" "GNATLINK=gnatlink" "GNATBIND=gnatbind"
"
TOOLSCASE=cross" "LIBGNAT=" INCLUDES="" \
  gnatmake-re gnatlink-re
make[2]: Entering directory `/home/beta/gcc-build/gcc/ada/tools'
gnatmake -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib/gc
c/mingw32/4.5.2/adalib/ -I. -I/home/beta/gcc-4.6.0/gcc/ada -u sdefault
--GCC="gc
c "
gnatmake: objects up to date.
gnatmake -c -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib
/gcc/mingw32/4.5.2/adalib/ -I. -I/home/beta/gcc-4.6.0/gcc/ada gnatmake
--GCC="gc
c -g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmis
sing-prototypes  -gnatpg -gnata"
gcc -c -I.\ -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib
/gcc/mingw32/4.5.2/adalib/ -I. -IC:/msys/1.0/home/beta/gcc-4.6.0/gcc/ada -g -O2
-D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prot
otypes -gnatpg -gnata -I- C:\msys\1.0\home\beta\gcc-4.6.0\gcc\ada\opt.adb
opt.ads:120:11: warning: unrecognized pragma "Ordered"
opt.ads:1393:11: warning: unrecognized pragma "Ordered"
gnatmake: "C:\msys\1.0\home\beta\gcc-4.6.0\gcc\ada\opt.adb" compilation error
make[2]: *** [gnatmake-re] Error 4
make[2]: Leaving directory `/home/beta/gcc-build/gcc/ada/tools'
make[1]: *** [gnattools-cross] Error 2
make[1]: Leaving directory `/home/beta/gcc-build/gnattools'
make: *** [all-gnattools] Error 2

I am not familiar with ada, could someone help me to check this problem. 

if any logs is needed just let me know.


[Bug ada/48943] New: [gcc-4.6.0] opt.adb compiled error while multilib enabled

2011-05-10 Thread ray_linn at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48943

   Summary: [gcc-4.6.0] opt.adb compiled error while multilib
enabled
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ray_l...@hotmail.com


I am using MinGW (GCC-4.5.2 i686-pc-mingw32) to compiled a 64bit ada from
GCC-4.6.0。 the configure command is as following:

mkdir gcc-build
cd gcc-build
../gcc-4.6.0/configure --target=x86_64-w64-mingw32 --enable-targets=all
--enable-multilib --enable-64bit --prefix=/mingw32 --with-sysroot=/mingw32
--disable-shared --enable-static --enable-version-specific-runtime-libs
--with-dwarf2 --enable-fully-dynamic-string --enable-languages=c,ada
--disable-libgomp --enable-libada

then:

make all-gcc && make install-gcc   sucesss, no problem.

make all-target-libgcc && make install-target-libgcc ---sucess, lib32 and lib64
installed.

make all-target-libada && make install-target-libada --- sucess, lib32 and
lib64 installed

but when i running make all-gnattools , the compile stop with the following
error:

# gnattools1-re
make -C ../gcc/ada/tools -f ../Makefile \
  "CC=gcc" "CFLAGS=-g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes" "LDFLAGS=-Wl,--stack,12582912"
"ADAFLA
GS=-gnatpg -gnata" "ADA_CFLAGS=" "INCLUDES=-I. -I.. -I../..
-I/home/beta/gcc-4.6
.0/gcc/ada -I/home/beta/gcc-4.6.0/gcc/config
-I/home/beta/gcc-4.6.0/gcc/../inclu
de -I/home/beta/gcc-4.6.0/gcc"
"ADA_INCLUDES=-ID:/mingw/lib/gcc/mingw32/4.5.2/ad
alib/../adainclude -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/ -I.
-I/home/beta/gcc
-4.6.0/gcc/ada" "exeext=.exe" "fsrcdir=/home/beta/gcc-4.6.0/gcc"
"srcdir=/home/b
eta/gcc-4.6.0/gcc" "GNATMAKE=gnatmake" "GNATLINK=gnatlink" "GNATBIND=gnatbind"
"
TOOLSCASE=cross" "LIBGNAT=" INCLUDES="" \
  gnatmake-re gnatlink-re
make[2]: Entering directory `/home/beta/gcc-build/gcc/ada/tools'
gnatmake -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib/gc
c/mingw32/4.5.2/adalib/ -I. -I/home/beta/gcc-4.6.0/gcc/ada -u sdefault
--GCC="gc
c "
gnatmake: objects up to date.
gnatmake -c -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib
/gcc/mingw32/4.5.2/adalib/ -I. -I/home/beta/gcc-4.6.0/gcc/ada gnatmake
--GCC="gc
c -g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmis
sing-prototypes  -gnatpg -gnata"
gcc -c -I.\ -ID:/mingw/lib/gcc/mingw32/4.5.2/adalib/../adainclude
-ID:/mingw/lib
/gcc/mingw32/4.5.2/adalib/ -I. -IC:/msys/1.0/home/beta/gcc-4.6.0/gcc/ada -g -O2
-D__USE_MINGW_ACCESS -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prot
otypes -gnatpg -gnata -I- C:\msys\1.0\home\beta\gcc-4.6.0\gcc\ada\opt.adb
opt.ads:120:11: warning: unrecognized pragma "Ordered"
opt.ads:1393:11: warning: unrecognized pragma "Ordered"
gnatmake: "C:\msys\1.0\home\beta\gcc-4.6.0\gcc\ada\opt.adb" compilation error
make[2]: *** [gnatmake-re] Error 4
make[2]: Leaving directory `/home/beta/gcc-build/gcc/ada/tools'
make[1]: *** [gnattools-cross] Error 2
make[1]: Leaving directory `/home/beta/gcc-build/gnattools'
make: *** [all-gnattools] Error 2

I am not familiar with ada, could someone help me to check this problem. 

if any logs is needed just let me know.


[Bug ada/48942] [gcc-4.6.0] opt.adb compiled error while multilib enabled

2011-05-10 Thread ray_linn at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48942

ray linn  changed:

   What|Removed |Added

Version|unknown |4.6.0
   Severity|normal  |major