Trouble about building a cross compile gcc toolchain - VxWorks

This is a discussion on Trouble about building a cross compile gcc toolchain - VxWorks ; Hi everybody! I am trying to get a cross-compil chaintool on VxWorks 5.3 for few days. So I am using the following source files under Linux-2.15: binutils-2.11.2.tar.gz gcc-2.95.3.tar.bz2 and no patch. I compil everything with gcc.2.95.3, binutils2.16 and glibc from ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Trouble about building a cross compile gcc toolchain

  1. Trouble about building a cross compile gcc toolchain

    Hi everybody!
    I am trying to get a cross-compil chaintool on VxWorks 5.3 for few
    days. So I am using the following source files under Linux-2.15:
    binutils-2.11.2.tar.gz
    gcc-2.95.3.tar.bz2

    and no patch.


    I compil everything with gcc.2.95.3, binutils2.16 and glibc from my
    linux distribution.

    I have the following tree :

    ~/Experience
    |______Tmp
    | |______binutils
    | | |______Vx
    | |______gcc
    | |_______Vx
    |
    |______Gcc_toolchain_mips
    |
    |______VxSrc


    I am using 2 scripts for configuring programs before making them.

    script-binutils.sh
    ***************
    .../configure --target=mips-wrs-vxworks
    --prefix=/home/vxuser/Experience/Gcc_toolchain_mips
    --exec-prefix=/home/vxuser/Experience/Gcc_toolchain_mips >
    zap_configure.log && make && make install

    ------------->this script works well : no error and programs are build.

    I do :
    [vxuser@myhost]$ cd /home/vxuser/Experience/Tmp/binutils/Vx/
    [vxuser@myhost]$ sh script-binutils.sh


    script-gcc.sh
    ************
    .../configure --target=mips-wrs-vxworks
    --prefix=/home/vxuser/Experience/Gcc_toolchain_mips
    --exec-prefix=/home/vxuser/Experience/Gcc_toolchain_mips
    --with-headers=/home/vxuser/VxSrc/target/h
    --with-libs=/home/vxuser/VxSrc/target/lib --enable-languages=c
    --with-gnu-as --with-gnu-ld > zap_configure.log

    ------------->this script works well : no error

    I do :
    [vxuser@myhost]$ cd /home/vxuser/Experience/Tmp/gcc/Vx/
    [vxuser@myhost]$ sh script-gcc.sh
    [vxuser@myhost]$
    PATH=/home/vxuser/Experience/Gcc_toolchain_mips/bin:$PATH
    [vxuser@myhost]$ make LANGUAGES=c > err_make.Log

    And I read all this lines..... someone can help me to find a way to get
    a cross-compil GCC from x86 to MIPS on vxworks?




    All the lines :
    ************
    mips.o: In function `make_temp_file':
    /home/vxuser/Gcc_cross/Experience_2/Tmp/gcc-2.95.3/Vx/gcc/../../gcc/config/mips/mips.c:5106:
    warning: the use of `mktemp' is dangerous, better use `mkstemp'
    .../libiberty/libiberty.a(choose-temp.o): In function
    `choose_temp_base':
    /home/vxuser/Gcc_cross/Experience_2/Tmp/gcc-2.95.3/Vx/libiberty/../../libiberty/choose-temp.c:138:
    warning: the use of `mktemp' is dangerous, better use `mkstemp'
    .../libiberty/libiberty.a(choose-temp.o): In function
    `choose_temp_base':
    /home/vxuser/Gcc_cross/Experience_2/Tmp/gcc-2.95.3/Vx/libiberty/../../libiberty/choose-temp.c:138:
    warning: the use of `mktemp' is dangerous, better use `mkstemp'
    Applying No_Double_Slash to ./drv/netif/if_med.h
    Fixed: ./drv/netif/if_med.h
    Applying Ioctl_Fix_Ctrl to ./drv/parallel/lptDrv.h
    Applying Ioctl_Fix_Ctrl to ./drv/intrCtl/i82378Ibc.h
    Applying Nested_Comment to ./rpc/rpc.h
    Applying Sun_Auth_Proto to ./rpc/svc.h
    Applying Ultrix_Nested_Cmnt to ./rpc/svc.h
    Fixed: ./rpc/svc.h
    Applying Irix_Struct__File to ./rpc/xdr.h
    Applying Sun_Auth_Proto to ./rpc/xdr.h
    Fixed: ./rpc/xdr.h
    Quoted includes in ./rpc/xdr.h
    Applying Sun_Auth_Proto to ./rpc/auth.h
    Fixed: ./rpc/auth.h


    Applying Sun_Auth_Proto to ./rpc/clnt.h
    Fixed: ./rpc/clnt.h
    Quoted includes in ./rpc/clnt.h
    Applying Cxx_Unready to ./rpc/types.h
    Fixed: ./rpc/types.h
    Quoted includes in ./rpc/types.h
    Applying Irix_Multiline_Cmnt to ./sys/types.h
    Applying Io_Def_Quotes to ./sys/ioctl.h
    Applying Bad_Lval to ./unistd.h
    Applying Rs6000_Param to ./unistd.h
    Applying Machine_Name to ./elf.h
    Fixed: ./elf.h
    Quoted includes in ./elf.h
    Applying Vxworks_Gcc_Problem to ./types/vxTypesBase.h
    Fixed: ./types/vxTypesBase.h
    Applying Machine_Name to ./types/vxCpu.h
    Fixed: ./types/vxCpu.h
    Applying Bad_Lval to ./signal.h
    Applying Bad_Lval to ./dirent.h
    Applying No_Double_Slash to ./stdiostream.h
    Fixed: ./stdiostream.h
    Applying Machine_Name to ./varargs.h
    Applying Undefine_Null to ./vxWorks.h
    Fixed: ./vxWorks.h
    Quoted includes in ./vxWorks.h
    Applying Machine_Name to ./va-mips.h
    Applying Rs6000_Param to ./stdio.h
    Applying Stdio_Va_List to ./stdio.h
    Applying Ultrix_Const to ./stdio.h
    Applying Void_Null to ./stdio.h
    Fixed: ./stdio.h
    Quoted includes in ./stdio.h
    Applying Machine_Name to ./streams/led.h
    Fixed: ./streams/led.h
    Quoted includes in ./streams/led.h
    Applying Io_Def_Quotes to ./streams/micommon.h
    Applying Machine_Name to ./streams/libtli.h
    Fixed: ./streams/libtli.h
    Applying Io_Def_Quotes to ./streams/sockio.h
    Fixed: ./streams/sockio.h
    Applying Machine_Name to ./netinet/ppp/pppd.h
    Fixed: ./netinet/ppp/pppd.h
    Quoted includes in ./netinet/ppp/pppd.h
    Applying Ip_Missing_Semi to ./netinet/ip.h
    Applying Machine_Name to ./netinet/ip.h
    Fixed: ./netinet/ip.h
    Quoted includes in ./netinet/ip.h
    Applying Machine_Name to ./netinet/tcp_var.h
    Fixed: ./netinet/tcp_var.h
    Quoted includes in ./netinet/tcp_var.h
    Applying Machine_Name to ./netinet/tcp.h
    Fixed: ./netinet/tcp.h
    Applying Machine_Name to ./generic.h
    Fixed: ./generic.h
    Applying Math_Gcc_Ifndefs to ./math.h

    Applying Sunos_Matherr_Decl to ./math.h
    Applying Ultrix_Atof_Param to ./math.h
    Fixed: ./math.h
    Quoted includes in ./math.h
    Applying Bad_Lval to ./time.h
    Applying Void_Null to ./time.h
    Applying Vxworks_Needs_Vxtypes to ./time.h
    Applying Vxworks_Time to ./time.h
    Fixed: ./time.h
    Quoted includes in ./time.h
    Applying Void_Null to ./locale.h
    Applying No_Double_Slash to ./vxwRngLib.h
    Fixed: ./vxwRngLib.h
    Quoted includes in ./vxwRngLib.h
    Applying Bad_Lval to ./stdlib.h
    Applying Sysz_Stdlib_For_Sun to ./stdlib.h
    Applying Void_Null to ./stdlib.h
    Applying Bad_Lval to ./string.h
    Applying Sysv68_String to ./string.h
    Applying Void_Null to ./string.h
    Applying No_Double_Slash to ./vxwLstLib.h
    Fixed: ./vxwLstLib.h
    Quoted includes in ./vxwLstLib.h
    Applying Limits_Ifndefs to ./limits.h
    Applying Machine_Name to ./private/trigP.h
    Fixed: ./private/trigP.h
    Applying End_Else_Label to ./private/evtBufferLibP.h
    sed: -e expression #1, char 252: Invalid preceding regular expression
    Applying No_Double_Slash to ./private/cplusLibP.h
    Fixed: ./private/cplusLibP.h
    Quoted includes in ./private/cplusLibP.h
    Applying No_Double_Slash to ./regex2.h
    Fixed: ./regex2.h


    In file included from
    /home/vxuser/Gcc_cross/Experience_2/Gcc_tool_chaine_mips/lib/gcc-lib/mips-wrs-vxworks/2.95.3/../../../../mips-wrs-vxworks/sys-include/types/vxANSI.h:44,
    from
    /home/vxuser/Gcc_cross/Experience_2/Gcc_tool_chaine_mips/lib/gcc-lib/mips-wrs-vxworks/2.95.3/../../../../mips-wrs-vxworks/sys-include/stdlib.h:37,
    from ../../gcc/libgcc2.c:41:
    include/types/vxCpu.h:79: warning: `MIPS' redefined
    .../../gcc/config/mips/xm-mips.h:39: warning: this is the location of
    the previous definition
    include/types/vxCpu.h:80: warning: `R3000' redefined
    *Initialization*:1: warning: this is the location of the previous
    definition
    include/types/vxCpu.h:172: #error CPU is not defined correctly
    In file included from
    /home/vxuser/Gcc_cross/Experience_2/Gcc_tool_chaine_mips/lib/gcc-lib/mips-wrs-vxworks/2.95.3/../../../../mips-wrs-vxworks/sys-include/types/vxANSI.h:45,
    from
    /home/vxuser/Gcc_cross/Experience_2/Gcc_tool_chaine_mips/lib/gcc-lib/mips-wrs-vxworks/2.95.3/../../../../mips-wrs-vxworks/sys-include/stdlib.h:37,
    from ../../gcc/libgcc2.c:41:
    include/types/vxArch.h:71: arch/mips/archMips.h: No such file or
    directory
    make[3]: *** [libgcc2.a] Error 1
    make[2]: *** [stmp-multilib-sub] Error 2
    make[1]: *** [stmp-multilib] Error 1
    make: *** [all-gcc] Error 2


    According to me, the files VxCpu.h needs an update, but maybe I am
    wrong?

    Regards


  2. Re: Trouble about building a cross compile gcc toolchain


    Pipo wrote:
    > Hi everybody!
    > I am trying to get a cross-compil chaintool on VxWorks 5.3 for few
    > days. So I am using the following source files under Linux-2.15:
    > binutils-2.11.2.tar.gz
    > gcc-2.95.3.tar.bz2
    >
    > and no patch.


    Try: http://www.lysergic.u-net.com/

    REH


  3. Re: Trouble about building a cross compile gcc toolchain

    Thanks for this website. Unfortunatelly, it doesn't help me to build a
    cross-compile chaintool for MIPS processor...I am still working on. Any
    ideas?

    Regards


    REH a écrit :

    > Pipo wrote:
    > > Hi everybody!
    > > I am trying to get a cross-compil chaintool on VxWorks 5.3 for few
    > > days. So I am using the following source files under Linux-2.15:
    > > binutils-2.11.2.tar.gz
    > > gcc-2.95.3.tar.bz2
    > >
    > > and no patch.

    >
    > Try: http://www.lysergic.u-net.com/
    >
    > REH



  4. Re: Trouble about building a cross compile gcc toolchain

    Pipo wrote:
    > Thanks for this website. Unfortunatelly, it doesn't help me to build a
    > cross-compile chaintool for MIPS processor...I am still working on. Any
    > ideas?
    >
    > Regards


    A number of people have had success with:

    http://kegel.com/crosstool/

    Also, are you starting with source from gnu.org or WindRiver? I
    recommend the latter. You can download the gcc source from the support
    pages (assuming that you have a licence number).

    Cheers.

    >
    > REH a écrit :
    >
    >
    >>Pipo wrote:
    >>
    >>>Hi everybody!
    >>> I am trying to get a cross-compil chaintool on VxWorks 5.3 for few
    >>>days. So I am using the following source files under Linux-2.15:
    >>> binutils-2.11.2.tar.gz
    >>> gcc-2.95.3.tar.bz2
    >>>
    >>>and no patch.

    >>
    >>Try: http://www.lysergic.u-net.com/
    >>
    >>REH

    >
    >
    >


  5. Re: Trouble about building a cross compile gcc toolchain


    Pipo wrote:
    > Thanks for this website. Unfortunatelly, it doesn't help me to build a
    > cross-compile chaintool for MIPS processor...I am still working on. Any
    > ideas?
    >
    > Regards
    >
    >
    > REH a écrit :
    >
    > > Pipo wrote:
    > > > Hi everybody!
    > > > I am trying to get a cross-compil chaintool on VxWorks 5.3 for few
    > > > days. So I am using the following source files under Linux-2.15:
    > > > binutils-2.11.2.tar.gz
    > > > gcc-2.95.3.tar.bz2
    > > >
    > > > and no patch.

    > >
    > > Try: http://www.lysergic.u-net.com/
    > >
    > > REH


    Did you even look at the site? You may be building for a different
    processor, but that should a non-issue. The site may be about building
    for PPC, but it has a lot of info on the issues--and the
    solutions--involved in building GCC for VxWorks. Don't dismiss it so
    quickly, it helped successfully build a cross-compiler.

    If you have already purchased a liscense from WRS, you can download GCC
    from them (with their patches) and build it yourself

    REH


+ Reply to Thread