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

Builds runs locally even with "Build on remote target" checked #10845

Open
ghost opened this issue Sep 6, 2023 · 5 comments
Open

Builds runs locally even with "Build on remote target" checked #10845

ghost opened this issue Sep 6, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2023

Environment

  • IntelliJ Rust plugin version: 0.4.200.5421-232
  • Rust toolchain version: 1.71.0 (8ede3aae2 2023-07-12) x86_64-apple-darwin
  • IDE name and version: IntelliJ IDEA 2023.2.1 Ultimate Edition (IU-232.9559.62)
  • Operating system: macOS 13.4
  • Macro expansion: enabled
  • Additional experimental features: org.rust.macros.proc.attr

Problem description

I am trying to run the build on a docker target, a debian rust image with some additional dependencies installed. I have build on remote target checked, but the build is still occurring on my local machine (OSX).

Screenshot 2023-09-06 at 4 47 52 PM

/Users/bphillips/.cargo/bin/cargo build --color=always --message-format=json-diagnostic-rendered-ansi
...
  = note: LC_ALL="C" PATH="/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Users/bphillips/.cargo/bin/:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "x86_64" "-m64" "/var/folders/gx/bxl_vdz105v_jskhz18tz3900000gn/T/rustcr3hPdC/symbols.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.18ewxt44hgt92c0i.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.1o159ayar1cmggp2.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.1pxzo6ttuaaogdmw.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.1q24q72bbby83o0n.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.1t7dv5kw74kykj15.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.22mrqtumzemi5jdv.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.254p623nnoddzxnn.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.2h1dawe0c7kyvj7q.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.2x1kkpyb7vn3enhu.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.3kv57yo08up30h7w.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.3kvis5bomi77h6o4.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.3s4g3hv99gvpkrum.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.3z1hpye9mwstool8.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.408il0f31b09gpbz.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.40czoa1x84ji70o1.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.47p042mjqw5otqrl.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.4k8cvbg1cjzpk7j0.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.4ogzicxohqt41t5q.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.4pdr9zywqxz9ipi3.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.51rppefsqqes7umz.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.56bu5eet92jrkqcv.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.587moz8ss12tzsw4.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.5a3rwtgl3yss1wlj.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.5d0o9hefpspux90g.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.d9u8cv7l52smxcf.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.elsh6wogjjscuyc.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.fzmukey02golzni.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.k4jzt2ajg5nqf2c.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.k9lrru0et76tla2.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.nj8q40vfni8ufbq.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.q1afe53s9hvscfj.rcgu.o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632.21nyfc86aiszye8b.rcgu.o" "-L" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps" "-L" "/Users/bphillips/workspace/exos-aeron-bindings/aeron/cppbuild/Release/lib" "-L" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-laeron" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-6624200dfedfc052.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-126fc802ec161823.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-43f8e2f299c70565.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-902b9cb59cf0e7dc.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-551696919ea5a0ce.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-665ed3f7d67b8bed.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-e481ebd1a38e61b5.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-94cd52f09bdeb366.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-8af4befc2eeae01c.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-bb2a564ae6dbf36e.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-50af747198c2d5e6.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-9941ce975025e581.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-699b85f808fe3146.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-bb20fb5f7f95cc4e.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-6a91feb4c72083b2.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-51440ec7093ee569.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-0844b1adb4747323.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-824b50d5d74d440c.rlib" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-869678be6be78072.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/bphillips/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/bphillips/workspace/exos-aeron-bindings/target/debug/deps/exos_nyx-0d2169b9b2262632" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: warning: ignoring file /Users/bphillips/workspace/exos-aeron-bindings/aeron/cppbuild/Release/lib/libaeron.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 )
          Undefined symbols for architecture x86_64:
...

Have I misconfigured the build target or am I misunderstanding something about the current support for docker based development workflows? Thanks

@ghost
Copy link
Author

ghost commented Sep 6, 2023

Same behavior with older versions of IDEs and the plugin, I tried both IntelliJ and CLion

@Maksim20023
Copy link
Collaborator

Hi! Thank you for reaching us.
Please provide a screenshot of the run target window (Run | Edit configuration | Manage targets.. ) and step-by-step algorithm (including button or hotkey you use to build) so I can accurately reproduce and investigate the issue.

@ghost
Copy link
Author

ghost commented Sep 8, 2023

Hi @Maksim20023, thanks for the reply. I've attached a screenshot of my run targets below. I've also included the Dockerfile I use. I'm able to reproduce by pressing the "Run" play button in the UI or using the hotkey ^R. I see the same behavior regardless of whether I run the "Build" task "Before Launch" in the Run Configuration.

# syntax=docker/dockerfile:1
FROM rust:1.72-bookworm

ARG AERON_VERSION=1.42.1

RUN apt update \
    && apt install -y \
      clang \
      cmake \
      default-jdk \
      default-jre \
      libclang-dev \
      llvm-dev

RUN git clone --depth 1 --branch $AERON_VERSION https://github.com/real-logic/aeron /home/aeron

WORKDIR /home/aeron
RUN cppbuild/cppbuild --no-tests

WORKDIR /home
Screenshot 2023-09-08 at 10 11 10 AM

@Maksim20023
Copy link
Collaborator

Thanks for providing the screenshot and STR. Could you please try to change the Project default target to the Local Machine in the Run Targets menu and then try to build again (by pressing the Run play button in the UI)?

@ghost
Copy link
Author

ghost commented Sep 8, 2023

Now it's building in docker, thanks! Any idea why it behaves that way?

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

1 participant