Windows installation bugs

<[email protected]> Sat, 5 Mar 2016 04:40:18 +0000
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi folks

I was going to report this as a bug, but there's a bug in the Insight bug-r=
eporting system ... :) at least with the link on your Bugs page

https://www.sourceware.org/cgi-bin/gnatsweb.pl?database=3Dinsight&user=3Dgu=
est&password=3Dguest&cmd=3Dlogin

Anyway. I was trying to install Insight 6.8-1 on Windows 7 32bit, after fir=
st installing Cygwin. I ran into two types of bug, the first of which I cou=
ld hack round and the second of which I couldn't:

The first one relates to "bfd.info". Here's the excerpt that appears on-scr=
een during 'make':

rm -rf $backupdir; exit $rc
../../../insight-6.8-1/bfd/doc/bfd.texinfo:326: unknown command `colophon'
../../../insight-6.8-1/bfd/doc/bfd.texinfo:337: unknown command `cygnus'
../../../insight-6.8-1/bfd/doc/elf.texi:11: raising the section level of @s=
ubsubsection which is too low
Makefile:390: recipe for target 'bfd.info' failed
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd/doc'
Making info in po
make[3]: Entering directory '/cygdrive/c/insight/insight-6.8-1-built/bfd/po'
make[3]: Nothing to be done for 'info'.
make[3]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd/po'
make[3]: Entering directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
make[3]: Nothing to be done for 'info-am'.
make[3]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
Makefile:1090: recipe for target 'info-recursive' failed
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
Makefile:3065: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built'
Makefile:705: recipe for target 'all' failed
make: *** [all] Error 2

The problem seems to be triggered by having @-signs inside the relevant com=
ment lines in "bfd.texinfo". For "elf.texi" I manually changed the @subsubs=
ection into @subsection (again, I found out that @-signs inside a comment l=
ine would cause woe).

The second bug comes when 'make' tries to process "opncls.c":

1/bfd -I../../insight-6.8-1/bfd/../include  -I./../intl   -W -Wall -Wstrict=
-prototypes -Wmissing-prototypes -Werror -g -
O2 -c -o init.lo ../../insight-6.8-1/bfd/init.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../insight-6.8-1/bfd -I. -I=
. -I../../insight-6.8-1/bfd -I../../insight-6
.8-1/bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prot=
otypes -Werror -g -O2 -c ../../insight-6.8-1/
bfd/init.c -o init.o
/bin/sh ./libtool --tag=3DCC --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I../=
../insight-6.8-1/bfd -I. -I. -I../../insight-6.8-
1/bfd -I../../insight-6.8-1/bfd/../include  -I./../intl   -W -Wall -Wstrict=
-prototypes -Wmissing-prototypes -Werror -g -
O2 -c -o libbfd.lo ../../insight-6.8-1/bfd/libbfd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../insight-6.8-1/bfd -I. -I=
. -I../../insight-6.8-1/bfd -I../../insight-6
.8-1/bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prot=
otypes -Werror -g -O2 -c ../../insight-6.8-1/
bfd/libbfd.c -o libbfd.o
/bin/sh ./libtool --tag=3DCC --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I../=
../insight-6.8-1/bfd -I. -I. -I../../insight-6.8-
1/bfd -I../../insight-6.8-1/bfd/../include  -I./../intl   -W -Wall -Wstrict=
-prototypes -Wmissing-prototypes -Werror -g -
O2 -c -o opncls.lo ../../insight-6.8-1/bfd/opncls.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../insight-6.8-1/bfd -I. -I=
. -I../../insight-6.8-1/bfd -I../../insight-6
.8-1/bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prot=
otypes -Werror -g -O2 -c ../../insight-6.8-1/
bfd/opncls.c -o opncls.o
In file included from ../../insight-6.8-1/bfd/opncls.c:26:0:
../../insight-6.8-1/bfd/opncls.c: In function 'bfd_fopen':
./bfd.h:586:65: error: right-hand operand of comma expression has no effect=
 [-Werror=3Dunused-value]
 #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable =3D bool), TRUE)
                                                                 ^
../../insight-6.8-1/bfd/opncls.c:235:5: note: in expansion of macro 'bfd_se=
t_cacheable'
     bfd_set_cacheable (nbfd, TRUE);
     ^
cc1: all warnings being treated as errors
Makefile:1071: recipe for target 'opncls.lo' failed
make[4]: *** [opncls.lo] Error 1
make[4]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
Makefile:1090: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
Makefile:985: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built/bfd'
Makefile:3065: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/cygdrive/c/insight/insight-6.8-1-built'
Makefile:705: recipe for target 'all' failed
make: *** [all] Error 2


At this point I will probably just give up and stick to "print" statements =
in my code, 1973-style :/  I freely admit to knowing nothing about texinfo/=
bash/cygwin/make/configure/this kinda installation thing (and I'm very happ=
y to keep it that way--- there's a reason I use Windows despite its aggrava=
tions)! Still, hopefully this report will help y'all track the bugs down...

Mark Bravington
CSIRO Marine Lab
Hobart
Australia