# Error when creating an executable of a script

**URL:** <https://racket.discourse.group/t/error-when-creating-an-executable-of-a-script/3122>\
**Category:** Questions & Answers\
**Created:** [August 25, 2024, 10:54pm UTC](https://racket.discourse.group/t/error-when-creating-an-executable-of-a-script/3122 "2024-08-25T22:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeb](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@Zeb](https://racket.discourse.group/u/Zeb)\
**Post date:** [August 25, 2024, 10:54pm UTC](https://racket.discourse.group/t/error-when-creating-an-executable-of-a-script/3122/1 "2024-08-25T22:54:26Z")

</div>

I tried to make an exe out of a script and got back this error:

```scheme
expand-elf: cannot move SHT_PROGBITS section
  context...:
   /data/data/com.termux/files/usr/share/racket/collects/compiler/private/elf.rkt:442:11: for-loop
   /data/data/com.termux/files/usr/share/racket/collects/compiler/private/elf.rkt:365:7
   /data/data/com.termux/files/usr/share/racket/collects/racket/private/kw-file.rkt:139:2: call-with-output-file*
   /data/data/com.termux/files/usr/share/racket/collects/racket/private/kw-file.rkt:125:2: call-with-input-file*
   /data/data/com.termux/files/usr/share/racket/collects/compiler/embed.rkt:1580:6
   /data/data/com.termux/files/usr/share/racket/collects/racket/private/more-scheme.rkt:206:2: call-handled-body

```

What's going on? I believe I've made exes successfully in the past on this platform (android 64-bit, termux). But definitely on prior versions. The only new thing I've done this time is use `define-runtime-path`.

---

<div class="post-metadata">

**Author:** ![Zeb](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@Zeb](https://racket.discourse.group/u/Zeb)\
**Post date:** [August 25, 2024, 11:04pm UTC](https://racket.discourse.group/t/error-when-creating-an-executable-of-a-script/3122/2 "2024-08-25T23:04:47Z")

</div>

I was able to produce the same error on a hello world. Something is failing when using raco exe for presumably any script.

---

<div class="post-metadata">

**Author:** ![mflatt](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/mflatt/32/6_2.png) [@mflatt](https://racket.discourse.group/u/mflatt)\
**Post date:** [August 26, 2024, 1:49pm UTC](https://racket.discourse.group/t/error-when-creating-an-executable-of-a-script/3122/3 "2024-08-26T13:49:45Z")

</div>

Thanks for the report!

It looks like variation in the layout of the C-compiled `starter` executable has exposed a problem with `raco exe`. Based inspection of the executables at [Index of /apt/termux-main/pool/main/r/racket/](https://termux.librehat.com/apt/termux-main/pool/main/r/racket/), I think I've tracked down the problem and pushed a repair: [raco exe: repair ELF update to add a section · racket/racket@bf288da · GitHub](https://github.com/racket/racket/commit/bf288da1171e884537760d2f5723ceb03840de98)
