Shop OBEX P1 Docs P2 Docs Learn Events
Build failure, default branch Debian 64 — Parallax Forums

Build failure, default branch Debian 64

Heater.Heater. Posts: 21,230
edited 2014-04-02 07:12 in Propeller 1
I can no longer build the default branch of propgcc:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/home/heater/propeller/propgcc/gcc/lto-plugin -I/home/heater/propeller/propgcc/gcc/lto-plugin/../include -DHAVE_CONFIG_H -Wall -Werror -g -O2 -c /home/heater/propeller/propgcc/gcc/lto-plugin/lto-plugin.c  -fPIC -DPIC -o .libs/lto-plugin.o/bin/bash ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall -Werror -g -O2  -module -bindir /opt/parallax/libexec/gcc/propeller-elf/4.6.1 -Wc,../libiberty/libiberty.a  -o liblto_plugin.la -rpath /opt/parallax/libexec/gcc/propeller-elf/4.6.1 lto-plugin.lo  libtool: link: gcc -shared  .libs/lto-plugin.o    ../libiberty/libiberty.a   -Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0/usr/bin/ld: ../libiberty/libiberty.a(argv.o): [B]relocation R_X86_64_32S against `_sch_istable' can not be used when making a shared object; recompile with -fPIC[/B]
../libiberty/libiberty.a: could not read symbols: Bad valuecollect2: error: ld returned 1 exit statusmake[3]:
 *** [liblto_plugin.la] Error 1make[3]: Leaving directory `/home/heater/propeller/build/gcc/lto-plugin'make[2]: 
*** [all] Error 2make[2]: Leaving directory `/home/heater/propeller/build/gcc/lto-plugin'make[1]:
 *** [all-lto-plugin] Error 2make[1]: Leaving directory `/home/heater/propeller/build/gcc'make:
 *** [/home/heater/propeller/propgcc/../build/gcc/gcc-built] Error 2

This is on Debian amd64 Wheezy

The release branch still builds OK.

Comments

  • Heater.Heater. Posts: 21,230
    edited 2014-04-02 01:28
    OK so I removed my propgcc tree entirely and cloned it again from scratch.

    Now the build fails earlier with:
    make[2]: Leaving directory `/home/heater/propeller/build/gcc/libiberty'
    make[2]: Entering directory `/home/heater/propeller/build/gcc/libiberty'
    CONFIG_FILES= CONFIG_HEADERS=config.h:/home/heater/propeller/propgcc/gcc/libiberty/config.in /bin/bash ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing default commands
    if [ x"-fpic" != x ]; then \
              gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/home/heaterl/propeller/propgcc/gcc/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fpic /home/heater/propeller/propgcc/gcc/libiberty/regex.c -o pic/regex.o; \
            else true; fi
    Assembler messages:
    [B]Fatal error: can't create pic/regex.o: No such file or directory[/B]
    make[2]: *** [regex.o] Error 1
    make[2]: Leaving directory `/home/heater/propeller/build/gcc/libiberty'
    make[1]: *** [all-libiberty] Error 2
    make[1]: Leaving directory `/home/heaterl/propeller/build/gcc'
    make: *** [/home/heaterl/propeller/propgcc/../build/gcc/gcc-built] Error 2
    
  • Heater.Heater. Posts: 21,230
    edited 2014-04-02 07:12
    OK, panic over, forget all that.

    After removing the build directory and including /opt/parallax/bin in the PATH propgcc builds just fine. Only I don't recall having to remove the build directory ever before.
Sign In or Register to comment.