I tried backing out my zlib.conf changes, and then to my surprise, the builds still worked. I was expecting the original error, and then was going to apply your change from r36056

Then I remembered to check the host packages that I recently installed, and sure enough, ubuntu zlib-dev was installed 3 days ago. so the stage 0 build is getting it from the host's zlib. Ultimately, I think we would want to pick this up from TOOLCHAIN in stage 0, but I am in the middle of some other fixes, and will get back to this later, when I wipe everything and re-try stage0.

On 12/28/2016 9:19 AM, René Rebe wrote:
Hey,

svn blame on the zlib.conf file shows I did last touch this in r36056, you can 
see the change with:

        svn di -c 36056

It was $root/$mandir” before, could you try testing if changing it back to this 
fixes the issue?

        René

On Dec 27, 2016, at 19:32, Jan Rovins <[email protected]> wrote:

When building the generic x86-64 build on Ubuntu,  zlib stage 0 fails with this 
error:

fl_wrapper.so: write outside basedir (/opt/T2/t2-trunk): /usr/man/man3/zlib.3

I fixed it by not installing the man pages if stage 0.

== 13:14:27 =[0]=> Building archiver/zlib [1.2.8 9.0-svn].
-> Parallel build using 8 jobs enabled.
-> Reading package config: package/archiver/zlib/zlib.conf
-> Reading build/.../tools.cross/lib/pkg_zlib_post.conf
-> Preparing build in src.zlib.default.20161227.131427.3098.Ubu-Dev-1
-> Building. Writing output to $root/var/adm/logs/0-zlib.out
!> chmod 644 
/opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib/libz.a
!> cp libz.so.1.2.8 
/opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib
!> chmod 755 
/opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib/libz.so.1.2.8
!> cp zlib.3 /usr/man/man3
!> fl_wrapper.so: write outside basedir (/opt/T2/t2-trunk): /usr/man/man3/zlib.3
!> Makefile:188: recipe for target 'install-libs' failed
!> Due to previous errors, no 0-zlib.log file!
!> (Try enabling xtrace in the config to track an error inside the build 
system.)



===================================================================
--- package/archiver/zlib/zlib.conf     (revision 45213)
+++ package/archiver/zlib/zlib.conf     (working copy)
@@ -20,4 +20,6 @@
        var_insert confopt " " "--shared"
fi

-var_append makeinstopt ' ' 'mandir=$mandir'
+if ! atstage toolchain; then
+       var_append makeinstopt ' ' 'mandir=$mandir'
+fi


Jan



----------------------------------------------------------- If you wish to 
unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to