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

Can't cross compile texinfo #1

Open
ElvishJerricco opened this issue Feb 27, 2019 · 8 comments
Open

Can't cross compile texinfo #1

ElvishJerricco opened this issue Feb 27, 2019 · 8 comments

Comments

@ElvishJerricco
Copy link
Owner

@Mic92 I was trying to use your fork, but it failed to build because of texinfo.

  ../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
  /nix/store/dkh7l9a4sx7zqh8riqbj3z21sz25p8xy-bash-4.4-p23/bin/bash: ../tools/info/makedoc: No such file or directory
@Mic92
Copy link

Mic92 commented Feb 27, 2019

I have not tried in a while, but this one definitely build fixed texinfo for me: Mic92/nixpkgs@0009bd7

@ElvishJerricco
Copy link
Owner Author

@Mic92

$ nix build \
  -f https://github.com/Mic92/nixpkgs/archive/0009bd75608ab3b80d7c6c36d9193ec2adcc9618.tar.gz \
  --arg crossSystem '{ system = "aarch64-linux"; }' \
  texinfoInteractive
builder for '/nix/store/y8ck51q76dv099zx24qcj3wj72qvmk9v-texinfo-interactive-6.5-aarch64-unknown-linux-gnu.drv' failed with exit code 2; last 10 log lines:
  aarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../gnulib/lib -I../gnulib/lib -DLOCALEDIR=\"/nix/store/24f5f6k5pdc8kl38x21m3w3rk9jzhzwn-texinfo-interactive-6.5-aarch64-unknown-linux-gnu/share/locale\" -DINFODIR=\"/nix/store/24f5f6k5pdc8kl38x21m3w3rk9jzhzwn-texinfo-interactive-6.5-aarch64-unknown-linux-gnu/share/info\" -DINFODIR2=\"/nix/store/24f5f6k5pdc8kl38x21m3w3rk9jzhzwn-texinfo-interactive-6.5-aarch64-unknown-linux-gnu/share/info\"   -g -O2 -c -o makedoc.o makedoc.c
  aarch64-unknown-linux-gnu-gcc  -g -O2   -o makedoc makedoc.o ../gnulib/lib/libgnu.a -ltinfo   
  rm -f doc.c funs.h
  ../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
  /nix/store/xnb88dbg6wcdfqpn2lcxwyv4fxvszxhp-bash-4.4-p23/bin/bash: ../tools/info/makedoc: No such file or directory
  make[2]: *** [Makefile:2603: funs.h] Error 127
  make[2]: Leaving directory '/build/texinfo-6.5/info'
  make[1]: *** [Makefile:1199: all-recursive] Error 1
  make[1]: Leaving directory '/build/texinfo-6.5'
  make: *** [Makefile:1138: all] Error 2
[4 built (1 failed), 0.0 MiB DL]
error: build of '/nix/store/y8ck51q76dv099zx24qcj3wj72qvmk9v-texinfo-interactive-6.5-aarch64-unknown-linux-gnu.drv' failed

texinfo succeeds, but texinfoInteractive fails. Interesting.

@Mic92
Copy link

Mic92 commented Feb 28, 2019

There are more patches required to also built this.

@ElvishJerricco
Copy link
Owner Author

@Mic92 Were you ever able to build your fork? It ought to be depending on texinfoInteractive, which fails to build.

@Mic92
Copy link

Mic92 commented Mar 1, 2019

I was able to build a raspberry pi image. It seemed to be not depend on texinfoInteractive at the time.

@ElvishJerricco
Copy link
Owner Author

@Mic92 running the command in your fork's README yields the texinfoInteractive build error, but that command should be reproducible. Was there some other variable?

@Mic92
Copy link

Mic92 commented Mar 3, 2019

sorry don't know. Maybe there is a way to skip creating documentation from docstrings (?) for texinfo in the cross-compiling case.

@ryantrinkle
Copy link

This commit from @thefloweringash worked for me.

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

3 participants