Menu

#2021 Build fails on archlinux ppc

closed-fixed
5
2013-05-25
2012-05-17
Fred
No

When trying to build sdcc on an ibook G$ running archlinux ppc, I get the following error.
mv -f .deps/nm.Tpo .deps/nm.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -mtune=powerpc -mpowerpc-gfxopt -O2 -pipe -lm -o sdnm nm.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -mtune=powerpc -mpowerpc-gfxopt -O2 -pipe -o sdnm nm.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a -lm ../libiberty/libiberty.a -lz
make[5]: *** No rule to make target `embedspu', needed by `all-am'. Stop.
make[5]: Leaving directory `/home/fred/src/sdcc/src/sdcc/support/sdbinutils/binutils'
make[4]: *** [all-recursive] Error 1

Compile and linker options are:

LDFLAGS="-lm"

./configure --prefix=/usr \ --enable-doc\ --docdir=/usr/share/doc/sdcc-3.1.5

I am using the 20120515-7699 source code and have gpasm 0.14.1 installed correctly. I have tried several earlier versions with the same results.

Cheers,

Fred

Discussion

  • Erik Petrich

    Erik Petrich - 2012-05-24

    I think I have this fixed, but I don't have a PPC system to test. It sounds like you are working from a source code snapshot package. Sometime in the next day or two a new snapshot will appear that has a revision level (it's the number after the date code) of 7766 or higher; please give it a try.

     
  • Erik Petrich

    Erik Petrich - 2012-12-23

    I now have a Linux PPC system to test with and can confirm that revision 7766 did fix this problem. However, revision 8194 (sync to binutils 2.23) reverted my changes and thus re-enabled this bug. We need to avoid adding targets to BUILD_INSTALL_MISC that we aren't actually going to build and/or install. Would removing references to BUILD_INSTALL_MISC in the Makefile be better than removing embedspu from configure?

     
  • Borut Ražem

    Borut Ražem - 2012-12-26

    Fixed in svn revision #8278.

    Erik, the problem was that you removed the lines from configure.in, so I didn't notice the change while syncing to binutils 2.23. Now I commented out the problematic lines instead removing them.

    I found out that embedspu is also assigned to variable EXTRA_SCRIPTS in Makefile.in, but it seems that it is never used...

    Sorry for re-introducing the bug.

    Borut

     
  • Borut Ražem

    Borut Ražem - 2012-12-26
    • milestone: --> fixed
    • assigned_to: nobody --> borutr
    • status: open --> closed-fixed
     
  • Fred

    Fred - 2012-12-26

    Hi,

    Both my G3 and G4 iBooks have bad hard disks. My plan is to get one running this week. I will need to test sdcc build then. Right now I am in the middle of trying to battle a chronic illness so this may take longer that I anticipate. I'm "crossing my fingers"

    Cheers,

    Fred

     

Log in to post a comment.