Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build system does not work under ubuntu 13.10 #21

Open
interactiveblueprints opened this issue May 19, 2014 · 10 comments
Open

Build system does not work under ubuntu 13.10 #21

interactiveblueprints opened this issue May 19, 2014 · 10 comments

Comments

@interactiveblueprints
Copy link

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

@davedoesdev
Copy link

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

@skrenek
Copy link

skrenek commented Jul 1, 2014

@davedoesdev's workaround worked for me, though I had to do a make distclean in the autoconf-2.69 dep folder first.

@natevw
Copy link

natevw commented Jul 29, 2014

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)

@davedoesdev
Copy link

This still works for me on Ubuntu 14.04:

https://github.com/davedoesdev/build-couchdb-travis/blob/master/build_couchdb.sh

@natevw
Copy link

natevw commented Jul 30, 2014

Sorry, forgot to say that the manual patch worked great, and thanks! Would it make sense to integrate it into this project itself?

@jhs
Copy link
Owner

jhs commented Aug 2, 2014

Is there a pull request for this that I've forgotten to merge? Or can somebody please send one? Thanks much!

@mikeymckay
Copy link

Still broken on 14.04

@MarkSwanson
Copy link

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:inwith_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:inchdir'
/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:inwith_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

@davedoesdev
Copy link

@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.

@davedoesdev
Copy link

davedoesdev commented Apr 27, 2016

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.

muellermichel added a commit to muellermichel/build-couchdb that referenced this issue Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants