Page 4 of 4 FirstFirst ... 234
Results 46 to 51 of 51

Thread: gcc 3.3.4 toolchain and 7.2 kernel build scripts

  1. #46
    Join Date
    Feb 2006
    Posts
    62
    if it had been a snake...

    Found it, thanks. TiVo has changed their download URLs, adding the word "download" to the URL so http://www.tivo.com/linux/72/TiVo-devenv.tar.gz in the script needs to be changed to http://www.tivo.com/linux/download/7...-devenv.tar.gz

    I made the necessary edits to my copy of the script and created the toolchain with no problem.

  2. #47
    Join Date
    Mar 2005
    Posts
    78
    Quote Originally Posted by d0ugmac1 View Post
    Updated the src links...again. Added some patches to insight to cope with the newer GCC compiler versions. You must make sure you have development packages installed for gettext, sunrpc and ncurses. For ncurses, I had to uninstall the pre-baked cygwin versions and compile ncurses-5.7 from scratch to get the curses.h/ncurses.h headers (needed for the gdb tui).

    Works for me from soup to nuts on latest cygwin. Enjoy.
    Just tested this again today on current cygwin installed in a virgin VM (I set cygwin setup.exe to INSTALL everything in the Development, Editors, Libs. Loaded and chmod 755 my script which then ran without error (no more issues with gettext, sunrpc, ncurses). Less than an hour later I had a functional toolchain in /usr/local/mips-tivo.

    See post #41 for the script.

    D.

  3. #48
    Join Date
    Jan 2002
    Location
    Sonoran Desert
    Posts
    2,820
    I'm unable to get gcc to compile in ubuntu 10.04LTS.

    Anybody know how to fix this without mucking with the header files?

    Code:
    gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I../../gcc-3.3.4/gcc -I../../gcc-3.3.4/gcc/. -I../../gcc-3.3.4/gcc/config -I../../gcc-3.3.4/gcc/../include  \
    	-DTARGET_MACHINE=\"mips-TiVo-linux\" \
    	-c ../../gcc-3.3.4/gcc/collect2.c -o collect2.o
    ../../gcc-3.3.4/gcc/collect2.c: In function ‘notice’:
    ../../gcc-3.3.4/gcc/collect2.c:362: warning: traditional C rejects ISO C style function definitions
    ../../gcc-3.3.4/gcc/collect2.c: In function ‘fatal_perror’:
    ../../gcc-3.3.4/gcc/collect2.c:374: warning: traditional C rejects ISO C style function definitions
    ../../gcc-3.3.4/gcc/collect2.c: In function ‘fatal’:
    ../../gcc-3.3.4/gcc/collect2.c:392: warning: traditional C rejects ISO C style function definitions
    ../../gcc-3.3.4/gcc/collect2.c: In function ‘error’:
    ../../gcc-3.3.4/gcc/collect2.c:408: warning: traditional C rejects ISO C style function definitions
    ../../gcc-3.3.4/gcc/collect2.c: In function ‘dump_file’:
    ../../gcc-3.3.4/gcc/collect2.c:515: warning: comparison of unsigned expression < 0 is always false
    In file included from /usr/include/fcntl.h:205,
                     from ../../gcc-3.3.4/gcc/system.h:208,
                     from ../../gcc-3.3.4/gcc/collect2.c:30:
    In function ‘open’,
        inlined from ‘collect_execute’ at ../../gcc-3.3.4/gcc/collect2.c:1575:
    /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    make[1]: *** [collect2.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/home/jjd/tivodev/toolchain/build-gcc/gcc'
    make: *** [all-gcc] Error 2
    **** gcc (stage 1) compile failed
    Just starting to learn C and wanting to play around.
    Before PMing me: I’m not your personal tech support. If you have a question, ask in public so I don't have to repeat if somebody else asks. If you want images or slices, use emule. I will ignore all support PMs.

    Sponsor a vegetarian! I have taken the pledge, how about you?

  4. #49
    Join Date
    Jan 2002
    Location
    Sonoran Desert
    Posts
    2,820
    nvm I sorted it out
    Before PMing me: I’m not your personal tech support. If you have a question, ask in public so I don't have to repeat if somebody else asks. If you want images or slices, use emule. I will ignore all support PMs.

    Sponsor a vegetarian! I have taken the pledge, how about you?

  5. #50
    Join Date
    Feb 2004
    Location
    New York City
    Posts
    576
    Trying to get a cross compiler working on Linux PPC and I keep running into this problem:

    Code:
    [root lzo-2.04]# $PREFIX/bin/$TARGET-gcc -v -o hello1 hello.c
    Reading specs from /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/specs
    Configured with: ../gcc-3.3.4/configure --target=mips-TiVo-linux --prefix=/usr/local/mips-tivo72 --enable-languages=c,c++
    Thread model: posix
    gcc version 3.3.4
     /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 hello.c -quiet -dumpbase hello.c -auxbase hello -version -o /tmp/cch4Yen1.s
    GNU C version 3.3.4 (mips-TiVo-linux)
            compiled by GNU C version 4.1.2 20071124 (Red Hat 4.1.2-42).
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    ignoring nonexistent directory "/usr/local/mips-tivo72/mips-TiVo-linux/sys-include"
    #include "..." search starts here:
    #include <...> search starts here:
     /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/include
     /usr/local/mips-tivo72/mips-TiVo-linux/include
    End of search list.
     /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/../../../../mips-TiVo-linux/bin/as -EB -g0 -32 -v -KPIC -o /tmp/ccoYZBeU.o /tmp/cch4Yen1.s
    GNU assembler version 2.13 (mips-TiVo-linux) using BFD version 2.13
     /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/collect2 --eh-frame-hdr -EB -dynamic-linker /lib/ld.so.1 -o hello1 /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/../../../../mips-TiVo-linux/lib/crt1.o /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/../../../../mips-TiVo-linux/lib/crti.o /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/crtbegin.o -L/usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4 -L/usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/../../../../mips-TiVo-linux/lib /tmp/ccoYZBeU.o -lgcc -lgcc_eh -rpath-link /lib:/usr/lib -lc -lgcc -lgcc_eh /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/crtend.o /usr/local/mips-tivo72/lib/gcc-lib/mips-TiVo-linux/3.3.4/../../../../mips-TiVo-linux/lib/crtn.o
    /usr/local/mips-tivo72/lib/libc.so.6: undefined reference to `_IO_funlockfile'
    /usr/local/mips-tivo72/lib/libc.so.6: undefined reference to `_IO_flockfile'
    /usr/local/mips-tivo72/lib/libc.so.6: undefined reference to `funlockfile'
    /usr/local/mips-tivo72/lib/libc.so.6: undefined reference to `flockfile'
    collect2: ld returned 1 exit status
    I've recompiled glibc and still get the exact same results. Any ideas?

    Edit: I'm not sure why that install didn't work, but I just tried again in a new VM running CentOS 5.5. Everything is working perfectly. I'll save the Linux PPC install problems for another weekend.
    Last edited by Thinkdiff; 01-10-2011 at 01:41 AM.

  6. #51
    Join Date
    Feb 2006
    Posts
    62
    I'm trying to build a toolchain with the latest version of cygwin and it fails:

    Code:
    In file included from ../../gcc-3.3.2/gcc/read-rtl.c:24:0:
    ../../gcc-3.3.2/gcc/rtl.h:132:3: warning: type of bit-field ‘code’ is a GCC extension
    ../../gcc-3.3.2/gcc/rtl.h:135:3: warning: type of bit-field ‘mode’ is a GCC extension
    ../../gcc-3.3.2/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
    ../../gcc-3.3.2/gcc/read-rtl.c:52:1: warning: traditional C rejects ISO C style function definitions
    ../../gcc-3.3.2/gcc/read-rtl.c: In function ‘read_rtx’:
    ../../gcc-3.3.2/gcc/read-rtl.c:653:8: error: lvalue required as increment operand
    Makefile:2316: recipe for target `read-rtl.o' failed
    make[1]: *** [read-rtl.o] Error 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •