{"id":22218591,"url":"https://github.com/megahertz/fpc-trunk","last_synced_at":"2025-03-25T07:22:54.228Z","repository":{"id":66074171,"uuid":"141479658","full_name":"megahertz/fpc-trunk","owner":"megahertz","description":"Free Pascal Compiler built from trunk repository","archived":false,"fork":false,"pushed_at":"2019-12-03T17:52:36.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T19:55:24.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/megahertz/fpc-trunk/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megahertz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-18T19:17:12.000Z","updated_at":"2023-03-17T12:12:23.000Z","dependencies_parsed_at":"2023-02-20T18:30:16.210Z","dependency_job_id":null,"html_url":"https://github.com/megahertz/fpc-trunk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Ffpc-trunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Ffpc-trunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Ffpc-trunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Ffpc-trunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megahertz","download_url":"https://codeload.github.com/megahertz/fpc-trunk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245415619,"owners_count":20611578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T22:27:14.886Z","updated_at":"2025-03-25T07:22:54.205Z","avatar_url":"https://github.com/megahertz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fpc-trunk\n\n[![](https://images.microbadger.com/badges/image/megahertz/fpc-trunk.svg)](https://microbadger.com/images/megahertz/fpc-trunk \"Get your own image badge on microbadger.com\")\n![](https://github.com/megahertz/fpc-trunk/workflows/.github/workflows/main.yml/badge.svg)\n\nFree Pascal Compiler built weekly from trunk repository using\n[alpine linux image](https://hub.docker.com/_/alpine/).\n\nThis image is built from trunk repository which contains all fixes and\nimprovements since the last official release, so please try it if\nyou have any problems. Of course, it may also contain new bugs.\n\nIf you need the latest stable FPC image instead of dev build, try the\n[frolvlad's image](https://hub.docker.com/r/frolvlad/alpine-fpc/).\n\n## Usage\n\n1. Create a program, for example:\n\n    ```pascal\n    { app.pas }\n    program app;\n\n    begin\n      WriteLn('Hi from docker');\n    end.\n\n    ```\n\n2. Create a Dockerfile\n\n    ```dockerfile\n    # Dockerfile\n    FROM megahertz/fpc-trunk:3.1.1-39472\n\n    COPY app.pas /src/my-program/app.pas\n    RUN fpc /src/my-program/app.pas\n    CMD /src/my-program/app\n\n    ```\n\n3. Build the image and run\n\n    ```bash\n    docker build . -t app\n    docker run app\n    ```\n\n### Troubleshooting\n\n#### My app can't be run on another alpine image\n\nIn most cases, the app can't find ld-linux-x86-64.so.2. There are two\nways to fix that:\n\n- Add to your Dockerfile for the target image:\n\n    ```dockerfile\n    RUN ln -s /lib /lib64 \u0026\u0026 \\\n        ln -s /lib/ld-musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2\n    ```\n\n- Compile your app with the following FPC flag:\n\n    `-FL/lib/libc.musl-x86_64.so.1`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegahertz%2Ffpc-trunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegahertz%2Ffpc-trunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegahertz%2Ffpc-trunk/lists"}