# \#compile

**URL:** https://forum.elixirforum.com/tag/compile/208.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Elixir\_make - the dependency build is outdated](https://forum.elixirforum.com/t/elixir-make-the-dependency-build-is-outdated/74442)

<div class="topic-metadata">

**Author:** [@Gio](https://forum.elixirforum.com/u/Gio)\
**Replies:** 9\
**Last updated:** [March 2, 2026, 1:00pm UTC](https://forum.elixirforum.com/t/elixir-make-the-dependency-build-is-outdated/74442 "2026-03-02T13:00:33Z")

</div>

Hello On a new project I did the following, but it wouldn’t compile without errors. I also tried using the library locally, but had the same issue. {:hidraw, path: "../hidraw"} First I added {:hidraw, "~\> 0.2.2"} to…

---

## [Full Project Recompilation on Elixir 1.19 — How Can I Investigate the Root Cause?](https://forum.elixirforum.com/t/full-project-recompilation-on-elixir-1-19-how-can-i-investigate-the-root-cause/73605)

<div class="topic-metadata">

**Author:** [@nallwhy](https://forum.elixirforum.com/u/nallwhy)\
**Replies:** 2\
**Last updated:** [December 10, 2025, 8:25am UTC](https://forum.elixirforum.com/t/full-project-recompilation-on-elixir-1-19-how-can-i-investigate-the-root-cause/73605 "2025-12-10T08:25:50Z")

</div>

Hi everyone, I’m currently running into a strange full recompilation issue on Elixir 1.19 and I’d like some advice on how to further investigate the root cause. Environment Erlang/OTP 28.2 Elixir 1.19.4 (and all o…

---

## [Recompilation triggered after request in dev even without code changes (iex -S mix phx.server)](https://forum.elixirforum.com/t/recompilation-triggered-after-request-in-dev-even-without-code-changes-iex-s-mix-phx-server/71796)

<div class="topic-metadata">

**Author:** [@Tricote](https://forum.elixirforum.com/u/Tricote)\
**Replies:** 11\
**Last updated:** [October 9, 2025, 11:44am UTC](https://forum.elixirforum.com/t/recompilation-triggered-after-request-in-dev-even-without-code-changes-iex-s-mix-phx-server/71796 "2025-10-09T11:44:00Z")

</div>

Hi all, I’m seeing some unexpected recompilation behavior in dev, and I’m not sure what’s causing it. Here’s the flow: rm -rf \_build deps .elixir\_ls mix deps.get mix clean and mix compile I start my Phoenix app with M…

---

## [Compiling files with many function heads is very slow(OTP 26 issue?)](https://forum.elixirforum.com/t/compiling-files-with-many-function-heads-is-very-slow-otp-26-issue/57105)

<div class="topic-metadata">

**Author:** [@pejrich](https://forum.elixirforum.com/u/pejrich)\
**Replies:** 69\
**Last updated:** [October 3, 2025, 1:31pm UTC](https://forum.elixirforum.com/t/compiling-files-with-many-function-heads-is-very-slow-otp-26-issue/57105 "2025-10-03T13:31:25Z")

</div>

I have quite a few files in my project that have many function heads(100s to 1000s). I don’t think these can easily be replaced with another way of doing it. For example, transliterating Japanese into Latin characters. R…

---

## [How can I resolve the warning for a runtime-created component in the editor?](https://forum.elixirforum.com/t/how-can-i-resolve-the-warning-for-a-runtime-created-component-in-the-editor/71747)

<div class="topic-metadata">

**Author:** [@shahryarjb](https://forum.elixirforum.com/u/shahryarjb)\
**Replies:** 9\
**Last updated:** [July 19, 2025, 8:16pm UTC](https://forum.elixirforum.com/t/how-can-i-resolve-the-warning-for-a-runtime-created-component-in-the-editor/71747 "2025-07-19T20:16:58Z")

</div>

Hello colleagues, I’m creating a custom component at runtime, and I have no issues using it in the source code or wherever it’s needed — everything works fine at runtime. However, during development, if I try to referen…

---

## [Unable to compile the elixir project](https://forum.elixirforum.com/t/unable-to-compile-the-elixir-project/68741)

<div class="topic-metadata">

**Author:** [@rsshek](https://forum.elixirforum.com/u/rsshek)\
**Replies:** 13\
**Last updated:** [January 15, 2025, 1:24pm UTC](https://forum.elixirforum.com/t/unable-to-compile-the-elixir-project/68741 "2025-01-15T13:24:00Z")

</div>

Getting this error when running mix deps.compile. I tried rm -rf deps \_build mix.lock, reinstalling elixir via asdf. I am running out of ideas now. Any help is appreciated. ===\> Compiling src/rabbit\_heartbeat.erl faile…

---

## [Should I mix.compile for ARM and AMD in CI CD?](https://forum.elixirforum.com/t/should-i-mix-compile-for-arm-and-amd-in-ci-cd/67643)

<div class="topic-metadata">

**Author:** [@ppicom](https://forum.elixirforum.com/u/ppicom)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 2:27pm UTC](https://forum.elixirforum.com/t/should-i-mix-compile-for-arm-and-amd-in-ci-cd/67643 "2024-11-22T14:27:01Z")

</div>

Hello! :wave: I am working on a CI/CD pipeline with a setup that, to simplify, runs mix.compile in one step and mix.release in the next. Specifically, there are two compilation stages: one for ARM64 and another for AMD…

---

## [Plug.Conn.\_\_struct\_\_/0 is undefined](https://forum.elixirforum.com/t/plug-conn-struct-0-is-undefined/65696)

<div class="topic-metadata">

**Author:** [@chocolatedonut](https://forum.elixirforum.com/u/chocolatedonut)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 9:25am UTC](https://forum.elixirforum.com/t/plug-conn-struct-0-is-undefined/65696 "2024-08-27T09:25:24Z")

</div>

:appsignal\_plug, a dependency of :appsignal\_phoenix, fails on this line, with an error Plug.Conn.\_\_struct\_\_/0 is undefined. Any idea on what might be causing this, and how to fix it, appreciated. :pray: What I’ve tried…

---

## [Torchx compile failure: \*\* (MatchError) no match of right hand side value: {:error, :bad\_eocd}](https://forum.elixirforum.com/t/torchx-compile-failure-matcherror-no-match-of-right-hand-side-value-error-bad-eocd/64792)

<div class="topic-metadata">

**Author:** [@ghannam80](https://forum.elixirforum.com/u/ghannam80)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 2:59pm UTC](https://forum.elixirforum.com/t/torchx-compile-failure-matcherror-no-match-of-right-hand-side-value-error-bad-eocd/64792 "2024-07-07T14:59:52Z")

</div>

Hello , Getting the below error about matching while trying to use livebook or even trying the Mix.install from the command line : Blockquote iex(1)\> Mix.install( …(1)\> \[ …(1)\> {:kino\_bumblebee, “~\> 0.5.0”}, …

---

## [Mix.Task.run "deps.compile", \["dep\_name", "--force"\] not compiling](https://forum.elixirforum.com/t/mix-task-run-deps-compile-dep-name-force-not-compiling/12114)

<div class="topic-metadata">

**Author:** [@kip](https://forum.elixirforum.com/u/kip)\
**Replies:** 18\
**Last updated:** [June 20, 2024, 8:44pm UTC](https://forum.elixirforum.com/t/mix-task-run-deps-compile-dep-name-force-not-compiling/12114 "2024-06-20T20:44:19Z")

</div>

I have a dep that might need recompiling when the host app configuration changes. That requires a forced compile since by design deps aren’t automatically recompiled (which is the right strategy). At the command line I…

---

## [How to speed up the start of \`mix test\`?](https://forum.elixirforum.com/t/how-to-speed-up-the-start-of-mix-test/43498)

<div class="topic-metadata">

**Author:** [@scottming](https://forum.elixirforum.com/u/scottming)\
**Replies:** 23\
**Last updated:** [June 3, 2024, 1:06pm UTC](https://forum.elixirforum.com/t/how-to-speed-up-the-start-of-mix-test/43498 "2024-06-03T13:06:58Z")

</div>

I work on a very large umbrella project. I did this config in my web app: config :logger, level: String.to\_atom(System.get\_env("LOGGER\_LEVEL") || "info"), handle\_otp\_reports: true, handle\_sasl\_reports: true confi…

---

## [Erlang dependency compiled with wrong Erlang version](https://forum.elixirforum.com/t/erlang-dependency-compiled-with-wrong-erlang-version/61028)

<div class="topic-metadata">

**Author:** [@nahoj](https://forum.elixirforum.com/u/nahoj)\
**Replies:** 14\
**Last updated:** [January 17, 2024, 7:13am UTC](https://forum.elixirforum.com/t/erlang-dependency-compiled-with-wrong-erlang-version/61028 "2024-01-17T07:13:45Z")

</div>

Hello, I’m a newcomer to both Elixir and Erlang and I’ve run into an issue and I hope someone here can help me. When using mix compile I seem to be getting a compatibility error, that the beam file is compiled for a lat…

---

## [Advice to avoid simple transitive compile-time dependency](https://forum.elixirforum.com/t/advice-to-avoid-simple-transitive-compile-time-dependency/60528)

<div class="topic-metadata">

**Author:** [@gmile](https://forum.elixirforum.com/u/gmile)\
**Replies:** 8\
**Last updated:** [December 23, 2023, 4:31pm UTC](https://forum.elixirforum.com/t/advice-to-avoid-simple-transitive-compile-time-dependency/60528 "2023-12-23T16:31:05Z")

</div>

I am trying to understand why transitive compile-time dependency is there, and what’s a good strategy to remove it. The mix app for example below is available here. In a nutshell, I have these 3 modules: # a.ex defmodu…

---

## [Error upgrading to 1.15.x - associated module xyz is not an Ecto Schema](https://forum.elixirforum.com/t/error-upgrading-to-1-15-x-associated-module-xyz-is-not-an-ecto-schema/60207)

<div class="topic-metadata">

**Author:** [@kxkannan](https://forum.elixirforum.com/u/kxkannan)\
**Replies:** 17\
**Last updated:** [December 12, 2023, 6:35pm UTC](https://forum.elixirforum.com/t/error-upgrading-to-1-15-x-associated-module-xyz-is-not-an-ecto-schema/60207 "2023-12-12T18:35:12Z")

</div>

We are trying to upgrade to 1.15.x and running into this issue: Compiling nnn files (.ex) warning: invalid association \`logs\` in schema MyProject.Data.Alert: associated module MyProject.Data.AlertLog is not an Ecto sche…

---

## [Could not compile dependency :erlexec with mix deps.compile](https://forum.elixirforum.com/t/could-not-compile-dependency-erlexec-with-mix-deps-compile/45152)

<div class="topic-metadata">

**Author:** [@Skoda091](https://forum.elixirforum.com/u/Skoda091)\
**Replies:** 4\
**Last updated:** [December 7, 2023, 6:55am UTC](https://forum.elixirforum.com/t/could-not-compile-dependency-erlexec-with-mix-deps-compile/45152 "2023-12-07T06:55:47Z")

</div>

I’m running into an error when compiling erlexec with mix deps.compile erlexec. Error Message System Information OS: macOS Monterey 12.1 (21C52) CPU: Apple M1 Pro Erlang: 24.1.7 Elixir: 1.13.0-otp-24 Phoenix: 1.6…

---

## [How can I prevent the LSP from invoking my custom Mix compiler?](https://forum.elixirforum.com/t/how-can-i-prevent-the-lsp-from-invoking-my-custom-mix-compiler/59802)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 8\
**Last updated:** [November 24, 2023, 5:13pm UTC](https://forum.elixirforum.com/t/how-can-i-prevent-the-lsp-from-invoking-my-custom-mix-compiler/59802 "2023-11-24T17:13:49Z")

</div>

Background So I’ve been hacking away at a simple styled component library for Phoenix (source here if you’re curious - not done!) which uses a custom Mix compiler to compile the stylesheet. I’d been dealing with a weird…

---

## [\`mix do blog.build, compile --force\` does not perform compile step](https://forum.elixirforum.com/t/mix-do-blog-build-compile-force-does-not-perform-compile-step/20765)

<div class="topic-metadata">

**Author:** [@zwippie](https://forum.elixirforum.com/u/zwippie)\
**Replies:** 2\
**Last updated:** [October 18, 2023, 3:36pm UTC](https://forum.elixirforum.com/t/mix-do-blog-build-compile-force-does-not-perform-compile-step/20765 "2023-10-18T15:36:00Z")

</div>

I have a custom mix task blog.build that converts markdown files to html files and updates a file current\_release in the project root folder with some info about the generated files. # Mix.Tasks.Blog.Build def run(\_) do…

---

## [Phoenix.CodeReloader won't compile - Phoenix 1.7.7, 1.7.8](https://forum.elixirforum.com/t/phoenix-codereloader-wont-compile-phoenix-1-7-7-1-7-8/58877)

<div class="topic-metadata">

**Author:** [@LionelHutz](https://forum.elixirforum.com/u/LionelHutz)\
**Replies:** 9\
**Last updated:** [October 11, 2023, 4:49pm UTC](https://forum.elixirforum.com/t/phoenix-codereloader-wont-compile-phoenix-1-7-7-1-7-8/58877 "2023-10-11T16:49:48Z")

</div>

Without (knowingly) changing anything in my workflow, my Elixir/Erlang/Phoenix versions, or any dependencies etc, I suddenly started getting this error when trying to compile my new umbrella project: == Compilation erro…

---

## [Compilation Errors showing at random places in log](https://forum.elixirforum.com/t/compilation-errors-showing-at-random-places-in-log/57175)

<div class="topic-metadata">

**Author:** [@sirfitz](https://forum.elixirforum.com/u/sirfitz)\
**Replies:** 6\
**Last updated:** [July 24, 2023, 8:28am UTC](https://forum.elixirforum.com/t/compilation-errors-showing-at-random-places-in-log/57175 "2023-07-24T08:28:47Z")

</div>

When running an Elixir app, whenever there are errors in compilation, it shows at some random place (usually closer to the top) of the logs, so I have to scroll all the way up and sift through the logs to figure out what…

---

## [Error compiling elixir 1.15.2 on amazon linux with otp-26.0.2](https://forum.elixirforum.com/t/error-compiling-elixir-1-15-2-on-amazon-linux-with-otp-26-0-2/57012)

<div class="topic-metadata">

**Author:** [@sigu](https://forum.elixirforum.com/u/sigu)\
**Replies:** 15\
**Last updated:** [July 14, 2023, 6:47pm UTC](https://forum.elixirforum.com/t/error-compiling-elixir-1-15-2-on-amazon-linux-with-otp-26-0-2/57012 "2023-07-14T18:47:16Z")

</div>

The error Generated elixir app ==\> bootstrap (compile) error: defmacro var!/2 defines defaults multiple times. Elixir allows defaults to be declared once per definition. Instead of: def foo(:first\_clause, b \\\\ :defa…

---

## [Under Elixir 1.15, \`unicode\` lib dependency only works after first compile](https://forum.elixirforum.com/t/under-elixir-1-15-unicode-lib-dependency-only-works-after-first-compile/57001)

<div class="topic-metadata">

**Author:** [@djm](https://forum.elixirforum.com/u/djm)\
**Replies:** 7\
**Last updated:** [July 12, 2023, 8:51am UTC](https://forum.elixirforum.com/t/under-elixir-1-15-unicode-lib-dependency-only-works-after-first-compile/57001 "2023-07-12T08:51:35Z")

</div>

This one has me scratching my head. I author the table\_rex library; which is a little tool which outputs nicely spaced ascii data tables at the command line. I recently accepted a PR to enable support for languages oth…

---

## [Compilation issues on umbrella project](https://forum.elixirforum.com/t/compilation-issues-on-umbrella-project/56451)

<div class="topic-metadata">

**Author:** [@arpan](https://forum.elixirforum.com/u/arpan)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 2:14pm UTC](https://forum.elixirforum.com/t/compilation-issues-on-umbrella-project/56451 "2023-06-12T14:14:04Z")

</div>

Hello everyone, I am currently working on an Elixir project that utilizes an umbrella app setup. Unfortunately, we are encountering numerous compilation issues that are adversely affecting our development experience. I …

---

## [Show mix compile Warnings Every Time](https://forum.elixirforum.com/t/show-mix-compile-warnings-every-time/56210)

<div class="topic-metadata">

**Author:** [@jnnks](https://forum.elixirforum.com/u/jnnks)\
**Replies:** 2\
**Last updated:** [May 31, 2023, 2:43pm UTC](https://forum.elixirforum.com/t/show-mix-compile-warnings-every-time/56210 "2023-05-31T14:43:15Z")

</div>

When I compile my project with mix compile, there warnings are shown on the commandline. When I run the command again, the warnings do not show up anymore. How can I make mix compile show the warnings every time?

---

## [How to make a library perform a specific behavior when compiling?](https://forum.elixirforum.com/t/how-to-make-a-library-perform-a-specific-behavior-when-compiling/56176)

<div class="topic-metadata">

**Author:** [@nallwhy](https://forum.elixirforum.com/u/nallwhy)\
**Replies:** 5\
**Last updated:** [May 30, 2023, 6:34pm UTC](https://forum.elixirforum.com/t/how-to-make-a-library-perform-a-specific-behavior-when-compiling/56176 "2023-05-30T18:34:59Z")

</div>

For example, ex\_cldr download some files while compiling. I’m making Doumi.Port that helps to use Python, Ruby in Elixir application. Libraries that use Doumi.Port needs to install Python dependencies while compiling. …

---

## [Embedding data files at compile time](https://forum.elixirforum.com/t/embedding-data-files-at-compile-time/55849)

<div class="topic-metadata">

**Author:** [@darkmarmot](https://forum.elixirforum.com/u/darkmarmot)\
**Replies:** 4\
**Last updated:** [May 12, 2023, 9:59pm UTC](https://forum.elixirforum.com/t/embedding-data-files-at-compile-time/55849 "2023-05-12T21:59:59Z")

</div>

I’ve got some external data that I was hoping to embed in my Application as a compile time string. I got it working by making a module attribute (evaluated at compile time) that does a File.read of the priv directory. M…

---

## [Copying \_build, deps and recompiling in different docker container (CI/CD)](https://forum.elixirforum.com/t/copying-build-deps-and-recompiling-in-different-docker-container-ci-cd/54811)

<div class="topic-metadata">

**Author:** [@tino415](https://forum.elixirforum.com/u/tino415)\
**Replies:** 11\
**Last updated:** [April 26, 2023, 7:44pm UTC](https://forum.elixirforum.com/t/copying-build-deps-and-recompiling-in-different-docker-container-ci-cd/54811 "2023-04-26T19:44:49Z")

</div>

Hello all, today I had interesting problem in our CI/CD pipeline. We set up pipeline so in one container was run mix deps.get, MIX\_ENV=test mix deps.compile and MIX\_ENV=test mix compile then we copied \_build and deps fo…

---

## [Can't compile a Phoenix project (could not compile dependency...)](https://forum.elixirforum.com/t/cant-compile-a-phoenix-project-could-not-compile-dependency/54742)

<div class="topic-metadata">

**Author:** [@ca1989](https://forum.elixirforum.com/u/ca1989)\
**Replies:** 12\
**Last updated:** [March 23, 2023, 12:25pm UTC](https://forum.elixirforum.com/t/cant-compile-a-phoenix-project-could-not-compile-dependency/54742 "2023-03-23T12:25:29Z")

</div>

Hi all, I have a project named zdb which uses a dependency defined as {:oha, \[path: "../oha"\]} The oha dependency itself compiles correctly: oha on dev via 💧 v1.14.3 (OTP 25) \> rm -rf \_build deps && mix deps.get && mi…

---

## [Run command after each compile](https://forum.elixirforum.com/t/run-command-after-each-compile/52376)

<div class="topic-metadata">

**Author:** [@kanishka](https://forum.elixirforum.com/u/kanishka)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 1:01am UTC](https://forum.elixirforum.com/t/run-command-after-each-compile/52376 "2022-12-15T01:01:30Z")

</div>

How does one run a command automatically after compile/recompile completes? We generate graphql client based on absinthe output. Are watchers the only way to accomplish this or is there a post compile hook?

---

## [NMAKE: fatal error U1052: file 'Makefile.win' not found ( VIX, Image )](https://forum.elixirforum.com/t/nmake-fatal-error-u1052-file-makefile-win-not-found-vix-image/52208)

<div class="topic-metadata">

**Author:** [@miguelszerman](https://forum.elixirforum.com/u/miguelszerman)\
**Replies:** 2\
**Last updated:** [December 3, 2022, 2:32pm UTC](https://forum.elixirforum.com/t/nmake-fatal-error-u1052-file-makefile-win-not-found-vix-image/52208 "2022-12-03T14:32:49Z")

</div>

I’m trying to install Image library in Windows 10. So far: I added {:image, "~\> 0.14.0"} to mix.exs. I installed libvips by downloading and extracting 'vips-dev-w64-web-8.13.3’ into my Program Files folder. Then I adde…

---

## [Compile Elixir from source on OpenBSD](https://forum.elixirforum.com/t/compile-elixir-from-source-on-openbsd/51416)

<div class="topic-metadata">

**Author:** [@GuruGuru](https://forum.elixirforum.com/u/GuruGuru)\
**Replies:** 7\
**Last updated:** [November 1, 2022, 9:34am UTC](https://forum.elixirforum.com/t/compile-elixir-from-source-on-openbsd/51416 "2022-11-01T09:34:37Z")

</div>

Hello, I have Erlang-OTP 26 installed from source and now I’m trying to compile Elixir (1.15) from source on OpenBSD. I followed this instructions : Provisioning script to compile elixir on OpenBSD 6.6 · GitHub when I …

[Next page](https://forum.elixirforum.com/tag/compile/208.md?match_all_tags=true&page=1&tags%5B%5D=compile)
