[Nix-dev] Chrooted build failure with trunk
Ludovic Courtès
ludo at gnu.org
Mon Jun 23 17:35:10 CEST 2008
Hello,
I fail to build a few packages in a chroot with the current trunk.
Examples include Gnash and GnuTLS:
libtool --mode=link gcc -Wl,--version-script,../exports -rpath /nix/store/rk7n8vgdylgaqpix5pg8g8m3nddr2wqg-acl-2.2.47/lib -version-info 2:0:1 -o libacl.la acl_add_perm.lo acl_calc_mask.lo acl_clear_perms.lo acl_copy_entry.lo acl_copy_ext.lo acl_copy_int.lo acl_create_entry.lo acl_delete_def_file.lo acl_delete_entry.lo acl_delete_perm.lo acl_dup.lo acl_free.lo acl_from_text.lo acl_get_entry.lo acl_get_fd.lo acl_get_file.lo acl_get_perm.lo acl_get_permset.lo acl_get_qualifier.lo acl_get_tag_type.lo acl_init.lo acl_set_fd.lo acl_set_file.lo acl_set_permset.lo acl_set_qualifier.lo acl_set_tag_type.lo acl_to_text.lo acl_valid.lo acl_size.lo acl_to_any_text.lo acl_entries.lo acl_check.lo acl_error.lo acl_cmp.lo acl_extended_fd.lo acl_extended_file.lo acl_equiv_mode.lo acl_from_mode.lo __acl_to_any_text.lo __acl_to_xattr.lo __acl_from_xattr.lo __acl_reorder_obj_p.lo __libobj.lo __apply_mask_to_mode.lo perm_copy_fd.lo perm_copy_file.lo -lattr ../libmisc/libmisc.la
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such device or address
pwd: error retrieving current directory: getcwd: cannot access parent directories: Success
pwd: error retrieving current directory: getcwd: cannot access parent directories: Bad address
chdir: error retrieving current directory: getcwd: cannot access parent directories: Success
In both cases, it happens when Libtool is invoked in link mode. The
"shell-init" error message comes from Bash.
Looking at Bash' builtin/common.c:get_working_directory, I couldn't find
a clue as to what's failing. Furthermore, `ENXIO' is not documented as
a valid return value for `getcwd(3)'.
Is anyone else experiencing this? Any hint?
Thanks,
Ludovic.
More information about the nix-dev
mailing list