# Failed to compile contracts without error logs

**URL:** https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259
**Category:** Sway
**Tags:** faqs
**Created:** [December 10, 2024, 3:43am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259 "2024-12-10T03:43:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)
#### Post date: [December 10, 2024, 3:43am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/1 "2024-12-10T03:43:50Z")

</div>

`forc build` return error without showing any errors, any ideas?

```auto
error: Could not generate the entry method. See errors above for more details.
____

  Aborting due to 1 error.
error: Failed to compile contracts

```

Fuelup show

```auto
Installed toolchains
--------------------
latest-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
nightly-2024-05-28-x86_64-unknown-linux-gnu
testnet-x86_64-unknown-linux-gnu

active toolchain
----------------
latest-x86_64-unknown-linux-gnu (default)
  forc : 0.66.5
    - forc-client
      - forc-deploy : 0.66.5
      - forc-run : 0.66.5
    - forc-crypto : 0.66.5
    - forc-debug : 0.66.5
    - forc-doc : 0.66.5
    - forc-fmt : 0.66.5
    - forc-lsp : 0.66.5
    - forc-tx : 0.66.5
    - forc-wallet : 0.11.1
  fuel-core : 0.40.0
  fuel-core-keygen : 0.40.0

fuels versions
--------------
forc : 0.66.10
forc-wallet : 0.66.9

```

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [December 10, 2024, 5:03am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/2 "2024-12-10T05:03:06Z")

</div>

Hey @eesheng, hope you are doing well. Could you share the code so that I can reproduce it locally?

---

<div class="post-metadata">

### Author: ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)
#### Post date: [December 10, 2024, 7:04am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/3 "2024-12-10T07:04:53Z")

</div>

Hi yes, [GitHub - Yune-Protocol/v1-core](https://github.com/Yune-Protocol/v1-core)

To reproduce the error, run `forc build` within the Vault directory.

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [December 10, 2024, 10:05am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/4 "2024-12-10T10:05:27Z")

</div>

@eesheng it seems to be an issue with the interface. maybe it is not being imported correctly. I will further look into it but it seems that an interface is being the issue here

---

<div class="post-metadata">

### Author: ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)
#### Post date: [December 10, 2024, 11:01am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/5 "2024-12-10T11:01:08Z")

</div>

Hi interfaces are imported correctly, it did compiled correctly but after some changes to functions, it somehow shows this errors. It is peculiar that it’s not logging anything.

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [December 10, 2024, 11:50am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/6 "2024-12-10T11:50:59Z")

</div>

I commented out the `YuneVault` implementation and it was compiling correctly. then I again uncommented the Vault implementation, and the error started popping up again. Thus, it has narrowed down to the Vault.

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [December 10, 2024, 12:13pm UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/7 "2024-12-10T12:13:19Z")

</div>

I am coordinating with the team on it. will get back to you soon

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [December 10, 2024, 1:30pm UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/8 "2024-12-10T13:30:27Z")

</div>

@eesheng, the issue was that the contract had multiple methods with the same name `total_supply`. One from the SRC20 and other from the YuneVault. I renamed one of the method to `total_supply2` and it worked. Here is the code for the [ref](https://github.com/Nazeeh21/test-v1-core). The confusion arose because the compiler was not generating a friendly error.

---

<div class="post-metadata">

### Author: ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)
#### Post date: [December 11, 2024, 3:47am UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/9 "2024-12-11T03:47:25Z")

</div>

Wow awesome thanks, I think it’s best to include an error log for utilizing same function name.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/57d5a345cc15a64b636e0d56e042857f8a0e80b1.png) [@system](https://forum.fuel.network/u/system)
#### Post date: [December 31, 2024, 11:47pm UTC](https://forum.fuel.network/t/failed-to-compile-contracts-without-error-logs/7259/10 "2024-12-31T23:47:55Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
