Your message dated Mon, 18 Mar 2013 20:31:51 +0000
with message-id <514779b7.20...@pyro.eu.org>
and subject line Re: automake: tests fail: undefined reference to `yywrap'
has caused the Debian Bug report #703298,
regarding automake: tests fail: undefined reference to `yywrap'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
703298: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703298
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: automake
Version: 1:1.11.3-1ubuntu2
Severity: serious
Justification: fails to build from source

Dear Maintainer,

I tried to build package automake, but two tests fail:


FAIL: cond35.test (exit: 2)
===========================

cond35: running flex --version
flex-2.5.35 2.5.35
cond35: running bison --version
bison (GNU Bison) 2.4.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cond35: running gcc --version
sbox-arm-none-linux-gnueabi-gcc (Linaro GCC 4.7-2012.07) 4.7.2 20120701 
(prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

=== Running test ./cond35.test
++ pwd
/home/aapo/maemo-fremantle-armel-extras-devel/work/automake1.11-1.11.1/tests/cond35.dir
+ set -e
+ cat 
+ cat
+ aclocal-1.11 -Werror
+ autoconf
+ automake-1.11 --foreign -Werror -Wall --add-missing
configure.in: installing `./ylwrap'
++ grep tparse.h: Makefile.in
++ wc -l
+ test 1 = 1
+ cat
+ cat
+ cat
+ cp ta.c tb.c
+ ./configure
checking for a BSD-compatible install... /scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /scratchbox/tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make
/bin/sh ./ylwrap tparse.y y.tab.c tparse.c y.tab.h tparse.h y.output 
tparse.output -- bison -y  -d
updating tparse.h
make  all-am
make[1]: Entering directory 
`/home/aapo/maemo-fremantle-armel-extras-devel/work/automake1.11-1.11.1/tests/cond35.dir'
gcc -DPACKAGE_NAME=\"cond35\" -DPACKAGE_TARNAME=\"cond35\" 
-DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"cond35\ 1.0\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cond35\" 
-DVERSION=\"1.0\" -I.     -g -O2 -MT ta.o -MD -MP -MF .deps/ta.Tpo -c -o ta.o 
ta.c
mv -f .deps/ta.Tpo .deps/ta.Po
/bin/sh ./ylwrap tscan.l lex.yy.c tscan.c -- flex
gcc -DPACKAGE_NAME=\"cond35\" -DPACKAGE_TARNAME=\"cond35\" 
-DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"cond35\ 1.0\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cond35\" 
-DVERSION=\"1.0\" -I.     -g -O2 -MT tscan.o -MD -MP -MF .deps/tscan.Tpo -c -o 
tscan.o tscan.c
mv -f .deps/tscan.Tpo .deps/tscan.Po
gcc -DPACKAGE_NAME=\"cond35\" -DPACKAGE_TARNAME=\"cond35\" 
-DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"cond35\ 1.0\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cond35\" 
-DVERSION=\"1.0\" -I.     -g -O2 -MT tparse.o -MD -MP -MF .deps/tparse.Tpo -c 
-o tparse.o tparse.c
mv -f .deps/tparse.Tpo .deps/tparse.Po
gcc  -g -O2   -o ta ta.o tscan.o tparse.o
tscan.o: In function `yylex':
/home/aapo/maemo-fremantle-armel-extras-devel/work/automake1.11-1.11.1/tests/cond35.dir/tscan.c:806:
 undefined reference to `yywrap'
collect2: error: ld returned 1 exit status
make[1]: *** [ta] Error 1
make[1]: Leaving directory 
`/home/aapo/maemo-fremantle-armel-extras-devel/work/automake1.11-1.11.1/tests/cond35.dir'
make: *** [all] Error 2





FAIL: lex3.test (exit: 2)
=========================
lex3: running gcc --version
sbox-arm-none-linux-gnueabi-gcc (Linaro GCC 4.7-2012.07) 4.7.2 20120701 
(prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

lex3: running gzip --version
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT 
ASMV
Written by Jean-loup Gailly.
lex3: running flex --version
flex-2.5.35 2.5.35
lex3: running make --version -v | grep GNU
GNU Make 3.81
=== Running test ./lex3.test
++ pwd
/home/aapo/maemo-fremantle-armel-extras-devel/work/automake1.11-1.11.1/tests/lex3.dir
+ CFLAGS=
+ export CFLAGS
+ cat
+ cat
+ cat
+ set -e
+ aclocal-1.11 -Werror
+ autoconf
+ automake-1.11 --foreign -Werror -Wall -a
configure.in: installing `./ylwrap'
+ ./configure
checking for a BSD-compatible install... /scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /scratchbox/tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make
/bin/sh ./ylwrap foo.l lex.yy.c foo.c -- flex
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" 
-DPACKAGE=\"am_lex_bug\" -DVERSION=\"0.1.1\" -I.      -MT foo.o -MD -MP -MF 
.deps/foo.Tpo -c -o foo.o foo.c
mv -f .deps/foo.Tpo .deps/foo.Po
gcc     -o foo foo.o
foo.o: In function `yylex':
foo.c:(.text+0x5b8): undefined reference to `yywrap'
foo.o: In function `input':
foo.c:(.text+0x15e4): undefined reference to `yywrap'
collect2: error: ld returned 1 exit status
make: *** [foo] Error 1



This seems relevant: 
http://gnu-automake.7480.n7.nabble.com/PATCH-tests-fix-aclocal-print-acdir-test-td11579.html
But there were more tests failing.

-- System Information:
Debian Release: wheezy
  APT prefers precise
  APT policy: (500, 'precise')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-29-generic (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages automake depends on:
ii  autoconf       2.67-2
ii  autotools-dev  20050422.1
ii  dpkg           1.15.8.13
ii  install-info   4.13a.dfsg.1-6

automake recommends no packages.

automake suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

On 18/03/13 18:58, Aapo Rantalainen wrote (off-list):
> I'm using Ubuntu (precise, amd64) as a host and cross compiling for
> Maemo5 (armel).

Aha the bug report included details from the Ubuntu host system which
wasn't relevant and confused things a bit...

> I'm using scratchbox -toolchain, which means it uses
> squeeze's (i386) binaries and armel binaries via qemu.
[...]
> Some packages, e.g. compiler is not stock from Debian.
> Is it in generally invalid report if used another compiler? I hit
> already squeeze's package which can't be built with gcc-4.7.2.

That's exactly the problem I think, you are building a package from
Debian squeeze using a toolchain that is newer/modified, or build
dependencies that don't match with what was available in squeeze.

This can't really be handled as a Debian bug unless:

* it's a Debian package (which it actually was - 1:1.11.1-1+squeeze1),
* and the native toolchain on Debian squeeze armel was used, and
* build dependencies are satisfied with Debian squeeze armel package
versions


The work you are trying to do is more like that of a maintainer trying
to build a new version of the automake package.  It may have been better
to get help from debian-u...@lists.debian.org or relevant support forum
for maemo or scratchbox.

You may want to try:

export DEB_BUILD_OPTIONS='nocheck'

so that you can build this and essential packages without running the
tests.  At some point you may be able to go back and rebuild it with
tests enabled.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org

--- End Message ---

Reply via email to