Loading ...
Sorry, an error occurred while loading the content.

Re: [leon_sparc] BCC Toolchain from source

Expand Messages
  • konrad.gaisler
    ... The below errors normally happen if binutils are not compiled correctly and are not in the path. You can try: make -f Makefile.gcc-3.4.4 build-all Or issue
    Message 1 of 12 , Dec 4, 2011
    • 0 Attachment
      On 12/03/2011 06:42 PM, Jigar SOLANKI wrote:
      > Hi all,
      >
      > I'm trying to build bcc from source and I came accross multiple errors
      > which I fixed but I can get over this one.
      >
      > My system is an Ubuntu 11.10
      > uname -a
      > 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686
      > i686 i386 GNU/Linux
      >
      > And of course, after that the script can't find sparc-elf-gcc which I'm
      > trying to build.
      >
      > I am also looking for the exact targets in the Makefile.gcc-3.4.4 which
      > I do not need on a Linux system, such as mingw, building freertos etc..I
      > just need a spac-elf-gcc compiler. What targets can I comment ?
      >
      > Thanks a lot.


      The below errors normally happen if binutils are not compiled correctly
      and are not in the path. You can try:
      make -f Makefile.gcc-3.4.4 build-all
      Or issue the rule-sequence that is listed in Makefile.gcc-3.4.4
      one by one.


      >
      >
      > gcc-3.4.4/gcc -I../../gcc-3.4.4/gcc/../include \
      > -c -o crti.o -x assembler-with-cpp
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S: Assembler messages:
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:1: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:3: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:4: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:5: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:6: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:6: Error: no such
      > instruction: `you can redistribute it and/or modify it'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:7: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:8: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:8: Error: no such
      > instruction: `either version 2,or (at your option)any'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:9: Error: junk at end of
      > line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:10: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:11: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:12: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:13: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:14: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:15: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:16: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:16: Error: no such
      > instruction: `for example,they cover modification of the file,and'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:17: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:18: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:19: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:20: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:20: Error: no such
      > instruction: `without even the implied warranty of'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:21: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:22: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:23: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:24: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:25: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:25: Error: no such
      > instruction: `see the file COPYING. If not,write to'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:26: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:27: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:28: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:29: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:30: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:31: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:32: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:33: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:34: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:36: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:37: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:38: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:40: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:41: Error: junk at end
      > of line, first unrecognized character is `!'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:45: Error: unrecognized
      > symbol type ""
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:49: Error: no such
      > instruction: `save %sp,-96,%sp'
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:57: Error: unrecognized
      > symbol type ""
      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:61: Error: no such
      > instruction: `save %sp,-96,%sp'
      > make[3]: *** [crti.o] Erreur 1
      > make[3]: quittant le répertoire «
      > /home/thorus/work/leon/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc »
      > make[2]: *** [all-gcc] Erreur 2
      > make[2]: quittant le répertoire «
      > /home/thorus/work/leon/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build »
      >
      >
    • Jigar SOLANKI
      ... Thanks a lot for the answer. I issued a : make -f Makefile.gcc-3.4.4 binutils-clean binutils-configure binutils-compile binutils-install no errors, and
      Message 2 of 12 , Dec 4, 2011
      • 0 Attachment
        On 04/12/2011 16:42, konrad.gaisler wrote:
        > On 12/03/2011 06:42 PM, Jigar SOLANKI wrote:
        >> Hi all,
        >>
        >> I'm trying to build bcc from source and I came accross multiple errors
        >> which I fixed but I can get over this one.
        >>
        >> My system is an Ubuntu 11.10
        >> uname -a
        >> 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686
        >> i686 i386 GNU/Linux
        >>
        >> And of course, after that the script can't find sparc-elf-gcc which I'm
        >> trying to build.
        >>
        >> I am also looking for the exact targets in the Makefile.gcc-3.4.4 which
        >> I do not need on a Linux system, such as mingw, building freertos etc..I
        >> just need a spac-elf-gcc compiler. What targets can I comment ?
        >>
        >> Thanks a lot.
        >
        >
        > The below errors normally happen if binutils are not compiled correctly
        > and are not in the path. You can try:
        > make -f Makefile.gcc-3.4.4 build-all
        > Or issue the rule-sequence that is listed in Makefile.gcc-3.4.4
        > one by one.
        >
        Thanks a lot for the answer.

        I issued a :
        make -f Makefile.gcc-3.4.4 binutils-clean binutils-configure
        binutils-compile binutils-install

        no errors,

        and then a:
        make -f Makefile.gcc-3.4.4 gcc-configure gcc-compile gcc-install

        (by the way, what's the difference between gcc-compile and
        gcc-compile-gcc ? )

        and I have a buffer overflow error on sparc-elf-ar :


        sparc-elf-ar rc ./libgcc.a libgcc/./_mulsi3.o libgcc/./_divsi3.o
        libgcc/./_modsi3.o libgcc/./_muldi3.o libgcc/./_negdi2.o
        libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o
        libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o
        libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o
        libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o
        libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o
        libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o
        libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o
        libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o
        libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o
        libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o
        libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o
        libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o
        libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o
        libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o
        libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o
        libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_divdi3.o
        libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o
        libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o
        libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o libgcc/./_mul_sf.o
        libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o libgcc/./_compare_sf.o
        libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o
        libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o
        libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o
        libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_sf_to_tf.o
        libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o
        libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o
        libgcc/./_mul_df.o libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o
        libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o
        libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o
        libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o
        libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o
        libgcc/./_df_to_tf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o
        libgcc/./_usi_to_df.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
        libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o
        libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o
        *** buffer overflow detected ***: sparc-elf-ar terminated
        ======= Backtrace: =========
        /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x401248d5]
        /lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x401236d7]
        /lib/i386-linux-gnu/libc.so.6(+0xe5d35)[0x40122d35]
        /lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0x400a8f91]
        /lib/i386-linux-gnu/libc.so.6(_IO_padn+0xc9)[0x4009cc89]
        /lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x38e4)[0x40080a14]
        /lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0x40122e09]
        /lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0x40122d1f]
        sparc-elf-ar[0x804ebd0]
        sparc-elf-ar[0x8050cfc]
        sparc-elf-ar[0x80585a2]
        sparc-elf-ar[0x804c2ca]
        sparc-elf-ar[0x8049e81]
        /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x40056113]
        sparc-elf-ar[0x804a539]
        ======= Memory map: ========
        08048000-080b5000 r-xp 00000000 08:03 529552
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
        080b5000-080b6000 r--p 0006c000 08:03 529552
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
        080b6000-080b7000 rw-p 0006d000 08:03 529552
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
        080b7000-080bb000 rw-p 00000000 00:00 0
        09ec5000-09fcd000 rw-p 00000000 00:00 0 [heap]
        40000000-4001e000 r-xp 00000000 08:01 1970394
        /lib/i386-linux-gnu/ld-2.13.so
        4001e000-4001f000 r--p 0001d000 08:01 1970394
        /lib/i386-linux-gnu/ld-2.13.so
        4001f000-40020000 rw-p 0001e000 08:01 1970394
        /lib/i386-linux-gnu/ld-2.13.so
        40020000-40021000 r-xp 00000000 00:00 0 [vdso]
        40021000-40023000 rw-p 00000000 00:00 0
        40023000-40024000 r--p 007f0000 08:01 2108171
        /usr/lib/locale/locale-archive
        40024000-4002b000 r--s 00000000 08:01 2244531
        /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
        4003d000-401b3000 r-xp 00000000 08:01 1970397
        /lib/i386-linux-gnu/libc-2.13.so
        401b3000-401b5000 r--p 00176000 08:01 1970397
        /lib/i386-linux-gnu/libc-2.13.so
        401b5000-401b6000 rw-p 00178000 08:01 1970397
        /lib/i386-linux-gnu/libc-2.13.so
        401b6000-401ba000 rw-p 00000000 00:00 0
        401ba000-403ba000 r--p 00000000 08:01 2108171
        /usr/lib/locale/locale-archive
        403d4000-403f0000 r-xp 00000000 08:01 1970393
        /lib/i386-linux-gnu/libgcc_s.so.1
        403f0000-403f1000 r--p 0001b000 08:01 1970393
        /lib/i386-linux-gnu/libgcc_s.so.1
        403f1000-403f2000 rw-p 0001c000 08:01 1970393
        /lib/i386-linux-gnu/libgcc_s.so.1
        bfec2000-bfee5000 rw-p 00000000 00:00 0 [stack]
        make[3]: *** [libgcc.a] Abandon
        make[3]: *** Destruction du fichier « libgcc.a »
        make[3]: quittant le répertoire «
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc
        »
        make[2]: *** [stmp-multilib] Erreur 2
        make[2]: quittant le répertoire «
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc
        »
        make[1]: *** [install-gcc] Erreur 2
        make[1]: quittant le répertoire «
        /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build
      • konrad.gaisler
        ... Maybe you should reinstall your linux. You seem to have a instable setup. By the way, what does the cygdrive mean. Is it cygwin?
        Message 3 of 12 , Dec 4, 2011
        • 0 Attachment
          > (by the way, what's the difference between gcc-compile and
          > gcc-compile-gcc ? )
          >
          > and I have a buffer overflow error on sparc-elf-ar :
          >

          Maybe you should reinstall your linux. You seem to have a instable setup.
          By the way, what does the "cygdrive" mean. Is it cygwin?


          >
          > sparc-elf-ar rc ./libgcc.a libgcc/./_mulsi3.o libgcc/./_divsi3.o
          > libgcc/./_modsi3.o libgcc/./_muldi3.o libgcc/./_negdi2.o
          > libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o
          > libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o
          > libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o
          > libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o
          > libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o
          > libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o
          > libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o
          > libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o
          > libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o
          > libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o
          > libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o
          > libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o
          > libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o
          > libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o
          > libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o
          > libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o
          > libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o
          > libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o
          > libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o
          > libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o
          > libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o
          > libgcc/./_gt_sf.o libgcc/./_ge_sf.o libgcc/./_lt_sf.o
          > libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o
          > libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o
          > libgcc/./_sf_to_df.o libgcc/./_sf_to_tf.o libgcc/./_thenan_sf.o
          > libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o
          > libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o
          > libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o
          > libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o
          > libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o
          > libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o
          > libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o
          > libgcc/./_df_to_tf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o
          > libgcc/./_usi_to_df.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
          > libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o
          > libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o
          > *** buffer overflow detected ***: sparc-elf-ar terminated
          > ======= Backtrace: =========
          > /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x401248d5]
          > /lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x401236d7]
          > /lib/i386-linux-gnu/libc.so.6(+0xe5d35)[0x40122d35]
          > /lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0x400a8f91]
          > /lib/i386-linux-gnu/libc.so.6(_IO_padn+0xc9)[0x4009cc89]
          > /lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x38e4)[0x40080a14]
          > /lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0x40122e09]
          > /lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0x40122d1f]
          > sparc-elf-ar[0x804ebd0]
          > sparc-elf-ar[0x8050cfc]
          > sparc-elf-ar[0x80585a2]
          > sparc-elf-ar[0x804c2ca]
          > sparc-elf-ar[0x8049e81]
          > /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x40056113]
          > sparc-elf-ar[0x804a539]
          > ======= Memory map: ========
          > 08048000-080b5000 r-xp 00000000 08:03 529552
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
          > 080b5000-080b6000 r--p 0006c000 08:03 529552
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
          > 080b6000-080b7000 rw-p 0006d000 08:03 529552
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
          > 080b7000-080bb000 rw-p 00000000 00:00 0
          > 09ec5000-09fcd000 rw-p 00000000 00:00 0 [heap]
          > 40000000-4001e000 r-xp 00000000 08:01 1970394
          > /lib/i386-linux-gnu/ld-2.13.so
          > 4001e000-4001f000 r--p 0001d000 08:01 1970394
          > /lib/i386-linux-gnu/ld-2.13.so
          > 4001f000-40020000 rw-p 0001e000 08:01 1970394
          > /lib/i386-linux-gnu/ld-2.13.so
          > 40020000-40021000 r-xp 00000000 00:00 0 [vdso]
          > 40021000-40023000 rw-p 00000000 00:00 0
          > 40023000-40024000 r--p 007f0000 08:01 2108171
          > /usr/lib/locale/locale-archive
          > 40024000-4002b000 r--s 00000000 08:01 2244531
          > /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
          > 4003d000-401b3000 r-xp 00000000 08:01 1970397
          > /lib/i386-linux-gnu/libc-2.13.so
          > 401b3000-401b5000 r--p 00176000 08:01 1970397
          > /lib/i386-linux-gnu/libc-2.13.so
          > 401b5000-401b6000 rw-p 00178000 08:01 1970397
          > /lib/i386-linux-gnu/libc-2.13.so
          > 401b6000-401ba000 rw-p 00000000 00:00 0
          > 401ba000-403ba000 r--p 00000000 08:01 2108171
          > /usr/lib/locale/locale-archive
          > 403d4000-403f0000 r-xp 00000000 08:01 1970393
          > /lib/i386-linux-gnu/libgcc_s.so.1
          > 403f0000-403f1000 r--p 0001b000 08:01 1970393
          > /lib/i386-linux-gnu/libgcc_s.so.1
          > 403f1000-403f2000 rw-p 0001c000 08:01 1970393
          > /lib/i386-linux-gnu/libgcc_s.so.1
          > bfec2000-bfee5000 rw-p 00000000 00:00 0 [stack]
          > make[3]: *** [libgcc.a] Abandon
          > make[3]: *** Destruction du fichier « libgcc.a »
          > make[3]: quittant le répertoire «
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc
          > »
          > make[2]: *** [stmp-multilib] Erreur 2
          > make[2]: quittant le répertoire «
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc
          > »
          > make[1]: *** [install-gcc] Erreur 2
          > make[1]: quittant le répertoire «
          > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build
          >
          >
        • Jigar SOLANKI
          ... No, I just copied a bcc directory which was before on a cygwin. It s just a PATH. I tried on a fresh new download of bcc sources on the Gaisler website
          Message 4 of 12 , Dec 4, 2011
          • 0 Attachment
            Le 4 déc. 2011 à 17:58, konrad.gaisler a écrit :

            >
            >> (by the way, what's the difference between gcc-compile and gcc-compile-gcc ? )
            >>
            >> and I have a buffer overflow error on sparc-elf-ar :
            >>
            >
            > Maybe you should reinstall your linux. You seem to have a instable setup.
            > By the way, what does the "cygdrive" mean. Is it cygwin?
            >
            No, I just copied a bcc directory which was before on a cygwin. It's just a PATH.
            I tried on a fresh new download of bcc sources on the Gaisler website too, I got the same Bufferoverflow error.
            According to this post, I'm not the only one to have this buffer overflow error :

            http://tech.groups.yahoo.com/group/leon_sparc/message/20177


            >
            >>
            >> sparc-elf-ar rc ./libgcc.a libgcc/./_mulsi3.o libgcc/./_divsi3.o libgcc/./_modsi3.o libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_sf_to_tf.o libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o libgcc/./_df_to_tf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o libgcc/./_usi_to_df.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o
            >> *** buffer overflow detected ***: sparc-elf-ar terminated
            >> ======= Backtrace: =========
            >> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x401248d5]
            >> /lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x401236d7]
            >> /lib/i386-linux-gnu/libc.so.6(+0xe5d35)[0x40122d35]
            >> /lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0x400a8f91]
            >> /lib/i386-linux-gnu/libc.so.6(_IO_padn+0xc9)[0x4009cc89]
            >> /lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x38e4)[0x40080a14]
            >> /lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0x40122e09]
            >> /lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0x40122d1f]
            >> sparc-elf-ar[0x804ebd0]
            >> sparc-elf-ar[0x8050cfc]
            >> sparc-elf-ar[0x80585a2]
            >> sparc-elf-ar[0x804c2ca]
            >> sparc-elf-ar[0x8049e81]
            >> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x40056113]
            >> sparc-elf-ar[0x804a539]
            >> ======= Memory map: ========
            >> 08048000-080b5000 r-xp 00000000 08:03 529552 /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
            >> 080b5000-080b6000 r--p 0006c000 08:03 529552 /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
            >> 080b6000-080b7000 rw-p 0006d000 08:03 529552 /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
            >> 080b7000-080bb000 rw-p 00000000 00:00 0
            >> 09ec5000-09fcd000 rw-p 00000000 00:00 0 [heap]
            >> 40000000-4001e000 r-xp 00000000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
            >> 4001e000-4001f000 r--p 0001d000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
            >> 4001f000-40020000 rw-p 0001e000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
            >> 40020000-40021000 r-xp 00000000 00:00 0 [vdso]
            >> 40021000-40023000 rw-p 00000000 00:00 0
            >> 40023000-40024000 r--p 007f0000 08:01 2108171 /usr/lib/locale/locale-archive
            >> 40024000-4002b000 r--s 00000000 08:01 2244531 /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
            >> 4003d000-401b3000 r-xp 00000000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
            >> 401b3000-401b5000 r--p 00176000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
            >> 401b5000-401b6000 rw-p 00178000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
            >> 401b6000-401ba000 rw-p 00000000 00:00 0
            >> 401ba000-403ba000 r--p 00000000 08:01 2108171 /usr/lib/locale/locale-archive
            >> 403d4000-403f0000 r-xp 00000000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
            >> 403f0000-403f1000 r--p 0001b000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
            >> 403f1000-403f2000 rw-p 0001c000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
            >> bfec2000-bfee5000 rw-p 00000000 00:00 0 [stack]
            >> make[3]: *** [libgcc.a] Abandon
            >> make[3]: *** Destruction du fichier « libgcc.a »
            >> make[3]: quittant le répertoire « /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc »
            >> make[2]: *** [stmp-multilib] Erreur 2
            >> make[2]: quittant le répertoire « /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc »
            >> make[1]: *** [install-gcc] Erreur 2
            >> make[1]: quittant le répertoire « /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build
            >>
            >



            [Non-text portions of this message have been removed]
          • Jiri Gaisler
            ... Buffer overflow is typically an OS/libc/gcc issue. Our build hosts run slackware 12.2, which tends to be more robust that bleeding edge ubuntu or feodora.
            Message 5 of 12 , Dec 4, 2011
            • 0 Attachment
              Jigar SOLANKI wrote:
              >
              >
              >
              > Le 4 déc. 2011 à 17:58, konrad.gaisler a écrit :
              >
              >>
              >>> (by the way, what's the difference between gcc-compile and gcc-compile-gcc ? )
              >>>
              >>> and I have a buffer overflow error on sparc-elf-ar :
              >>>
              >>
              >> Maybe you should reinstall your linux. You seem to have a instable setup.
              >> By the way, what does the "cygdrive" mean. Is it cygwin?
              >>
              > No, I just copied a bcc directory which was before on a cygwin. It's just a PATH.
              > I tried on a fresh new download of bcc sources on the Gaisler website too, I got the same
              > Bufferoverflow error.
              > According to this post, I'm not the only one to have this buffer overflow error :

              Buffer overflow is typically an OS/libc/gcc issue. Our build hosts
              run slackware 12.2, which tends to be more robust that bleeding edge
              ubuntu or feodora. You could install slackware 12.2 in a virtual
              machine and try to build it from there ...

              Jiri.


              >
              > http://tech.groups.yahoo.com/group/leon_sparc/message/20177
              >
              >>
              >>>
              >>> sparc-elf-ar rc ./libgcc.a libgcc/./_mulsi3.o libgcc/./_divsi3.o libgcc/./_modsi3.o
              > libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o
              > libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o
              > libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o
              > libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o
              > libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o
              > libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_enable_execute_stack.o
              > libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o
              > libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o
              > libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o
              > libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o
              > libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o
              > libgcc/./_paritydi2.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o
              > libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o
              > libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o
              > libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o
              > libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o
              > libgcc/./_negate_sf.o libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_sf_to_tf.o
              > libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o
              > libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o libgcc/./_div_df.o
              > libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o
              > libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o libgcc/./_unord_df.o
              > libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o libgcc/./_make_df.o
              > libgcc/./_df_to_sf.o libgcc/./_df_to_tf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o
              > libgcc/./_usi_to_df.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o
              > libgcc/./gthr-gnat.o libgcc/./unwind-c.o libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o
              >>> *** buffer overflow detected ***: sparc-elf-ar terminated
              >>> ======= Backtrace: =========
              >>> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x401248d5]
              >>> /lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x401236d7]
              >>> /lib/i386-linux-gnu/libc.so.6(+0xe5d35)[0x40122d35]
              >>> /lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x91)[0x400a8f91]
              >>> /lib/i386-linux-gnu/libc.so.6(_IO_padn+0xc9)[0x4009cc89]
              >>> /lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x38e4)[0x40080a14]
              >>> /lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0xc9)[0x40122e09]
              >>> /lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x2f)[0x40122d1f]
              >>> sparc-elf-ar[0x804ebd0]
              >>> sparc-elf-ar[0x8050cfc]
              >>> sparc-elf-ar[0x80585a2]
              >>> sparc-elf-ar[0x804c2ca]
              >>> sparc-elf-ar[0x8049e81]
              >>> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x40056113]
              >>> sparc-elf-ar[0x804a539]
              >>> ======= Memory map: ========
              >>> 08048000-080b5000 r-xp 00000000 08:03 529552
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
              >>> 080b5000-080b6000 r--p 0006c000 08:03 529552
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
              >>> 080b6000-080b7000 rw-p 0006d000 08:03 529552
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/toolchains/sparc-elf-3.4.4-1.0.38/bin/sparc-elf-ar
              >>> 080b7000-080bb000 rw-p 00000000 00:00 0
              >>> 09ec5000-09fcd000 rw-p 00000000 00:00 0 [heap]
              >>> 40000000-4001e000 r-xp 00000000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
              >>> 4001e000-4001f000 r--p 0001d000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
              >>> 4001f000-40020000 rw-p 0001e000 08:01 1970394 /lib/i386-linux-gnu/ld-2.13.so
              >>> 40020000-40021000 r-xp 00000000 00:00 0 [vdso]
              >>> 40021000-40023000 rw-p 00000000 00:00 0
              >>> 40023000-40024000 r--p 007f0000 08:01 2108171 /usr/lib/locale/locale-archive
              >>> 40024000-4002b000 r--s 00000000 08:01 2244531 /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
              >>> 4003d000-401b3000 r-xp 00000000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
              >>> 401b3000-401b5000 r--p 00176000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
              >>> 401b5000-401b6000 rw-p 00178000 08:01 1970397 /lib/i386-linux-gnu/libc-2.13.so
              >>> 401b6000-401ba000 rw-p 00000000 00:00 0
              >>> 401ba000-403ba000 r--p 00000000 08:01 2108171 /usr/lib/locale/locale-archive
              >>> 403d4000-403f0000 r-xp 00000000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
              >>> 403f0000-403f1000 r--p 0001b000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
              >>> 403f1000-403f2000 rw-p 0001c000 08:01 1970393 /lib/i386-linux-gnu/libgcc_s.so.1
              >>> bfec2000-bfee5000 rw-p 00000000 00:00 0 [stack]
              >>> make[3]: *** [libgcc.a] Abandon
              >>> make[3]: *** Destruction du fichier « libgcc.a »
              >>> make[3]: quittant le répertoire «
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc »
              >>> make[2]: *** [stmp-multilib] Erreur 2
              >>> make[2]: quittant le répertoire «
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc »
              >>> make[1]: *** [install-gcc] Erreur 2
              >>> make[1]: quittant le répertoire «
              > /home/thorus/work/leon/cygdrive/g/leon3_jigar/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build
              >>>
              >>
              >
              > [Non-text portions of this message have been removed]
              >
              >
            • Jigar SOLANKI
              ... Thanks for the advice Jiri. So, that s why I did ^^ I installed a Slack13 in a VirtualBox vm and now, when make -f Makefile.gcc-3.4.4 gcc-clean
              Message 6 of 12 , Dec 5, 2011
              • 0 Attachment
                > Buffer overflow is typically an OS/libc/gcc issue. Our build hosts
                > run slackware 12.2, which tends to be more robust that bleeding edge
                > ubuntu or feodora. You could install slackware 12.2 in a virtual
                > machine and try to build it from there ...
                >
                > Jiri.
                Thanks for the advice Jiri.

                So, that's why I did ^^
                I installed a Slack13 in a VirtualBox vm
                and now, when make -f Makefile.gcc-3.4.4 gcc-clean gcc-configure
                gcc-compile-gcc,
                im getting a c-parse.c not found

                I read that this file is supposed to be generated by bison, I checked,
                it already exists in gcc-3.4.4/gcc directory.
              • Jiri Gaisler
                Try with slackware-12.2, which is old and stable. 13.x has some issues ... Jiri.
                Message 7 of 12 , Dec 5, 2011
                • 0 Attachment
                  Try with slackware-12.2, which is old and stable. 13.x has some
                  issues ...

                  Jiri.

                  Jigar SOLANKI wrote:
                  >
                  >> Buffer overflow is typically an OS/libc/gcc issue. Our build hosts
                  >> run slackware 12.2, which tends to be more robust that bleeding edge
                  >> ubuntu or feodora. You could install slackware 12.2 in a virtual
                  >> machine and try to build it from there ...
                  >>
                  >> Jiri.
                  > Thanks for the advice Jiri.
                  >
                  > So, that's why I did ^^
                  > I installed a Slack13 in a VirtualBox vm
                  > and now, when make -f Makefile.gcc-3.4.4 gcc-clean gcc-configure
                  > gcc-compile-gcc,
                  > im getting a c-parse.c not found
                  >
                  > I read that this file is supposed to be generated by bison, I checked,
                  > it already exists in gcc-3.4.4/gcc directory.
                  >
                  >
                  >
                  >
                  > ------------------------------------
                  >
                  > Yahoo! Groups Links
                  >
                  >
                  >
                • Jigar SOLANKI
                  ... I should have bet that you would say that....Already on it actually...let u know asap. Thx.
                  Message 8 of 12 , Dec 5, 2011
                  • 0 Attachment
                    On 05/12/2011 19:14, Jiri Gaisler wrote:
                    > Try with slackware-12.2, which is old and stable. 13.x has some
                    > issues ...
                    >
                    > Jiri.
                    I should have bet that you would say that....Already on it
                    actually...let u know asap. Thx.

                    > Jigar SOLANKI wrote:
                    >>> Buffer overflow is typically an OS/libc/gcc issue. Our build hosts
                    >>> run slackware 12.2, which tends to be more robust that bleeding edge
                    >>> ubuntu or feodora. You could install slackware 12.2 in a virtual
                    >>> machine and try to build it from there ...
                    >>>
                    >>> Jiri.
                    >> Thanks for the advice Jiri.
                    >>
                    >> So, that's why I did ^^
                    >> I installed a Slack13 in a VirtualBox vm
                    >> and now, when make -f Makefile.gcc-3.4.4 gcc-clean gcc-configure
                    >> gcc-compile-gcc,
                    >> im getting a c-parse.c not found
                    >>
                    >> I read that this file is supposed to be generated by bison, I checked,
                    >> it already exists in gcc-3.4.4/gcc directory.
                    >>
                    >>
                    >>
                    >>
                    >> ------------------------------------
                    >>
                    >> Yahoo! Groups Links
                    >>
                    >>
                    >>
                    >
                    > ------------------------------------
                    >
                    > Yahoo! Groups Links
                    >
                    >
                    >
                  • Jigar SOLANKI
                    Finally, to end this thread, I did not found a proper solution for my station, but a workaround which lets me compile bcc from source anyway : Install a
                    Message 9 of 12 , Dec 5, 2011
                    • 0 Attachment
                      Finally, to end this thread, I did not found a proper solution for my
                      station, but a workaround which lets me compile bcc from source anyway :

                      Install a Slackware 12.2 in a VM (VirtualBox for example) (full install
                      from a slack 12.2 dvd iso) and compile the bcc in it.
                      The make download && make install && make all goes absolutely perfectly
                      well with no errors.

                      Thanks no Konrad and Jiri.

                      PS : I'll dig in that buffer overflow since I'm not the only one to get
                      it. I also tried on various Ubuntu's since 10.04, same result : BO on
                      sparc-elf-ar...



                      On 03/12/2011 18:42, Jigar SOLANKI wrote:
                      >
                      > Hi all,
                      >
                      > I'm trying to build bcc from source and I came accross multiple errors
                      > which I fixed but I can get over this one.
                      >
                      > My system is an Ubuntu 11.10
                      > uname -a
                      > 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686
                      > i686 i386 GNU/Linux
                      >
                      > And of course, after that the script can't find sparc-elf-gcc which I'm
                      > trying to build.
                      >
                      > I am also looking for the exact targets in the Makefile.gcc-3.4.4 which
                      > I do not need on a Linux system, such as mingw, building freertos etc..I
                      > just need a spac-elf-gcc compiler. What targets can I comment ?
                      >
                      > Thanks a lot.
                      >
                      > gcc-3.4.4/gcc -I../../gcc-3.4.4/gcc/../include \
                      > -c -o crti.o -x assembler-with-cpp
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S: Assembler messages:
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:1: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:3: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:4: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:5: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:6: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:6: Error: no such
                      > instruction: `you can redistribute it and/or modify it'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:7: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:8: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:8: Error: no such
                      > instruction: `either version 2,or (at your option)any'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:9: Error: junk at end of
                      > line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:10: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:11: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:12: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:13: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:14: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:15: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:16: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:16: Error: no such
                      > instruction: `for example,they cover modification of the file,and'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:17: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:18: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:19: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:20: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:20: Error: no such
                      > instruction: `without even the implied warranty of'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:21: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:22: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:23: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:24: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:25: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:25: Error: no such
                      > instruction: `see the file COPYING. If not,write to'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:26: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:27: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:28: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:29: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:30: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:31: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:32: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:33: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:34: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:36: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:37: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:38: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:40: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:41: Error: junk at end
                      > of line, first unrecognized character is `!'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:45: Error: unrecognized
                      > symbol type ""
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:49: Error: no such
                      > instruction: `save %sp,-96,%sp'
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:57: Error: unrecognized
                      > symbol type ""
                      > ../../gcc-3.4.4/gcc/config/sparc/sparcleon-ci.S:61: Error: no such
                      > instruction: `save %sp,-96,%sp'
                      > make[3]: *** [crti.o] Erreur 1
                      > make[3]: quittant le répertoire «
                      > /home/thorus/work/leon/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build/gcc
                      > »
                      > make[2]: *** [all-gcc] Erreur 2
                      > make[2]: quittant le répertoire «
                      > /home/thorus/work/leon/bcc-src-1.0.38/gcc-3.4.4-1.0.38gcc-3.4.4-build »
                      >
                      >



                      [Non-text portions of this message have been removed]
                    • Jim Lux
                      ... I find that running VMs with various versions of OSes is needed in general anyway. For instance, if you want to work with Xilinx Virtex IIs, you need an
                      Message 10 of 12 , Dec 5, 2011
                      • 0 Attachment
                        On 12/5/11 2:34 PM, Jigar SOLANKI wrote:
                        > Finally, to end this thread, I did not found a proper solution for my
                        > station, but a workaround which lets me compile bcc from source anyway :
                        >
                        > Install a Slackware 12.2 in a VM (VirtualBox for example) (full install
                        > from a slack 12.2 dvd iso) and compile the bcc in it.
                        > The make download && make install && make all goes absolutely perfectly
                        > well with no errors.
                        >
                        > Thanks no Konrad and Jiri.
                        >
                        > PS : I'll dig in that buffer overflow since I'm not the only one to get
                        > it. I also tried on various Ubuntu's since 10.04, same result : BO on
                        > sparc-elf-ar...
                        >


                        I find that running VMs with various versions of OSes is needed in
                        general anyway. For instance, if you want to work with Xilinx Virtex
                        IIs, you need an old version of ISE (ISE v10), which doesn't work with
                        Windows 7.

                        Running the toolchain in a VM with a compatible OS just seems to come
                        with the territory, and it makes for a stable build environment.

                        I'd rather that Jiri and gang spend their time working on new stuff,
                        than trying to make it all work on the OS version d'jour. As long as I
                        can run VMs and basically keep "development system under glass", I'm happy.

                        (Now, if someone has an Apple ][ emulator for the PC, I'd be interested
                        in hearing about it)

                        Jim
                      • Jiri Gaisler
                        ... Most user do not need to build the tool-chain, they just want to use it. We therefore provide pre-compiled packages that will run in most systems, old and
                        Message 11 of 12 , Dec 6, 2011
                        • 0 Attachment
                          Jim Lux wrote:

                          > I'd rather that Jiri and gang spend their time working on new stuff,
                          > than trying to make it all work on the OS version d'jour. As long as I
                          > can run VMs and basically keep "development system under glass", I'm happy.


                          Most user do not need to build the tool-chain, they just want to use it.
                          We therefore provide pre-compiled packages that will run in most systems,
                          old and new.

                          If you are a power-user and for some reason need/want to build the tool chain
                          yourself, then you need to resolve the build problems on your particular system.
                          We will be happy to accept any patches for build problems if you submit them.

                          Jiri.

                          >
                          > (Now, if someone has an Apple ][ emulator for the PC, I'd be interested
                          > in hearing about it)
                          >
                          > Jim
                          >
                          >
                        Your message has been successfully submitted and would be delivered to recipients shortly.