Open interactiveblueprints opened 10 years ago
This works on Ubuntu 14.04:
git clone git://github.com/jhs/build-couchdb.git
cd build-couchdb
git submodule init
git submodule update
echo '@setfilename autoconf.info' > dependencies/autoconf-2.69/doc/autoconf.texi
echo '@setfilename automake.info' > dependencies/automake-1.11.2/doc/automake.texi
( cd dependencies/autoconf-archive; ed cfg.mk <<< $'g/@diff/d\nw'; git commit -a -m 'fix build' )
git commit -a -m 'fix build'
rake
@davedoesdev's workaround worked for me, though I had to do a make distclean
in the autoconf-2.69 dep folder first.
Getting the same error:
Making all in doc
make[2]: Entering directory `/tmp/autoconf-2.69_build20140729-10315-1xlzdi7/doc'
Updating /home/natevw/bc16/dependencies/autoconf-2.69/doc/version.texi
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd /home/natevw/bc16/dependencies/autoconf-2.69/doc && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/bash /home/natevw/bc16/dependencies/autoconf-2.69/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \
for f in /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info-[0-9] /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info-[0-9][0-9] /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.i[0-9] /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/bash /home/natevw/bc16/dependencies/autoconf-2.69/build-aux/missing --run makeinfo --no-split -I /home/natevw/bc16/dependencies/autoconf-2.69/doc \
-o /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info /home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi; \
then \
rc=0; \
CDPATH="${ZSH_VERSION+.}:" && cd /home/natevw/bc16/dependencies/autoconf-2.69/doc; \
else \
rc=$?; \
CDPATH="${ZSH_VERSION+.}:" && cd /home/natevw/bc16/dependencies/autoconf-2.69/doc && \
$restore $backupdir/* `echo ".//home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8017: misplaced }
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8018: must be after `@defmac' to use `@defmacx'
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8019: misplaced }
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8206: must be after `@defmac' to use `@defmacx'
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8271: misplaced }
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8290: misplaced }
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8317: misplaced }
/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.texi:8380: must be after `@defmac' to use `@defmacx'
conftest.c:4597: must be after `@defmac' to use `@defmacx'
conftest.c:15929: must be after `@defmac' to use `@defmacx'
mv: cannot move '.am30708/autoconf.info' to './/home/natevw/bc16/dependencies/autoconf-2.69/doc/': No such file or directory
make[2]: *** [/home/natevw/bc16/dependencies/autoconf-2.69/doc/autoconf.info] Error 1
make[1]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/autoconf-2.69_build20140729-10315-1xlzdi7/doc'
make[1]: Leaving directory `/tmp/autoconf-2.69_build20140729-10315-1xlzdi7'
make: *** [all] Error 2
git checkout HEAD .
rm -rf autom4te.cache
rake aborted!
Command failed with status (2): [make ...]
/home/natevw/bc16/tasks/lib.rb:142:in `gmake'
/home/natevw/bc16/tasks/toolchain.rake:38:in `block (5 levels) in <top (required)>'
/home/natevw/bc16/tasks/toolchain.rake:22:in `chdir'
/home/natevw/bc16/tasks/toolchain.rake:22:in `block (4 levels) in <top (required)>'
/home/natevw/bc16/tasks/toolchain.rake:21:in `block (3 levels) in <top (required)>'
Tasks: TOP => default => couchdb:build => couchdb:couchdb => /home/natevw/bc16/build/bin/couchdb => /home/natevw/bc16/build/bin/autoconf2.69
(See full trace by running task with --trace)
This still works for me on Ubuntu 14.04:
https://github.com/davedoesdev/build-couchdb-travis/blob/master/build_couchdb.sh
Sorry, forgot to say that the manual patch worked great, and thanks! Would it make sense to integrate it into this project itself?
Is there a pull request for this that I've forgotten to merge? Or can somebody please send one? Thanks much!
Still broken on 14.04
Cannot build in Ubuntu 12. Error:
...
git ls-files --others -i --exclude-standard | xargs rm -f || true
rm_f /home/maswanso/src/build-couchdb/build/bin/autoconf
rm_f /home/maswanso/src/build-couchdb/build/bin/autoreconf
rm_f /home/maswanso/src/build-couchdb/build/bin/autoheader
rm_f /home/maswanso/src/build-couchdb/build/bin/autom4te
rake aborted!
Command failed with status (2): [make maintainer-all...]
/home/maswanso/src/build-couchdb/tasks/lib.rb:142:in gmake' /home/maswanso/src/build-couchdb/tasks/toolchain.rake:134 /home/maswanso/src/build-couchdb/tasks/lib.rb:237:in
with_fakes'
/home/maswanso/src/build-couchdb/tasks/toolchain.rake:133
/home/maswanso/src/build-couchdb/tasks/lib.rb:249:in git_work' /home/maswanso/src/build-couchdb/tasks/lib.rb:247:in
chdir'
/home/maswanso/src/build-couchdb/tasks/lib.rb:247:in git_work' /home/maswanso/src/build-couchdb/tasks/toolchain.rake:113 /home/maswanso/src/build-couchdb/tasks/lib.rb:275:in
with_autoconf'
/home/maswanso/src/build-couchdb/tasks/toolchain.rake:112
/home/maswanso/src/build-couchdb/tasks/lib.rb:219:in `with_path'
/home/maswanso/src/build-couchdb/tasks/toolchain.rake:111
Tasks: TOP => default => couchdb:build => couchdb:couchdb => /home/maswanso/src/build-couchdb/build/bin/couchdb => /home/maswanso/src/build-couchdb/build/share/aclocal/ax_check_icu.m4
@jhs No PR but you can see what I have to do to make Couch compile on Ubuntu here: https://github.com/davedoesdev/build-couchdb-travis This is still working on 14.10.
https://github.com/davedoesdev/build-couchdb-travis/blob/master/build_couchdb.sh still working on Ubuntu 15.10, OTP-17.5.6.9.
Without the fixes in there, build fails on Ubuntu still.
The build system works under ubuntu 12.04, but not under 13.10. I think it has something to do with autoconf
mv: cannot move '.am14100/autoconf.info' to './/home/pietere/HDD/Development/Attachments/build-couchdb/dependencies/autoconf-2.69/doc/': No such file or directory make[2]: * [/home/pietere/HDD/Development/Attachments/build-couchdb/dependencies/autoconf-2.69/doc/autoconf.info] Error 1 make[2]: Leaving directory `/tmp/autoconf-2.69_build20140519-25646-r7s92u/doc' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory
/tmp/autoconf-2.69_build20140519-25646-r7s92u' make: **\* [all] Error 2 git checkout HEAD . rm -rf autom4te.cache rake aborted! Command failed with status (2): [make ...] /home/pietere/HDD/Development/Attachments/build-couchdb/tasks/lib.rb:142:in
gmake' /home/pietere/HDD/Development/Attachments/build-couchdb/tasks/toolchain.rake:38:inblock (5 levels) in <top (required)>' /home/pietere/HDD/Development/Attachments/build-couchdb/tasks/toolchain.rake:22:in
chdir' /home/pietere/HDD/Development/Attachments/build-couchdb/tasks/toolchain.rake:22:inblock (4 levels) in <top (required)>' /home/pietere/HDD/Development/Attachments/build-couchdb/tasks/toolchain.rake:21:in
block (3 levels) in <top (required)>' Tasks: TOP => default => couchdb:build => couchdb:couchdb => /home/pietere/HDD/Development/Attachments/build-couchdb/build/bin/couchdb => /home/pietere/HDD/Development/Attachments/build-couchdb/build/bin/autoconf2.69