Discussion:
[UrJTAG-dev] Building urjtag git under Mac OS X
Xiaofan Chen
2013-03-26 05:04:08 UTC
Permalink
I tried to build urjtag under Mac OS X but it failed. I will
try to build urjtag under Linux later to compare the differences.

1) AM_CONFIG_HEADER issue which can be easily solved by
changing to AC_CONFIG_HEADERS as suggested in the error
message. This is because that my Mac OS X Homebrew
build system is using the new automake-1.13.

Ref: http://lists.gnu.org/archive/html/automake/2012-12/msg00038.html
- The following long-obsolete m4 macros have been removed:
AM_CONFIG_HEADER: superseded by AC_CONFIG_HEADERS since July 2002

Error message:

autoreconf: running: aclocal --force -I m4
/usr/local/share/aclocal/log4shib.m4:7: warning: underquoted
definition of AM_PATH_LOG4SHIB
/usr/local/share/aclocal/log4shib.m4:7: run info Automake 'Extending aclocal'
/usr/local/share/aclocal/log4shib.m4:7: or see
http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:99: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/local/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14:
AM_CONFIG_HEADER is expanded from...
configure.ac:99: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

2) I am not able to understand the following problem. Not
sure if it is a problem under my Mac OS X setup (Homebrew,
Mac OS X 10.7.5).

mymacmini:urjtag xiaofanc$ ./autogen.sh --without-readline
--prefix=/usr/local/Cellar/urjtag/HEAD
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
autoreconf: running: aclocal --force -I m4
/usr/local/share/aclocal/log4shib.m4:7: warning: underquoted
definition of AM_PATH_LOG4SHIB
/usr/local/share/aclocal/log4shib.m4:7: run info Automake 'Extending aclocal'
/usr/local/share/aclocal/log4shib.m4:7: or see
http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
Use of uninitialized value $msg in concatenation (.) or string at
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1026.
Use of uninitialized value $stacktrace in pattern match (m//) at
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1026.
unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " '$ac_arg'")
at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line 638
Autom4te::Channels::msg('m4trace: -1-
AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef,
'warning: ', 'partial', 0) called at
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1026
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

autoreconf failed.
--
Xiaofan
Mike Frysinger
2013-03-26 18:29:23 UTC
Permalink
Post by Xiaofan Chen
1) AM_CONFIG_HEADER issue which can be easily solved by
changing to AC_CONFIG_HEADERS as suggested in the error
message. This is because that my Mac OS X Homebrew
build system is using the new automake-1.13.
should be fixed in the tree now
-mike
Xiaofan Chen
2013-03-27 12:54:30 UTC
Permalink
Post by Mike Frysinger
Post by Xiaofan Chen
1) AM_CONFIG_HEADER issue which can be easily solved by
changing to AC_CONFIG_HEADERS as suggested in the error
message. This is because that my Mac OS X Homebrew
build system is using the new automake-1.13.
should be fixed in the tree now
-mike
Yes, that is fixed. Thanks.

I tried to build urjtag under Linux (Ubuntu 10.04 LTS 32bit) and
the build is a success with libftdi-1.0 git. So I think there is
something wrong with my build system under Mac OS X
10.7.5 with Homebrew.


--
Xiaofan
Xiaofan Chen
2013-04-02 14:15:25 UTC
Permalink
Post by Xiaofan Chen
I tried to build urjtag under Linux (Ubuntu 10.04 LTS 32bit) and
the build is a success with libftdi-1.0 git. So I think there is
something wrong with my build system under Mac OS X
10.7.5 with Homebrew.
It should be Ubuntu 12.04 LTS. I use the bootstrapped source
under Linux for the Mac OS X build, it is almost working but
the build finally failed because of readline, this seems to be
a known problem for urjtag.

Ref: http://blackfin.uclinux.org/gf/project/toolchain/forum/?_forum_action=ForumMessageBrowse&thread_id=39140&action=ForumBrowse

Build with "--without-readline" is okay but the result is not
that good since now it has no command history support.
Maybe there is a better way to get readline working under
Mac OS X.
--
Xiaofan
Mike Frysinger
2013-04-02 17:16:28 UTC
Permalink
Post by Xiaofan Chen
Post by Xiaofan Chen
I tried to build urjtag under Linux (Ubuntu 10.04 LTS 32bit) and
the build is a success with libftdi-1.0 git. So I think there is
something wrong with my build system under Mac OS X
10.7.5 with Homebrew.
It should be Ubuntu 12.04 LTS. I use the bootstrapped source
under Linux for the Mac OS X build, it is almost working but
the build finally failed because of readline, this seems to be
a known problem for urjtag.
http://blackfin.uclinux.org/gf/project/toolchain/forum/?_forum_action=Foru
mMessageBrowse&thread_id=39140&action=ForumBrowse
Build with "--without-readline" is okay but the result is not
that good since now it has no command history support.
Maybe there is a better way to get readline working under
Mac OS X.
for Blackfin releases, we just built up local copies of readline rather than
relying on the system crap that OS X might provide. not really much urjtag
can do about a crap host ;).
-mike

Loading...