> it's in bootstrap stage so it should be looking for host zlib ...
OK. I wasn't clear on where the headers were coming from at this stage.
zlib.h definitely exists in /usr/include.
I'm not sure if the T2 listserv allows EMAIL attachments, but I'll give it a
try. The squashfs-tools ERROR-LOG file is attached. If there are other log
files that might provides clues, please let me know.
The compiler error is:
Running make CC=gcc CPP=cpp CXX=g++
prefix=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr
docdir=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr/doc/squashfs-tools
CC_FOR_BUILD=cc BUILDCC=cc BUILD_CC=cc HOSTCC=cc HOST_CC=cc STRIP=strip AR=ar
LD=ld AS=as RANLIB=ranlib NM=nm
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 -c -o
mksquashfs.o mksquashfs.c
mksquashfs.c:39:18: error: zlib.h: No such file or directory
mksquashfs.c:834: error: expected ')' before '*' token
mksquashfs.c: In function 'mangle':
mksquashfs.c:910: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mksquashfs.c:910: error: 'stream' undeclared (first use in this function)
mksquashfs.c:910: error: (Each undeclared identifier is reported only once
mksquashfs.c:910: error: for each function it appears in.)
mksquashfs.c: In function 'get_fragment':
mksquashfs.c:1674: error: 'Z_OK' undeclared (first use in this function)
mksquashfs.c:1675: error: 'Z_MEM_ERROR' undeclared (first use in this function)
mksquashfs.c:1678: error: 'Z_BUF_ERROR' undeclared (first use in this function)
mksquashfs.c: In function 'deflator':
mksquashfs.c:2368: error: 'z_stream' undeclared (first use in this function)
mksquashfs.c:2368: error: 'stream' undeclared (first use in this function)
mksquashfs.c: In function 'frag_deflator':
mksquashfs.c:2405: error: 'z_stream' undeclared (first use in this function)
mksquashfs.c:2405: error: 'stream' undeclared (first use in this function)
make: *** [mksquashfs.o] Error 1
Aldas Nabazas wrote:
it's in bootstrap stage so it should be looking for host zlib, what
error file says? it can't locate zlib.h?
On Tue, Aug 3, 2010 at 1:03 PM, John McNamee <[email protected]
<mailto:[email protected]>> wrote:
zlib.h exists in /usr/include (on the host system), but not in
./build/.../usr/include.
-------- Original Message --------
Subject: Re: [t2] squashfs-tools build error
From: Aldas Nabazas <[email protected] <mailto:[email protected]>>
To: T2 developers mailing list <[email protected]
<mailto:[email protected]>>
Date: 8/3/2010 6:25 AM
Hi John,
What's the location of your zlib.h? Also you can check actual error
file for more details.
Cheers,
Aldas
On Tue, Aug 3, 2010 at 4:39 AM, John McNamee wrote:
I've got T2 8.0 hosted on a Debian Lenny system, and ran into an
build error on squashfs-tools. It's trying to include
zlib.h, which
doesn't exist within the cross-compiled "build" tree (it
does exist
on the host Debian system). I'm not sure how to even begin
to debug
this. Any ideas?
== 18:02:47 =[0]=> Building filesystem/squashfs-tools [4.0
8.0-stable].
-> Reading package config:
package/filesystem/squashfs-tools/squashfs-tools.conf
-> Preparing build in
src.squashfs-tools.default.20100802.180244.6972.jpm-debian
-> Building. Writing output to
$root/var/adm/logs/0-squashfs-tools.out
!> mksquashfs.c: In function 'deflator':
!> mksquashfs.c:2368: error: 'z_stream' undeclared (first use in
this function)
!> mksquashfs.c:2368: error: 'stream' undeclared (first use
in this
function)
!> mksquashfs.c: In function 'frag_deflator':
!> mksquashfs.c:2405: error: 'z_stream' undeclared (first use in
this function)
!> mksquashfs.c:2405: error: 'stream' undeclared (first use
in this
function)
!> Due to previous errors, no 0-squashfs-tools.log file!
!> (Try enabling xtrace in the config to track an error
inside the
build system.)
-> $root/var/adm/logs/0-squashfs-tools.out ->
0-squashfs-tools.err
== 08/02/10 18:03:21 =[0]=> Aborted building package
squashfs-tools.
Command Wrapper Debug: running 'gcc --version' ..
gcc is
/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/wrapper/gcc
Old Command: gcc --version
ENVPREFIX = 'CMD'
OTHERS = ''
INSERT = '--help?:-pipe -Os'
REMOVE = '-O -O[0-9s] -mtune* -march* -mcpu* -g*'
APPEND = '-s -march=i486'
FILTER = ''
conditonal arg: --help?:-pipe.
conditonal: --help, lhs: , rhs: -pipe.
Insert: -pipe
Insert: -Os
Copy: --version
Append: -s
Append: -march=i486
Old PATH:
/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/wrapper:/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/bin:/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/crosscc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
New PATH:
/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/bin:/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/crosscc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
New Command: gcc -pipe -Os --version -s -march=i486
gcc (Debian 4.3.2-1.1) 4.3.2
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.
[ writing debug log to
/home/jpm/work/t2-8.0/src.squashfs-tools.default.20100802.180244.6972.jpm-debian/cmd_wrapper.log
]
`/home/jpm/work/t2-8.0/src.squashfs-tools.default.20100802.180244.6972.jpm-debian/archdir/squashfs4.0.tar.bz2'
-> `/home/jpm/work/t2-8.0/download/mirror/s/squashfs4.0.tar.bz2'
Running main build function 'build_this_package' ...
Extracting squashfs4.0.tar.bz2 (--use-compress-program=bzip2 -xf) ...
Fixing ownership and permissions ...
Removing CVS, .svn, {arch} and .arch-ids directories ...
Changeing into
/home/jpm/work/t2-8.0/src.squashfs-tools.default.20100802.180244.6972.jpm-debian/squashfs4.0
...
Apply patch
/home/jpm/work/t2-8.0/package/filesystem/squashfs-tools/compressionLevel.patch
...
patching file squashfs-tools/mksquashfs.c
Hunk #1 succeeded at 112 (offset 1 line).
Hunk #2 succeeded at 850 (offset 3 lines).
Hunk #3 succeeded at 4351 (offset 118 lines).
Hunk #4 succeeded at 4461 (offset 118 lines).
Creating
/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr/<..>
if required ...
Running make CC=gcc CPP=cpp CXX=g++
prefix=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr
docdir=/home/jpm/work/t2-8.0/build/default-8.0-stable-generic-x86-i686-linux/TOOLCHAIN/tools.cross/usr/doc/squashfs-tools
CC_FOR_BUILD=cc BUILDCC=cc BUILD_CC=cc HOSTCC=cc HOST_CC=cc STRIP=strip AR=ar
LD=ld AS=as RANLIB=ranlib NM=nm
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 -c -o
mksquashfs.o mksquashfs.c
mksquashfs.c:39:18: error: zlib.h: No such file or directory
mksquashfs.c:834: error: expected ')' before '*' token
mksquashfs.c: In function 'mangle':
mksquashfs.c:910: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mksquashfs.c:910: error: 'stream' undeclared (first use in this function)
mksquashfs.c:910: error: (Each undeclared identifier is reported only once
mksquashfs.c:910: error: for each function it appears in.)
mksquashfs.c: In function 'get_fragment':
mksquashfs.c:1674: error: 'Z_OK' undeclared (first use in this function)
mksquashfs.c:1675: error: 'Z_MEM_ERROR' undeclared (first use in this function)
mksquashfs.c:1678: error: 'Z_BUF_ERROR' undeclared (first use in this function)
mksquashfs.c: In function 'deflator':
mksquashfs.c:2368: error: 'z_stream' undeclared (first use in this function)
mksquashfs.c:2368: error: 'stream' undeclared (first use in this function)
mksquashfs.c: In function 'frag_deflator':
mksquashfs.c:2405: error: 'z_stream' undeclared (first use in this function)
mksquashfs.c:2405: error: 'stream' undeclared (first use in this function)
make: *** [mksquashfs.o] Error 1
Due to previous errors, no 0-squashfs-tools.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ...
Searching for orphaned files ...
Found 5 files for this package.
Found 0 orphaned files for this package.
Clear (old) md5sums ...
Creating md5sum files ... done.
Creating package description ...
Making post-install adaptions.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2