The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Flemmbrav on September 05, 2020, 03:55:47 PM

Title: Can't compile makeobj anymore
Post by: Flemmbrav on September 05, 2020, 03:55:47 PM
Hey everyone,

the pak192.comic github automaticly generates makeobj on every commit. (Github Actions on Ubuntu)
This has been working until september 2nd.
Both commits i pushed today failed to compile makeobj.

Code to compile is this:

Code: [Select]
jobs:
  compile_pak192-comic:

    runs-on: ubuntu-latest
   
    steps:
    - uses: actions/checkout@v1

    - name: install_dependencies
      run: |
        sudo apt-get -y update
        sudo apt-get -ym install libpng-dev
        sudo apt-get -ym install libsdl2-dev
        sudo apt-get -ym install libbz2-dev
        sudo apt-get -ym install autoconf
        svn checkout svn://servers.simutrans.org/simutrans simutrans
    - name: setup
      run: |
        cd simutrans/trunk
        autoconf
        ./configure
        cat config.default >>/dev/stderr
    - name: make makeobj
      run: |
          cd simutrans/trunk/makeobj
          make
          mv makeobj ../../..
          cd ../../..
          rm -rf simutrans

    - name: make pak192
      run: |
        bash COMPILE.sh
    - name: Rename result
      run: |
        mv compiled pak192.comic-nightly
        zip -r pak192-nightly.zip pak192.comic-nightly

    - name: Update binaries of Nightly Release
      uses: svenstaro/upload-release-action@v1-release
      with:
        repo_token: ${{ secrets.GITHUB_TOKEN }}
        file: ./pak192-nightly.zip
        asset_name: pak192-nightly.zip
        tag: Nightly
        overwrite: true

The code failes at "make makeobj" with the following in the command line:
https://pipelines.actions.githubusercontent.com/WV8lknmbYSKMkjpXH2QBH2zxLLlVLHUme5xKN6zds9VeAnwLqk/_apis/pipelines/1/runs/366/signedlogcontent/6?urlExpires=2020-09-05T15%3A54%3A35.8141902Z&urlSigningMethod=HMACV1&urlSignature=JNxyzWrNfISqQnJ1%2F50KbGWPPgUtPLNJCVzzdtzCdD4%3D
Title: Re: Can't compile makeobj anymore
Post by: Dwachs on September 05, 2020, 05:02:51 PM
I can compile it. The link does not work anymore.

Edit: my repo was not up-to-date.
Title: Re: Can't compile makeobj anymore
Post by: Flemmbrav on September 05, 2020, 05:11:32 PM
Does this link work for you?
The interesting part starts at line 4340.

https://pastebin.com/MyYKPjWv
Title: Re: Can't compile makeobj anymore
Post by: Andarix on September 05, 2020, 05:31:20 PM
compile logs (https://github.com/Andarix/simutrans/actions)

hashtable_tpl.h works for windows

not works for Linux/MacOS.
Title: Re: Can't compile makeobj anymore
Post by: Dwachs on September 05, 2020, 05:33:00 PM
I tried to fix this with r9215. Please test.
Title: Re: Can't compile makeobj anymore
Post by: Flemmbrav on September 05, 2020, 05:54:08 PM
Works fine, thanks a lot for the help!
Title: Re: Can't compile makeobj anymore
Post by: Andarix on September 05, 2020, 05:57:21 PM
r9215 works

https://github.com/Andarix/simutrans/releases (https://github.com/Andarix/simutrans/releases)