public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/45298]  New: GNATMake fails with multiple, equal -mcpu options
@ 2010-08-16 13:42 michael dot gurlitz at gmail dot com
  2010-08-16 13:44 ` [Bug ada/45298] " michael dot gurlitz at gmail dot com
  2010-08-16 14:05 ` michael dot gurlitz at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: michael dot gurlitz at gmail dot com @ 2010-08-16 13:42 UTC (permalink / raw)
  To: gcc-bugs

Passing a -mcpu=xxx option after a regular argument (a filename), when an
equivalent -mcpu=xxx option was specified earlier, causes gnatmake to fail:

$ gnatmake -mcpu=7400 hello -o hello.exe -bargs -mcpu=7400 rtems_init.o
Exception name: SYSTEM.ASSERTIONS.ASSERT_FAILURE
Message: make.adb:7473

gnatmake: INTERNAL ERROR. Please report.

$ powerpc-rtems4.11-gnatmake -mcpu=7400 hello -o hello.exe -bargs -mcpu=7400
rtems_init.o
Exception name: SYSTEM.ASSERTIONS.ASSERT_FAILURE
Message: make.adb:7473

gnatmake: INTERNAL ERROR. Please report.

Removing either -mcpu=7400 option allows for compilation, and the resulting
executable works. I found this bug when compiling an RTEMS sample program which
for some reason specified many arguments twice (-bargs, -D__ppc_generic, etc.).
However, I believe that issue was related to my environment at the time, since
I haven't been able to recreate it.


-- 
           Summary: GNATMake fails with multiple, equal -mcpu options
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot gurlitz at gmail dot com
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10, powerpc-rtems4.11


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/45298] GNATMake fails with multiple, equal -mcpu options
  2010-08-16 13:42 [Bug ada/45298] New: GNATMake fails with multiple, equal -mcpu options michael dot gurlitz at gmail dot com
@ 2010-08-16 13:44 ` michael dot gurlitz at gmail dot com
  2010-08-16 14:05 ` michael dot gurlitz at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: michael dot gurlitz at gmail dot com @ 2010-08-16 13:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from michael dot gurlitz at gmail dot com  2010-08-16 13:44 -------
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/export/home/rtems-4.11/bin/../libexec/gcc/i386-pc-solaris2.10/4.5.1/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: ../gcc-4.5.1/configure --prefix=/opt/rtems-4.11
--enable-threads=posix --enable-shared --disable-nls --with-system-zlib
--with-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld
--enable-languages=c,c++,ada,java --with-ecj-jar=/opt/rtems-4.11/ecj.jar
Thread model: posix
gcc version 4.5.1 (GCC)

$ powerpc-rtems4.11-gcc -v
Using built-in specs.
COLLECT_GCC=powerpc-rtems4.11-gcc
COLLECT_LTO_WRAPPER=/export/home/rtems-4.11/bin/../libexec/gcc/powerpc-rtems4.11/4.5.1/lto-wrapper
Target: powerpc-rtems4.11
Configured with: ../gcc-4.5.1/configure --enable-threads=rtems --with-gnu-as
--with-gnu-ld --enable-multilib --enable-newlib-mb --enable-newlib-iconv
--verbose --with-system-zlib --disable-nls --with-newlib
--target=powerpc-rtems4.11 --enable-version-specific-runtime-libs
--prefix=/opt/rtems-4.11
CFLAGS_FOR_TARGET=-B/opt/rtems-4.11/powerpc-rtems4.11/beatnik/lib/
--enable-languages=ada,c,c++,java
Thread model: rtems
gcc version 4.5.1 (GCC)


-- 

michael dot gurlitz at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael dot gurlitz at gmail
                   |                            |dot com


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/45298] GNATMake fails with multiple, equal -mcpu options
  2010-08-16 13:42 [Bug ada/45298] New: GNATMake fails with multiple, equal -mcpu options michael dot gurlitz at gmail dot com
  2010-08-16 13:44 ` [Bug ada/45298] " michael dot gurlitz at gmail dot com
@ 2010-08-16 14:05 ` michael dot gurlitz at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: michael dot gurlitz at gmail dot com @ 2010-08-16 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from michael dot gurlitz at gmail dot com  2010-08-16 14:05 -------
It seems the command line I specified above may be incorrect, though it does
exhibit the same error.
See here for the full command:
http://www.rtems.com/ml/rtems-users/2010/july/msg00038.html

> powerpc-rtems4.11-gcc --pipe -B/home//b/rtems-testing//install-4.5.0/powerpc-rtems4.11/beatnik/lib/ -specs bsp_specs -qrtems   -mcpu=7400 -D__ppc_generic   -Dbeatnik -I. -mcpu=7400 -D__ppc_generic  -c ../rtems_init.c
> powerpc-rtems4.11-gnatmake -mcpu=7400 -D__ppc_generic  -g -v  \
>            -I/home//b/rtems-testing/install-4.5.0/powerpc-rtems4.11/beatnik//lib/include/adainclude \
>            -O -gnata -gnatE -gnato -g hello -o hello.exe \
>            -bargs -Mgnat_main \
>            -largs -B/home//b/rtems-testing/install-4.5.0/powerpc-rtems4.11/beatnik//lib/ -specs=bsp_specs -qrtems -mcpu=7400 -D__ppc_generic   -Dbeatnik  \
>                rtems_init.o  \
>
> Exception name: SYSTEM.ASSERTIONS.ASSERT_FAILURE
> Message: make.adb:7473
>
> powerpc-rtems4.11-gnatmake: INTERNAL ERROR. Please report.


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-16 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16 13:42 [Bug ada/45298] New: GNATMake fails with multiple, equal -mcpu options michael dot gurlitz at gmail dot com
2010-08-16 13:44 ` [Bug ada/45298] " michael dot gurlitz at gmail dot com
2010-08-16 14:05 ` michael dot gurlitz at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).