No rule to make target `../libiberty/libiberty.a' - General Discussion and Assistance - CHDK Forum  

No rule to make target `../libiberty/libiberty.a'

  • 2 Replies
  • 4034 Views
No rule to make target `../libiberty/libiberty.a'
« on: 18 / June / 2012, 02:42:08 »
Advertisements
I'm trying to set up the build environment, and the build is falling over with
Code: [Select]
make[2]: *** No rule to make target `../libiberty/libiberty.a', needed by `full-stamp'.  Stop.
make[2]: Leaving directory `~/devel/chkd-devel/build-dir/build/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `~/devel/chkd-devel/build-dir/build'
make: *** [install] Error 2

The script I'm using is at http://chdk.wikia.com/wiki/Gcc452.

I found a bit at http://gcc.gnu.org/ml/gcc-help/2005-05/msg00381.html which said that the following links were needed.
Code: [Select]
ln -s stagefeedback-gcc gcc
ln -s stagefeedback-intl intl
ln -s stagefeedback-libcpp libcpp
ln -s stagefeedback-libiberty libiberty
I inserted the 4 links after line 59, but that did not work.  I have no idea if I put them in the right place.

How do I fix the script?  Is there a better one?

Thanks,
Jim

*

Offline reyalp

  • ******
  • 12692
Re: No rule to make target `../libiberty/libiberty.a'
« Reply #1 on: 18 / June / 2012, 03:09:45 »
Apologies is this is a silly question, but do you actually have libiberty in the directory you are linking to ?

Generally speaking, configuring and building gcc is a pain. The odds of successfully using someone else's script with no modification are fairly low.

There are some pre-built linux toolchains for CHDK floating around. If you can find one that will work on your distro, that's probably the simpler path.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: No rule to make target `../libiberty/libiberty.a'
« Reply #2 on: 18 / June / 2012, 17:19:11 »
I compiled the toolchain GCC 4.3.3 using the http://chdk.wikia.com/wiki/Gcc433 script.  I'm using Ubuntu Lucid.

Another option is to use GCC 4.6.0, available in the first post of "A2200 IS porting thread".

 

Related Topics