digego / extempore

A cyber-physical programming environment
1.41k stars 127 forks source link

cmake error: llvm tar download 404s #412

Closed fiskr closed 3 months ago

fiskr commented 9 months ago

Hello, I was following the instructions to build locally, in particular:

git clone https://github.com/digego/extempore && mkdir extempore/build && cd extempore/build && cmake -DASSETS=ON .. && make && sudo make install

On this step I get an error:

$ cmake -DASSETS=ON .. && make && sudo make install
-- Configuring done
-- Generating done
-- Build files have been written to: path/to/extempore/build
Consolidate compiler generated dependencies of target pcre
[  5%] Built target pcre
[ 12%] Built target portaudio_static
[ 13%] Performing download step (download, verify and extract) for 'LLVM'
-- verifying file...
       file='path/to/extempore/build/llvm/src/llvm-3.8.0.src-patched-for-extempore.tar.xz'
-- MD5 hash of
    path/to/extempore/build/llvm/src/llvm-3.8.0.src-patched-for-extempore.tar.xz
  does not match expected value
    expected: '600ee9a94d2e104f53be739568f3508e'
      actual: 'd41d8cd98f00b204e9800998ecf8427e'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='path/to/extempore/build/llvm/src/llvm-3.8.0.src-patched-for-extempore.tar.xz'
   timeout='none'
   inactivity timeout='none'
-- Using src='http://extempore.moso.com.au/extras/llvm-3.8.0.src-patched-for-extempore.tar.xz'
-- [download 0% complete]
CMake Error at LLVM-stamp/download-LLVM.cmake:170 (message):
  Each download failed!

    error: downloading 'http://extempore.moso.com.au/extras/llvm-3.8.0.src-patched-for-extempore.tar.xz' failed
          status_code: 22
          status_string: "HTTP response code said error"
          log:
          --- LOG BEGIN ---
            Trying 66.175.214.198:80...

  Connected to extempore.moso.com.au (66.175.214.198) port 80 (#0)

  GET /extras/llvm-3.8.0.src-patched-for-extempore.tar.xz HTTP/1.1

  Host: extempore.moso.com.au

  User-Agent: curl/7.80.0

  Accept: */*

  Mark bundle as not supporting multiuse

  HTTP/1.1 404 Not Found

  Date: Fri, 16 Feb 2024 21:15:03 GMT

  Server: Apache/2.4.29 (Ubuntu)

  Content-Length: 283

  Content-Type: text/html; charset=iso-8859-1

  The requested URL returned error: 404

  Closing connection 0

          --- LOG END ---

When I check the URL in the browser I confirm I see a 404. Any suggestions on how to move forward?

This is on Ubuntu 22.04, by the way.

Thanks!

garlic0x1 commented 4 months ago

I also am not able to connect to extempore.moso.com.au

digego commented 4 months ago

This is an issue. I'll have to get back to you on a resolution. Hopefully sometime next week.

Cheers, Andrew

On Fri, 5 July 2024, 11:00 pm garlic0x1, @.***> wrote:

I also am not able to connect to extempore.moso.com.au

— Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/412#issuecomment-2210836842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHPKIKYU34PHR2F3IQK5LZK2KGHAVCNFSM6AAAAABDMV2C7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQHAZTMOBUGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

garlic0x1 commented 4 months ago

Any update? I really want to try this.

digego commented 4 months ago

Ok, you should be good to go. I've successfully compiled and run on linux with a minimal build (no external libraries):

cmake ../ -DASSETS=OFF -DEXTERNAL_SHLIBS_AUDIO=OFF -DEXTERNAL_SHLIBS_GRAPHICS=OFF && make

Note that extempore still only supports x86. Also almost certainly have trouble with EXTERNAL_SHLIBS_GRAPHICS so only give that a go if (a) you're on linux or windows (def not osx) and (b) you're brave :)

There are no assets available at the moment, but if you're keen I can track them down for you.

Cheers, Andrew.

On Sat, Jul 27, 2024 at 3:29 PM garlic0x1 @.***> wrote:

Any update? I really want to try this.

— Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/412#issuecomment-2253781921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHPKPIAXDUQ2K4KIQUL3LZOMV3JAVCNFSM6AAAAABDMV2C7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTG44DCOJSGE . You are receiving this because you commented.Message ID: @.***>

juanmeleiro commented 3 months ago

This still doesn't work for me. On a fresh clone, even on the latest release tag, it gives the same error. Is there some way to disable building LLVM?

digego commented 3 months ago

Try from head, not from a release tag.

On Fri, 23 Aug 2024, 6:40 am Juan Meleiro, @.***> wrote:

This still doesn't work for me. On a fresh clone, even on the latest release tag, it gives the same error. Is there some way to disable building LLVM?

— Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/412#issuecomment-2305592968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHPKN6SFLCPEJQMVYDOQLZSZEEJAVCNFSM6AAAAABDMV2C7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGU4TEOJWHA . You are receiving this because you commented.Message ID: @.***>

juanmeleiro commented 3 months ago

Andrew Sorensen [2024-08-22 14:12]:

Try from head, not from a release tag.

Well, it works, by then I get the following:

extempore/build/llvm/src/LLVM/lib/Support/DynamicLibrary.cpp:141:42: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
  141 |    if (!strcmp(symbolName, #SYM)) return &SYM
      |                                          ^
      |                                          |
      |                                          const void*

Should I open another issue?

-- Juan

digego commented 3 months ago

Go for it. Make sure you include lots of details, like your OS version, compiler type and version etc.. Just be aware that you may not get a fast response to your issue. Feel free to submit a PR.

On Fri, Aug 23, 2024 at 8:40 AM Juan Meleiro @.***> wrote:

Andrew Sorensen [2024-08-22 14:12]:

Try from head, not from a release tag.

Well, it works, by then I get the following:

extempore/build/llvm/src/LLVM/lib/Support/DynamicLibrary.cpp:141:42:
error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
141 | if (!strcmp(symbolName, #SYM)) return &SYM
| ^
| |
| const void*

Should I open another issue?

-- Juan

— Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/412#issuecomment-2305866069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHPKPE5TRZY5TBI7TX2MDZSZSEJAVCNFSM6AAAAABDMV2C7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVHA3DMMBWHE . You are receiving this because you commented.Message ID: @.***>