This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile failure due to undefined symbol

On Thu, 4 Oct 2007, Peter S. Mazinger wrote:

Hi Nick,

> On Thu, 4 Oct 2007, Nick Clifton wrote:
> > Hi Peter,
> > 
> > > you used `pwd`/../bfd/.libs/, I used `pwd`/../bfd/, note 
> > > the missing .libs subdir, maybe it does not matter though
> > 
> > bfd/.libs/ is a symbolic link to bfd/ so it should be OK.
> I know that, I have thought, that the "last" target in bfd subdir is 
> bfd/, to be sure that everything is compiled (and parallel builds 
> do not break remain parallel)

I rechecked all subdirs around DEPENDENCIES, binutils/gas/grof/ld have 
dependencies on ../bfd/ (relative path), so that could be good 
for opcodes too.

I did following to see if it works:
mkdir build; cd build; path_to_configure/configure; make
cd bfd; make clean; cd ../opcodes; make clean; make
(the first make and the make clean's can be omitted, only there for 
completeness, if used in an already compiled build directory)

2 dependencies not found ../bfd/bfd.h and ../bfd/.libs/

Test of which targets exist at least in the bfd subdir:
cd ../bfd;
make bfd.h and make are ok (or from the build dir using make -C 
bfd bfd.h, but make [./].libs/ [./].libs/ fail 
all four, there are definitely no such targets, so I propose changing 
absolute path to relative (../bfd/ as dependency as that is at 
least used everywhere (even if it is not quite working).

Fixing the dependencies themselves is a generic issue, none of the 
dependencies work as target (checked ../bfd/bfd.h, 
../libiberty/libiberty.a called from the subdirs where they are used). 
The build copes with this probably due to the compile order, but 
effectively dependendencies are incorrect, they should really create the 
missing files, if ran from somewhere else. Targets like:
	(cd ../bfd; make bfd.h)


	(cd ..; make -C libiberty libiberty.a)

are needed in some generic place, seen by all makefiles


Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]