Skip to content

make install is broken #13128

New issue

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

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

Already on GitHub? # to your account

Closed
alsam opened this issue Mar 25, 2014 · 9 comments
Closed

make install is broken #13128

alsam opened this issue Mar 25, 2014 · 9 comments
Assignees

Comments

@alsam
Copy link

alsam commented Mar 25, 2014

Hello,

Looks like make install is broken:

make install
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: using gcc
cfg: no llnextgen found, omitting grammar-verification
cfg: including prepare rules
cfg: including install rules
make: *** No rule to make target `prepare-everything', needed by `install'.  Stop.
find . -name '*'|xargs egrep 'prepare\-everything'
./mk/install.mk:install: prepare-everything
...

digging a bit:

commit d62163188a21e5afc3d0f476eaf7856d91f715b2
Author: Brian Anderson <banderson@mozilla.com>
Date:   Mon Mar 24 12:04:27 2014 -0700

    Revert "mk: Run 'make install' through install.sh"

    This reverts commit e93709a911637194835268420e67d768ee19b5df.

and

git diff c796f89dbc3e61845d1e44d117acc471f583c417 d62163188a21e5afc3d0f476eaf7856d91f715b2 |less
...
+install: PREPARE_HOST=$(CFG_BUILD)
+install: PREPARE_TARGETS=$(CFG_TARGET)
+install: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
+install: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
+install: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
+install: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
+install: PREPARE_SOURCE_DIR=$(PREPARE_HOST)/stage$(PREPARE_STAGE)
+install: PREPARE_SOURCE_BIN_DIR=$(PREPARE_SOURCE_DIR)/bin
+install: PREPARE_SOURCE_LIB_DIR=$(PREPARE_SOURCE_DIR)/$(CFG_LIBDIR_RELATIVE)
+install: PREPARE_SOURCE_MAN_DIR=$(S)/man
+install: PREPARE_DEST_BIN_DIR=$(DESTDIR)$(CFG_PREFIX)/bin
+install: PREPARE_DEST_LIB_DIR=$(DESTDIR)$(CFG_LIBDIR)
+install: PREPARE_DEST_MAN_DIR=$(DESTDIR)$(CFG_MANDIR)/man1
+install: prepare-everything
...

Thanks

@huonw
Copy link
Member

huonw commented Mar 25, 2014

cc @brson

@brson
Copy link
Contributor

brson commented Mar 25, 2014

Working on it.

@alsam
Copy link
Author

alsam commented Mar 26, 2014

Thanks!
Indeed make install has passed smoothly.

@alsam
Copy link
Author

alsam commented Mar 28, 2014

Unfortunately make install is broken again:

sudo make install
...

prepare: tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustdoc-*.so
prepare: tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libfourcc-*.so
prepare: tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhexfloat-*.so
prepare: tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmorestack.a
prepare: tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler-rt.a
/mnt/disk2/opt/pkgs/rust/mk/install.mk:13: *** unterminated variable reference.  Stop.
sudo make -n install
...
install -m644 /mnt/disk2/opt/pkgs/rust/LICENSE-MIT tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu
install -m644 /mnt/disk2/opt/pkgs/rust/README.md tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu
install -m755 /mnt/disk2/opt/pkgs/rust/src/etc/install.sh tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu
/mnt/disk2/opt/pkgs/rust/mk/install.mk:13: *** unterminated variable reference.  Stop.
sh -x /mnt/disk2/opt/pkgs/rust/src/etc/install.sh tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu
...
+ test 0 -eq 0
+ err Option 'tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu' is not recognized
+ echo install: error: Option 'tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu' is not recognized
install: error: Option 'tmp/dist/rust-0.10-pre-x86_64-unknown-linux-gnu' is not recognized
+ exit 1

Does it make sense to file a new bug or just reopen this one?

Thanks!

@alexcrichton
Copy link
Member

What version of the compiler did you get that error on? I think it was fixed very recently in 476f0e3, but I could be wrong!

@alsam
Copy link
Author

alsam commented Mar 28, 2014

Hello Alex,
This is

gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
uname -a
Linux chisel 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

This is Kubuntu 13.10
Thanks!

@huonw
Copy link
Member

huonw commented Mar 28, 2014

@alsam I think @alexcrichton was wondering which version of rust you were building, i.e. if it included the revision 476f0e3.

@alsam
Copy link
Author

alsam commented Mar 28, 2014

You are quite right, it was really fixed with 476f0e3

...
install: /usr/local/bin/rustdoc
install: /usr/local/bin/rustc

    Rust is ready to roll.

Sorry for the false alarm.

@huonw
Copy link
Member

huonw commented Mar 28, 2014

Thanks for monitoring it closely. :)

compiler-errors pushed a commit to compiler-errors/rust that referenced this issue Oct 26, 2022
Implement invocation strategy config

Fixes rust-lang/rust-analyzer#10793

This allows to change how we run build scripts (and `checkOnSave`), exposing two configs:
- `once`: run the specified command once in the project root (the working dir of the server)
- `per_workspace`: run the specified command per workspace in the corresponding workspace

This also applies to `checkOnSave` likewise, though `once_in_root` is useless there currently, due to rust-lang/cargo#11007
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 20, 2025
…lang#13128)

changelog: [`use_self`] Skip if inside macro expansions of a `impl Self`
block
Fixes rust-lang#13092.
r? Alexendoo
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants