This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building a crossgcc for m32r


Hi everybody,

I went through the list, but i can't find an answer.

I'm trying to build a gcc for the m32r (mitsubishi) target, on a win 2k host.

I downloaded the gcc 3.3.1 complete sources.
I'm using :
- cygwin 1.3
- gcc 2.95.3-5
- as 2.11.92
- bash 2.05a.0(3)

My tree is :
gcc-3.3.1-build/
                      /src
                      /lib

I executed the following, in the lib dir:
> bash (starting a bash to execute configure)
> ../src/configure --target=m32r-elf
> exit (to quit bash)
> make


configure finishes ok


not make..
here is the error :

-----------------------------------------

/cygdrive/e/mh/gcc-3.3.1-build/lib/gcc/xgcc -B/cygdrive/e/mh/gcc-3.3.1-build/lib
/gcc/ -B/usr/local/m32r-elf/bin/ -B/usr/local/m32r-elf/lib/ -isystem /usr/local/
m32r-elf/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-pr
ototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../src/gcc -I../.
./src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include \
-DCRT_INIT -finhibit-size-directive -fno-inline-functions \
-g0 -mmodel=medium -c ../../src/gcc/config/m32r/initfini.c -o crtinit.o
../../src/gcc/config/m32r/initfini.c:72: warning: function declaration isn't a p
rototype
../../src/gcc/config/m32r/initfini.c:76: warning: function declaration isn't a p
rototype
../../src/gcc/config/m32r/initfini.c:51: warning: `__CTOR_LIST__' defined but no
t used
../../src/gcc/config/m32r/initfini.c:76: warning: `__do_global_dtors' defined bu
t not used
as: unrecognized option `--no-warn-explicit-parallel-conflicts'
make[1]: *** [crtinit.o] Error 1
make[1]: Leaving directory `/cygdrive/e/mh/gcc-3.3.1-build/lib/gcc'
make: *** [all-gcc] Error 2


------------------------------------------


So 'as' doesn't regonize the option --no-warn-explicit-parallel-conflicts If I remove the option (in a "specs" file), the same command fails. It seems that "as" doesn't assemble for m32r... If I tye "man as", I can read the following :

      The  following options are available when as is configured
      for the Mitsubishi M32R series.

      --m32rx
          Specify which processor in  the  M32R  family  is  the
          target.   The  default  is normally the M32R, but this
          option changes it to the M32RX.

      --warn-explicit-parallel-conflicts or --Wp
          Produce warning messages  when  questionable  parallel
          constructs are encountered.

      --no-warn-explicit-parallel-conflicts or --Wnp
          Do  not  produce  warning  messages  when questionable
          parallel constructs are encountered.


So my "as" knwos this option, but when it "is configured for the Mitsubishi M32R series."
That's my assumption... : "as" is some how not configured for M32R series...


I also tried the following configure :
../src/configure --taget=m32r-elf --with-gnu-as --with-gnu-ld

but the result is the same

any ideas?

thanks in advance

Matthias



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]