Shop OBEX P1 Docs P2 Docs Learn Events
propgcc build fails in binutils tc-propeller.c — Parallax Forums

propgcc build fails in binutils tc-propeller.c

Heater.Heater. Posts: 21,230
edited 2013-01-13 12:50 in Propeller 1
The binutils of performance branch fails to build now on my laptop with Debian wheezy, gcc version 4.7.2 (Debian 4.7.2-4).

Like so:
gcc -DHAVE_CONFIG_H -I. -I../../../propgcc/binutils/gas  -I. -I../../../propgcc/binutils/gas -I../bfd -I../../../propgcc/binutils/gas/config -I../../../propgcc/binutils/gas/../include -I../../../propgcc/binutils/gas/.. -I../../../propgcc/binutils/gas/../bfd -DLOCALEDIR="\"/opt/parallax/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT tc-propeller.o -MD -MP -MF .deps/tc-propeller.Tpo -c -o tc-propeller.o `test -f 'config/tc-propeller.c' || echo '../../../propgcc/binutils/gas/'`config/tc-propeller.c
../../../propgcc/binutils/gas/config/tc-propeller.c: In function ‘md_assemble’:
../../../propgcc/binutils/gas/config/tc-propeller.c:1841:2: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
cc1: all warnings being treated as errors

Comments

  • jazzedjazzed Posts: 11,803
    edited 2012-12-16 11:58
    Heater. wrote: »
    The binutils of performance branch fails to build now on my laptop with Debian wheezy, gcc version 4.7.2 (Debian 4.7.2-4).

    Like so:
    gcc -DHAVE_CONFIG_H -I. -I../../../propgcc/binutils/gas  -I. -I../../../propgcc/binutils/gas -I../bfd -I../../../propgcc/binutils/gas/config -I../../../propgcc/binutils/gas/../include -I../../../propgcc/binutils/gas/.. -I../../../propgcc/binutils/gas/../bfd -DLOCALEDIR="\"/opt/parallax/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT tc-propeller.o -MD -MP -MF .deps/tc-propeller.Tpo -c -o tc-propeller.o `test -f 'config/tc-propeller.c' || echo '../../../propgcc/binutils/gas/'`config/tc-propeller.c
    ../../../propgcc/binutils/gas/config/tc-propeller.c: In function ‘md_assemble’:
    ../../../propgcc/binutils/gas/config/tc-propeller.c:1841:2: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
    cc1: all warnings being treated as errors
    

    Daniel, since you have a Wheezy, can you please try this?
    Do cd propgcc, hg pull, hg update performance, then ./jbuild.sh 4 rm-all
  • ersmithersmith Posts: 6,054
    edited 2012-12-18 09:56
    I get a completely different error when trying to build binutils on Wheezy:
    syslex.l:31:21: fatal error: sysinfo.h: No such file or directory
    compilation terminated.
    make[2]: *** [syslex.o] Error 1
    

    which sounds like I'm missing some libraries, but I can't seem to find what could be missing. Did you encounter anything like this in Wheezy, Heater?

    Eric
  • Heater.Heater. Posts: 21,230
    edited 2012-12-18 10:19
    No, I have not seen that. Which sysfs.h could it mean? Perhaps I have some lib installed that you do not.
  • Heater.Heater. Posts: 21,230
    edited 2012-12-18 10:36
    Sounds like you need to install libsysfs-dev
  • Heater.Heater. Posts: 21,230
    edited 2012-12-31 03:28
    Out of curiosity I just pulled and compiled the "p2test" branch of propgcc. It compiled with no problems (after installing ncurses dev libs).

    Edit: The "default" branch builds OK as well.

    On going back to the "performance" branch the build fails as described in my opening post.
  • David BetzDavid Betz Posts: 14,516
    edited 2012-12-31 07:52
    Heater. wrote: »
    Out of curiosity I just pulled and compiled the "p2test" branch of propgcc. It compiled with no problems (after installing ncurses dev libs).

    Edit: The "default" branch builds OK as well.

    On going back to the "performance" branch the build fails as described in my opening post.
    I had to fix that problem in the p2test branch to build under Windows I think. It isn't checked into the default branch though.
  • ersmithersmith Posts: 6,054
    edited 2013-01-13 08:43
    Sorry it took me a while to get to this, but I think the performance branch should build now on Wheezy (the problem was fixed in the trunk after the performance branch was forked, so we just needed to move the fix to the branch).
  • Heater.Heater. Posts: 21,230
    edited 2013-01-13 10:31
    Eric,

    That fix seems to have worked but now the build fails at:
    /home/michael/build/gcc/./gcc/xgcc -B/home/michael/build/gcc/./gcc/ -B/opt/parallax/propeller-elf/bin/ -B/opt/parallax/propeller-elf/lib/ -isystem /opt/parallax/propeller-elf/include -isystem /opt/parallax/propeller-elf/sys-include    -g -O2 -mxmm -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -Os -fomit-frame-pointer -Wno-missing-prototypes -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -Dinhibit_libc -Os  -I. -I. -I../../.././gcc -I../../../../../propgcc/gcc/libgcc -I../../../../../propgcc/gcc/libgcc/. -I../../../../../propgcc/gcc/libgcc/../gcc -I../../../../../propgcc/gcc/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o _loadfloat.o -MT _loadfloat.o -MD -MP -MF _loadfloat.dep -DL_loadfloat -xassembler-with-cpp \
              -c ../../../../../propgcc/gcc/libgcc/../gcc/config/propeller/lib1funcs.asm
    ../../../../../propgcc/gcc/libgcc/../gcc/config/propeller/lib1funcs.asm: Assembler messages:
    ../../../../../propgcc/gcc/libgcc/../gcc/config/propeller/lib1funcs.asm:150: Error: junk at end of line, first unrecognized character is `_'
    ../../../../../propgcc/gcc/libgcc/../gcc/config/propeller/lib1funcs.asm:151: Error: junk at end of line, first unrecognized character is `_'
    ../../../../../propgcc/gcc/libgcc/../gcc/config/propeller/lib1funcs.asm:158: Error: junk at end of line, first unrecognized character is `_'
    
    Which is the problem with underscores in HEX numbers I think I have reported before.
  • ersmithersmith Posts: 6,054
    edited 2013-01-13 11:46
    I don't understand why the assembler is choking on this under Wheezy -- it works under Ubuntu. I'm guessing it has something to do with assembling it under gcc with the preprocessor instead of calling propeller-elf-as directly. Rather than spend a lot of time trying to track this down, I've removed the underscores. I hope this makes things work!

    Eric
  • Heater.Heater. Posts: 21,230
    edited 2013-01-13 12:50
    That's just what I did here already. Builds fine now.
Sign In or Register to comment.