public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: problem of porting gas
@ 2002-03-27  6:53 David Zhang
  0 siblings, 0 replies; 7+ messages in thread
From: David Zhang @ 2002-03-27  6:53 UTC (permalink / raw)
  To: nickc; +Cc: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 3333 bytes --]

Hi Nick,
    
>In which case are you running 'configure' from the top level of the source 
directory, or from inside the gas subdirectory ?  If the former then you 
probably want to edit the "config.sub" file to add your target.

I do configure in the gas subdirectory.

>If this does not help, perhaps you could send me a (small) copy of the 
command you are running and its output.
---------------------------------------------------------
[root@zl gas]# pwd
/root/binutils-2.11.2/gas
[root@zl gas]# autoconf
[root@zl gas]# automake
automake: Makefile.am: not supported: source file `config/m68k-parse.y' is 
in subdirectory
[root@zl gas]# ./configure --target=mipsx3
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration `mipsx3': machine 
`mipsx3' not recognized

checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC...  -fPIC -DPIC
checking if gcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ./config.cache
configure: error: GAS does not know what format to use for target





_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄ Web µç×ÓÓʼþϵͳ ¡ª¡ª MSN Hotmail¡£
http://www.hotmail.com/cn

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

* Re: problem of porting gas
@ 2002-03-27 19:15 David Zhang
  0 siblings, 0 replies; 7+ messages in thread
From: David Zhang @ 2002-03-27 19:15 UTC (permalink / raw)
  To: drow; +Cc: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 2903 bytes --]


>
>Try using mipsx3-elf or mipsx3-aout.  Does that work?
>
I have also tried it.But it still can't recognize mipsx3.

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

[root@zl gas]# ./configure --target=mipsx3-aout
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration `mipsx3-aout': machine 
`mipsx3' not recognized

checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC...  -fPIC -DPIC
checking if gcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ./config.cache
configure: error: GAS does not know what format to use for target
Best regards
David.Z

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger£º
http://messenger.microsoft.com/cn

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

* Re: problem of porting gas
  2002-03-27  1:09 David zhang
  2002-03-27  1:25 ` Nick Clifton
@ 2002-03-27  7:21 ` Daniel Jacobowitz
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2002-03-27  7:21 UTC (permalink / raw)
  To: David zhang; +Cc: binutils, hp

On Wed, Mar 27, 2002 at 09:09:31AM +0000, David zhang wrote:
> Hi All,
> Probably a silly  question but please excuse me.
>  I have a problem in the procedure of port gas to mipsx3. I have taken the 
> mmix porting as the example.I can't configure the  target to mipsx3 despite 
> I update the configure.in and makefile.am like the following.
> 
>  Can u give me some pointers in this regard ?
> 
> I have added the mipsx3 target in 
>  *Makefile.am 
>  *configure.in,
> 
> created the files
>  * /config/tc-mipsx3.c
>  * /config/tc-mipsx3.h
>  * ../include/opcode/mipsx3.h
>  * ../opcodes/mipsx3-opc.c 
> 
> 
> What's wrong about this following?
> 
> #bash: ./configure --target=mipsx3
> .......
> checking target system type... Invalid configuration `mipsx3': machine 
> `mipsx3' not recognized
> ......
> configure: error: GAS does not know what format to use for target

Try using mipsx3-elf or mipsx3-aout.  Does that work?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: problem of porting gas
  2002-03-27  4:27 David Zhang
@ 2002-03-27  6:40 ` Nick Clifton
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2002-03-27  6:40 UTC (permalink / raw)
  To: David Zhang; +Cc: binutils

Hi David,

> surely. I had run "autoconf" and "automake" before doing "./configure"

In which case are you running 'configure' from the top level of the
source directory, or from inside the gas subdirectory ?  If the former
then you probably want to edit the "config.sub" file to add your
target.

If this does not help, perhaps you could send me a (small) copy of the
command you are running and its output.

Cheers
        Nick

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

* Re: problem of porting gas
@ 2002-03-27  4:27 David Zhang
  2002-03-27  6:40 ` Nick Clifton
  0 siblings, 1 reply; 7+ messages in thread
From: David Zhang @ 2002-03-27  4:27 UTC (permalink / raw)
  To: nickc; +Cc: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1269 bytes --]

Hi Nick,
    
   First thanks for your reply.

>Is the "mipsx3" a MIPS processor variant ?  If so you might want to
>consider starting with the current mips target rather than the mmix.

Yes, MIPSX3 is a MIPS processor variant. But I find the gas MIPS is too 
complicated to integrate the MIPSX3 in it. Although the codes of 
tc-mipsx3.* is originated from tc-mips.*, I think treating MIPSX3 as a new 
processor maybe somewhat easier.

I have rename tc-mipsx3.c/tc-mipsx3.h to tc-mips.c/tc-mips.h in order to 
compile the porting codes. 

bash#./configure --target=mips-big-aout

I got a new "as" that can translate asm codes to binary codes. But it 
generates coff file, what I want is aout. This situation also confused me 
so much.

>Did you run "autoconf" (after changing configure.in) and then
>"automake" (after changing Makefile.am) in the gas source directory ?
>These tools create the "configure" and "Makefile.in" files
>respectively which are what are actually used when configuring gas.

surely. I had run "autoconf" and "automake" before doing "./configure"

Best regards
David.Z

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger£º
http://messenger.microsoft.com/cn

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

* Re: problem of porting gas
  2002-03-27  1:09 David zhang
@ 2002-03-27  1:25 ` Nick Clifton
  2002-03-27  7:21 ` Daniel Jacobowitz
  1 sibling, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2002-03-27  1:25 UTC (permalink / raw)
  To: David zhang; +Cc: binutils, hp

Hi David,

>   I have a problem in the procedure of port gas to mipsx3. I have 
> taken the mmix porting as the example.

Is the "mipsx3" a MIPS processor variant ?  If so you might want to
consider starting with the current mips target rather than the mmix.

> I can't configure the  target to mipsx3 despite I update the
> configure.in and makefile.am like the following.

Did you run "autoconf" (after changing configure.in) and then
"automake" (after changing Makefile.am) in the gas source directory ?
These tools create the "configure" and "Makefile.in" files
respectively which are what are actually used when configuring gas.

Cheers
        Nick

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

* problem of porting gas
@ 2002-03-27  1:09 David zhang
  2002-03-27  1:25 ` Nick Clifton
  2002-03-27  7:21 ` Daniel Jacobowitz
  0 siblings, 2 replies; 7+ messages in thread
From: David zhang @ 2002-03-27  1:09 UTC (permalink / raw)
  To: binutils; +Cc: hp

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 5321 bytes --]

Hi All,
Probably a silly  question but please excuse me.
  I have a problem in the procedure of port gas to mipsx3. I have taken the 
mmix porting as the example.I can't configure the  target to mipsx3 despite 
I update the configure.in and makefile.am like the following.

  Can u give me some pointers in this regard ?

I have added the mipsx3 target in 
  *Makefile.am 
  *configure.in,

created the files
  * /config/tc-mipsx3.c
  * /config/tc-mipsx3.h
  * ../include/opcode/mipsx3.h
  * ../opcodes/mipsx3-opc.c 


What's wrong about this following?

#bash: ./configure --target=mipsx3
.......
checking target system type... Invalid configuration `mipsx3': machine 
`mipsx3' not recognized
......
configure: error: GAS does not know what format to use for target



Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/gas/Makefile.am,v
retrieving revision 1.41
diff -p -c -r1.41 Makefile.am
*** Makefile.am 2001/09/30 15:55:46     1.41
--- Makefile.am 2001/09/30 16:27:53
*************** CPU_TYPES = \
*** 60,65 ****
--- 60,66 ----
        m88k \
        mcore \
        mips \
+       mipsx3 \
        mn10200 \
        mn10300 \
        ns32k \

 # Object format types.  This is only used for dependency information.
 
 OBJ_FORMATS = \
        aout \
@@ -101,7 +102,7 @@
        case $$o in \
        aout) \
          case $$c in \
-         a29k | arm | cris | i386 | m68k | mips | ns32k | sparc | tahoe | 
tic30 | vax) \
+         a29k | arm | cris | i386 | m68k | mips | mipsx3 | ns32k | sparc | 
tahoe | tic30 | vax) \
            valid=yes ;; \
          esac ;; \
        bout) \
*************** TARGET_CPU_CFILES = \
*** 244,249 ****
--- 245,251 ----
        config/tc-m88k.c \
        config/tc-mcore.c \
        config/tc-mips.c \
+       config/tc-mipsx3.c \
        config/tc-mn10200.c \
        config/tc-mn10300.c \
        config/tc-ns32k.c \
*************** TARGET_CPU_HFILES = \
*** 287,292 ****
--- 289,295 ----
        config/tc-m88k.h \
        config/tc-mcore.h \
        config/tc-mips.h \
+       config/tc-mipsx3.h \
        config/tc-mn10200.h \
        config/tc-mn10300.h \
        config/tc-ns32k.h \
*************** DEPTC_mips_elf = $(srcdir)/config/obj-el
*** 1186,1191 ****
--- 1189,1199 ----
    $(INCDIR)/obstack.h $(INCDIR)/safe-ctype.h $(INCDIR)/opcode/mips.h \
    itbl-ops.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h \
    ecoff.h $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
+DEPTC_mipsx3_aout = $(srcdir)/config/obj-aout.h 
$(srcdir)/config/tc-mipsx3.h \
+  $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/obstack.h \
+  $(INCDIR)/opcode/mipsx3.h
  DEPTC_mn10200_coff = $(srcdir)/config/obj-coff.h 
$(srcdir)/config/tc-mn10200.h \
    $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
    $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
*************** DEPOBJ_mips_elf = $(srcdir)/config/obj-e
*** 1577,1582 ****
--- 1585,1594 ----
    subsegs.h $(INCDIR)/obstack.h ecoff.h $(INCDIR)/coff/sym.h \
    $(INCDIR)/coff/ecoff.h $(INCDIR)/elf/mips.h 
$(INCDIR)/elf/reloc-macros.h \
    $(INCDIR)/aout/aout64.h
+DEPOBJ_mipsx3_aout = $(srcdir)/config/obj-aout.h 
$(srcdir)/config/tc-mipsx3.h \
+  $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h \
+  $(INCDIR)/obstack.h
  DEPOBJ_mn10200_coff = $(srcdir)/config/obj-coff.h 
$(srcdir)/config/tc-mn10200.h \
    $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
    $(INCDIR)/obstack.h subsegs.h
*************** DEP_mips_ecoff = $(srcdir)/config/obj-ec
*** 1885,1890 ****
--- 1897,1905 ----
  DEP_mips_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h 
$(INCDIR)/elf/external.h \
    $(INCDIR)/bfdlink.h $(srcdir)/config/tc-mips.h
+DEP_mipsx3_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-mipsx3.h 
\
+  $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
  DEP_mn10200_coff = $(srcdir)/config/obj-coff.h 
$(srcdir)/config/tc-mn10200.h \
    $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
  DEP_mn10200_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.78
diff -p -c -r1.78 configure.in
*** configure.in        2001/09/14 11:46:40     1.78
--- configure.in        2001/09/30 16:28:05
*************** changequote([,])dnl
*** 364,369 ****
--- 364,370 ----
                            AC_DEFINE(MIPS_STABS_ELF, 1,
                                [Use ELF stabs for MIPS, not ECOFF stabs])
                            ;;
+       mipsx3-*-*)           fmt=aout bfd_gas=yes ;;
        mn10200-*-*)        fmt=elf bfd_gas=yes ;;
        mn10300-*-*)        fmt=elf bfd_gas=yes ;;
        openrisc-*-*)       fmt=elf bfd_gas=yes ;;

@@ -479,6 +479,7 @@
       ia64*-*) bfd_gas=yes ;;
       mips-*)  bfd_gas=yes ;;
+      mipsx3-*) bfd_gas=yes ;;
       ns32k-*) bfd_gas=yes ;;
       ppc-*)   bfd_gas=yes ;;
       sparc-*) bfd_gas=yes ;;
       strongarm-*)     bfd_gas=yes ;;


Thanks for Any help
David.Z



_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger£º
http://messenger.microsoft.com/cn

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

end of thread, other threads:[~2002-03-28  3:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27  6:53 problem of porting gas David Zhang
  -- strict thread matches above, loose matches on Subject: below --
2002-03-27 19:15 David Zhang
2002-03-27  4:27 David Zhang
2002-03-27  6:40 ` Nick Clifton
2002-03-27  1:09 David zhang
2002-03-27  1:25 ` Nick Clifton
2002-03-27  7:21 ` Daniel Jacobowitz

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).