bootstrap script issues with MacPorts libtool and automake

37 views
Skip to first unread message

Neal Wood

unread,
Dec 22, 2022, 2:40:14 PM12/22/22
to xyce-users
Hi Xyce Team.

I am having trouble running the bootstrap script to build Xyce from the Github repository when using MacPorts libtool and automake.

5) autoheader
4) libtoolize
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize:   error: copying '/opt/local/share/libtool/build-aux/ltmain.sh' to 'config/' failed
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
glibtoolize:   error: copying '/opt/local/share/aclocal/libtool.m4' to 'config/' failed
glibtoolize:   error: copying '/opt/local/share/aclocal/ltoptions.m4' to 'config/' failed
glibtoolize:   error: copying '/opt/local/share/aclocal/ltsugar.m4' to 'config/' failed
glibtoolize:   error: copying '/opt/local/share/aclocal/ltversion.m4' to 'config/' failed
glibtoolize:   error: copying '/opt/local/share/aclocal/lt~obsolete.m4' to 'config/' failed
3) aclocal
2) automake
cp: cannot lseek '/opt/local/share/automake-1.16/compile': Inappropriate ioctl for device
configure.ac:351: error: installing 'config/compile'
configure.ac:351:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/config.guess': Inappropriate ioctl for device
configure.ac:35: error: installing 'config/config.guess'
configure.ac:35:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/config.sub': Inappropriate ioctl for device
configure.ac:35: error: installing 'config/config.sub'
configure.ac:35:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/install-sh': Inappropriate ioctl for device
configure.ac:38: error: installing 'config/install-sh'
configure.ac:38:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/missing': Inappropriate ioctl for device
configure.ac:38: error: installing 'config/missing'
configure.ac:38:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/depcomp': Inappropriate ioctl for device
src/AnalysisPKG/Makefile.am: error: installing 'config/depcomp'
src/AnalysisPKG/Makefile.am:     error while copying
1) autoconf
0) autoheader, again


Is this something that you have come across before or could help me resolve?

I am using the following setup.

macOS 10.13.6
MacPorts 2.8.0
    autoconf @2.71_1
    automake @1.16.5_0
    libtool @2.4.7_0

Xyce 50daf8e8e069363aea2fe91cc8012a8d3038bd87

Thank you very much in advance.

Regards,

Neal

xyce-users

unread,
Dec 22, 2022, 3:32:35 PM12/22/22
to xyce-users

This looks vaguely like a permissions problem where you don't have permission to write to the "config" subdirectory of the currently selected directory.  Check the permissions on the current directory, I'll bet they prevent writing somehow.

Neal Wood

unread,
Dec 27, 2022, 11:39:10 AM12/27/22
to xyce-users
Thank you for your response. That was my initial thought, but I cannot seem to put my finger on the problem. If I add --verbose and --dry-run to the  glibtoolize invocation, I get the following output.

5) autoheader
4) libtoolize
glibtoolize: found 'configure.ac'
glibtoolize: export M4='/usr/bin/m4'
glibtoolize: ac_aux_dir='config'
glibtoolize: ltdl mode=''
glibtoolize: rm -f 'config/compile'
glibtoolize: rm -f 'config/depcomp'
glibtoolize: rm -f 'config/missing'
rm -f config/ltmain.sh
rm -f config/ltmain.sh

glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: func_echo_all cp -f /opt/local/share/libtool/build-aux/ltmain.sh config
glibtoolize: found 'Makefile.am'
glibtoolize: aclocal_amflags=-I config'
glibtoolize: am_macro_dir='config'
rm -f config/libtool.m4
rm -f config/libtool.m4

glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
glibtoolize: func_echo_all cp -f /opt/local/share/aclocal/libtool.m4 config
glibtoolize: Not copying 'config/ltargz.m4', libltdl not used.
glibtoolize: Not copying 'config/ltdl.m4', libltdl not used.
rm -f config/ltoptions.m4
rm -f config/ltoptions.m4
glibtoolize: func_echo_all cp -f /opt/local/share/aclocal/ltoptions.m4 config
rm -f config/ltsugar.m4
rm -f config/ltsugar.m4
glibtoolize: :: cp -f /opt/local/share/aclocal/ltsugar.m4 config
rm -f config/ltversion.m4
rm -f config/ltversion.m4
glibtoolize: func_echo_all cp -f /opt/local/share/aclocal/ltversion.m4 config
rm -f config/lt~obsolete.m4
rm -f config/lt~obsolete.m4
glibtoolize: func_echo_all cp -f /opt/local/share/aclocal/lt~obsolete.m4 config
glibtoolize: found LT_INIT invocation

3) aclocal
2) automake
cp: cannot lseek '/opt/local/share/automake-1.16/compile': Inappropriate ioctl for device
configure.ac:351: error: installing 'config/compile'
configure.ac:351:     error while copying
configure.ac:391: error: required file 'config/ltmain.sh' not found

cp: cannot lseek '/opt/local/share/automake-1.16/missing': Inappropriate ioctl for device
configure.ac:38: error: installing 'config/missing'
configure.ac:38:     error while copying
cp: cannot lseek '/opt/local/share/automake-1.16/depcomp': Inappropriate ioctl for device
src/AnalysisPKG/Makefile.am: error: installing 'config/depcomp'
src/AnalysisPKG/Makefile.am:     error while copying
1) autoconf
0) autoheader, again


For example, the command

cp -f /opt/local/share/libtool/build-aux/ltmain.sh config

is returning a non-zero exit status. If I run the command manually I get the following error message.

cp: cannot lseek '/opt/local/share/libtool/build-aux/ltmain.sh': Inappropriate ioctl for device

I get the same message if I run the command as root.

The files themselves are readable; e.g.,

-rw-r--r-- 1 root wheel 333035 Apr  8  2022 /opt/local/share/libtool/build-aux/ltmain.sh

I have a default MacPorts installation and I think the issue only appeared only after I upgraded some ports.

Any thoughts?

Thanks you in advance.

Reply all
Reply to author
Forward
0 new messages