Skip to contentSkip to conversation

Binutils-2.10

DISCUSSION Dan Aizenstros 3 participants 5 messages Jul 31, 2000 – Aug 1, 2000 MIPS

lore
Share & tools
lore
#0 lore raw

Hello,

I have tried to compile binutils-2.10 with the patches from
http://www.ds2.pg.gda.pl/~macro/ but it fails because BFD_RELOC_MIPS_HIGHER and BFD_RELOC_MIPS_HIGHEST are not defined. I believe that they should be defined in bfd-in2.h but they are not there. At the top of the file it says that it is a generated file so how do I generate it? I am also wondering if changes to this file are missing from the patch file.

Dan Aizenstros
Software Engineer
V3 Semiconductor Corp.

#1 lore raw
Quoted 1 line · Dan Aizenstros

it is a generated file so how do I generate it? I am also

make -C bfd headers

Quoted 2 lines

wondering if changes to this file are missing from the patch file.

It's intentional. Why would generated files be included in a patch? It
only makes life more difficult when applying to modified sources.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#4 lore raw
In reply to Dan Aizenstros

Hi Dan,

binutils-2.10 is known to work [or at least compile], but the patches you use are broken in some way. You could try to generate new files as you suggested. To generate new files you have to give the --enable-maintainer-mode option to configure, and you need special versions of some build tools. The files will be generated when you run make.

Here is the README-maintainer-mode that pretty much explains it:

Notes on enabling maintainer mode

Note that if you configure with --enable-maintainer-mode, you will need special versions of automake, autoconf, libtool and gettext. You will find the sources for these in ftp://sourceware.cygnus.com/pub/binutils.

Ulf

Quoted 14 lines

Hello,

I have tried to compile binutils-2.10 with the patches from
http://www.ds2.pg.gda.pl/~macro/ but it fails because BFD_RELOC_MIPS_HIGHER and BFD_RELOC_MIPS_HIGHEST are not defined. I believe that they should be defined in bfd-in2.h but they are not there. At the top of the file it says that it is a generated file so how do I generate it? I am also wondering if changes to this file are missing from the patch file.

Dan Aizenstros
Software Engineer
V3 Semiconductor Corp.

#2 lore raw
In reply to Maciej W. Rozycki

Thanks for the help. I was able to build binutils-2.10 after generating the headers as you described.

The reason I expect the patch to change generated files is because the normal make does not generate them and the files are included in the binutils-2.10.tar.bz2 file. They are also in CVS. Why are generated files in CVS or the binary distribution if you have to generate them?

I thought all I would have to do is a ./configure; make; make install after I applied the patches. Maybe you could add the need to generate files on your binutils-2.10 web page.

Dan Aizenstros
Software Engineer
V3 Semiconductor Corp.

Quoted 17 lines · Maciej W. Rozycki
Quoted 1 line · Dan Aizenstros

it is a generated file so how do I generate it? I am also

make -C bfd headers

Quoted 2 lines

wondering if changes to this file are missing from the patch file.

It's intentional. Why would generated files be included in a patch? It
only makes life more difficult when applying to modified sources.

--

(quoted diff) +3 -0
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#3 lore raw
Quoted 2 lines · Dan Aizenstros

Thanks for the help. I was able to build binutils-2.10 after generating the headers as you described.

Good.

Quoted 5 lines

The reason I expect the patch to change generated files is because the normal make does not generate them and the files are included in the binutils-2.10.tar.bz2 file. They are also in CVS. Why are generated files in CVS or the binary distribution if you have to generate them?

To save people the trouble many generated files are included by default.
There is no need to regenerate them if respective sources remain unchanged and they may need special tools. They include Makefile.in, config.h.in, aclocal.m4, Makefile, configure files, as well as .info files and sources built by lex and yacc.

Quoted 1 line

I thought all I would have to do is a ./configure; make; make install

All built sources are usually regenerated if needed during build (that's
true for most automake-generated Makefiles; for others, the maintainer has to take care to place appropriate rules inti Makefiles himself). You might need to enable the maintainer mode for certain programs, though, as someone already pointed out.

Quoted 2 lines

after I applied the patches. Maybe you could add the need to generate files on your binutils-2.10 web page.

I am planning to release RPM packages -- all necessary bits are in spec
files. I might add a separate note, though.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +