On Sat, 24 Apr 2004, Waldek Hebisch wrote:
Russell Whitaker wrote:
One last (small) problem: --automake seems to be "semi-broken". Had to import the module/unit source into the current directory otherwise got "module/unit ... could not be compiled" when compiling something with a uses clause.
AFAIKS `--automake' just can not find units. gcc-3.4 uses different directory layout, with default prefix gpc1 goes into
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/3.4.0/
but units go into
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/3.4.0/units
gpc is searching for units in
/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/3.4.0/units
quick fix is to give '--unit-path=' option (or copy the units directory), but in long them we must teach gpc about new location.
Just now tried this - (my gcc install used --prefix=/usr because of a c++ problem ):
in directory /usr/libexec/gcc/i686-pc-linux-gnu/3.4.0 added ln -s ../../../../lib/gcc/i686-pc-linux-gnu/3.4.0/units units and --automake now works.
Thanks Russ