This is the mail archive of the binutils@sources.redhat.com 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: bfd/elf.c chokes on BSD/OS 4.3.1 running gcc 3.2.3


On Sat, May 07, 2005 at 03:06:40PM -0600, The Doctor wrote:
> On Sat, May 07, 2005 at 04:35:33PM +0100, Dave Korn wrote:
> > ----Original Message----
> > >From: The Doctor
> > >Sent: 07 May 2005 14:59
> > 
> > > On Sat, May 07, 2005 at 07:45:52AM -0600, The Doctor wrote:
> > >> On Sat, May 07, 2005 at 03:14:33PM +0930, Alan Modra wrote:
> > >>> On Fri, May 06, 2005 at 09:45:02PM -0600, The Doctor wrote:
> > >>>> I got this to work in 2.15 no problem.  what changed?
> > >>> 
> > >>> -Werror
> > >>> 
> > >> 
> > >> Let me include this.
> > >> 
> > 
> >   That's not what he meant!  (As I see you've discovered!)  He meant that
> > binutils now uses -Werror, so any old warnings that it used to give on your
> > target will now be errors that break the build.
> > 
> >   However I think that's a red herring.  The warnings at the end of your
> > first post aren't what broke the build; those command lines don't have
> > -Werror on them.  The build failed because of the earlier failure of bfd to
> > build.
> > 
> > elf.c:8171: syntax error at end of input
> > elf.c:48: warning: `elfcore_read_notes' used but never defined
> > 
> >   I reckon your patch failed to apply cleanly to the newer version of elf.c
> > in binutils 2.16, and it's left it with some syntactically-invalid lines of
> > code, possily a missing brace or bracket somewhere, perhaps more serious.
> > You're going to have to look at the before and after and compare that to the
> > patch, see what went wrong.
> >
> 
> I do I did not have this in 2.15, so off to work it is! 
> > 
> >     cheers,
> >       DaveK
> > -- 
> > Can't think of a witty .sigline today....
> > 
>

You are correct.  The patch to make BSDOS4+ with elf had to be applied manually.

However, a new problem occurs.  I got half way through the
compile and then gprof and ld choked.

I decided to revert to binutils 2.15 for BSDOS
and retry binutils 2.16 .

A bit more trouble crops up.

Attached are the binutils-2.16 and the latestest openssl SNAPSHOT:

 
Script started on Mon May  9 07:54:09 2005
doctor.nl2k.ab.ca//usr/source$ cd binutils*6
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ configusr
loading cache ./config.cache
checking host system type... i386-unknown-bsdi4.3.1
checking target system type... i386-unknown-bsdi4.3.1
checking build system type... i386-unknown-bsdi4.3.1
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) /usr/bin/gcc
checking whether the C compiler (/usr/bin/gcc  ) works... yes
checking whether the C compiler (/usr/bin/gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) no
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp $$f1 $$f2 16 16
checking for correct version of gmp.h... no
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) gm4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for i386-unknown-bsdi4.3.1-ar... no
checking for ar... (cached) ar
checking for i386-unknown-bsdi4.3.1-as... no
checking for as... (cached) as
checking for i386-unknown-bsdi4.3.1-dlltool... no
checking for dlltool... (cached) dlltool
checking for i386-unknown-bsdi4.3.1-ld... no
checking for ld... (cached) ld
checking for i386-unknown-bsdi4.3.1-nm... no
checking for nm... (cached) nm
checking for i386-unknown-bsdi4.3.1-ranlib... no
checking for ranlib... (cached) ranlib
checking for i386-unknown-bsdi4.3.1-windres... no
checking for windres... (cached) windres
checking for i386-unknown-bsdi4.3.1-objcopy... no
checking for objcopy... (cached) objcopy
checking for i386-unknown-bsdi4.3.1-objdump... no
checking for objdump... (cached) objdump
checking for i386-unknown-bsdi4.3.1-ar... no
checking for ar... (cached) ar
checking for i386-unknown-bsdi4.3.1-as... no
checking for as... (cached) as
checking for i386-unknown-bsdi4.3.1-dlltool... no
checking for dlltool... (cached) dlltool
checking for i386-unknown-bsdi4.3.1-ld... no
checking for ld... (cached) ld
checking for i386-unknown-bsdi4.3.1-nm... no
checking for nm... (cached) nm
checking for i386-unknown-bsdi4.3.1-ranlib... no
checking for ranlib... (cached) ranlib
checking for i386-unknown-bsdi4.3.1-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
updating cache ./config.cache
creating ./config.status
creating Makefile
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ make -k         
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ make -f Makefile
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /usr/source/binutils-2.16/missing makeinfo
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... i386-unknown-bsdi4.3.1
checking host system type... i386-unknown-bsdi4.3.1
checking for i386-unknown-bsdi4.3.1-ar... ar
checking for i386-unknown-bsdi4.3.1-ranlib... ranlib
checking for i386-unknown-bsdi4.3.1-gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... no
checking for /usr/bin/gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /usr/bin/gcc -E
checking whether /usr/bin/gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... no
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
xhost-mkfrag is unchanged
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for stdint.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... no
checking for stdint.h... (cached) no
checking for unistd.h... (cached) yes
checking for int... yes
checking size of int... configure: error: cannot compute sizeof (int), 77
See `config.log' for more details.
*** Error code 1

Stop.
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ cd ../openssl*0509
doctor.nl2k.ab.ca//usr/source/openssl-0.9.7-stable-SNAP-20050509$ make
making all in crypto...
gcc -I. -I.. -I../include -fPIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -g -O9 -Wall -march=i686 -g -DPERL5 -DL_ENDIAN  -O9 -march=i686 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -g -c cryptlib.c
/var/tmp//ccaQ0aDi.s: Assembler messages:
/var/tmp//ccaQ0aDi.s:3: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:5: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:7: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:22: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:93: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:174: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:1019: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:1197: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:1303: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:1362: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:1931: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:4892: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:5550: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:5606: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:5618: Error: unknown pseudo-op: `.section'
/var/tmp//ccaQ0aDi.s:5626: Error: unknown pseudo-op: `.section'
*** Error code 1

Stop.
*** Error code 1

Stop.
doctor.nl2k.ab.ca//usr/source/openssl-0.9.7-stable-SNAP-20050509$ exit
exit

Script done on Mon May  9 07:55:11 2005

How do I fix this?

> -- 
> Member - Liberal International	
> This is doctor@nl2k.ab.ca	Ici doctor@nl2k.ab.ca
> God Queen and country! Beware Anti-Christ rising!
> BC, Vote Liberal!!

-- 
Member - Liberal International	
This is doctor@nl2k.ab.ca	Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
BC, Vote Liberal!!


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