You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/04/18 19:53:57 UTC

[GitHub] [trafficserver] elsloo opened a new issue, #8799: AuTest not usable on macOS + ARM

elsloo opened a new issue, #8799:
URL: https://github.com/apache/trafficserver/issues/8799

   AuTest is not working on macOS with Apple Silicon (ARM). This is due, at least in part, to the dependency on `proxy-verifier` that is downloaded from a static location ([here](https://ci.trafficserver.apache.org/bintray/)) and contains builds for Linux and macOS but only on the x86-64 architecture. Because this is all executed via the command line, it appears to circumvent Rosetta 2 emulation.
   
   Additionally, the build process for `proxy-verifier` may need some attention to support a different architecture. I attempted to download and build this myself, but it still had references to x86-64 (see below) and the build failed. I had to add a `.env` file to allow the build process to locate `autoreconf` installed via `brew`, but there are likely other changes required to build successfully.
   
   Note in the following that the `-arch` is correct, but the build directory and target both mention `darwin-x86_64`.
   
   ```
   ${LDCMD:-/usr/bin/clang} -arch arm64  -L. -Wl,-search_paths_first -L/Users/username/workspace/proxy-verifier/_build/build_release_darwin-x86_64/openssl \
           -o fuzz/client-test fuzz/client.o fuzz/test-corpus.o \
            -lssl -lcrypto  
   ${LDCMD:-/usr/bin/clang} -arch arm64  -L. -Wl,-search_paths_first -L/Users/username/workspace/proxy-verifier/_build/build_release_darwin-x86_64/openssl \
           -o fuzz/server-test fuzz/server.o fuzz/test-corpus.o \
            -lssl -lcrypto  
   scons: building terminated because of errors.
   Parts: Error!: Summary: 1 build failure detected during build
    Part:"nghttp3"
    Target:"darwin-x86_64"
    Config:"release"
    Node:"_build/build_release_darwin-x86_64/nghttp3/build/Makefile"
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] randall commented on issue #8799: AuTest not usable on macOS + ARM

Posted by GitBox <gi...@apache.org>.
randall commented on issue #8799:
URL: https://github.com/apache/trafficserver/issues/8799#issuecomment-1120522856

   FWIW: The x86_64 proxy-verifier binaries work on my arm64 MacBook and I can run the a proxy-verifier-based test successfully.
   
   Prior to running the test, I did manually download the linked binaries and attempted to run them and got the following dialog:
   <img width="264" alt="Screen Shot 2022-05-08 at 5 32 46 PM" src="https://user-images.githubusercontent.com/307125/167322479-36f612b1-89dd-40d5-bb95-45ee9a6be547.png">
   
   After running `xattr -d com.apple.quarantine mac-os/verifier-*` on the downloaded binaries, they started up fine. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] elsloo commented on issue #8799: AuTest not usable on macOS + ARM

Posted by GitBox <gi...@apache.org>.
elsloo commented on issue #8799:
URL: https://github.com/apache/trafficserver/issues/8799#issuecomment-1121443461

   I believe this was due to an environmental issue. My local dev environment had symlinks pointing to the Linux binaries, not MacOS, and that seems to have been the culprit. When the symlinks point to the binaries in the `mac-os` directory, AuTest runs as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] bneradt commented on issue #8799: AuTest not usable on macOS + ARM

Posted by GitBox <gi...@apache.org>.
bneradt commented on issue #8799:
URL: https://github.com/apache/trafficserver/issues/8799#issuecomment-1130267748

   > I believe this was due to an environmental issue. My local dev environment had symlinks pointing to the Linux binaries, not MacOS, and that seems to have been the culprit. When the symlinks point to the binaries in the `mac-os` directory, AuTest runs as expected.
   
   Cool. Thank you for the follow up @randall and @elsloo. 
   
   Just to follow up with my own experiments: I now have an M1 Mac for work. (Thanks, in large part, to this ticket. :tada:.)  I was able to build proxy-verifier locally without any modification to the source code or Sconstruct lines.
   
   Also, using the verifier-server and verifier-client binaries, obtained from bintray automatically via the autest.sh script, autest is able to use those verifier binaries (i.e., not the locally built binaries referenced previously):
   
   ```
   $ uname -m
   arm64
   
   $ ./autest.sh --sandbox /tmp/sb --clean=none --ats-bin ~/project_not_synced/build/ts_os/bin/ -f dns_down_nameserver
   Python 3.6 or newer detected!
   python3-dev/devel detected!
   pipenv detected!
   Using the pre-existing virtual environment.
   Environment config finished. Running AuTest...
   Running Test dns_down_nameserver:........ Passed
   
   Generating Report: --------------
   Total of 1 test
     Unknown: 0
     Exception: 0
     Failed: 0
     Warning: 0
     Skipped: 0
     Passed: 1
   ```
   
   Closing the ticket because it looks like we're all in good shape here. Thank you @elsloo for recording your observations here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficserver] bneradt closed issue #8799: AuTest not usable on macOS + ARM

Posted by GitBox <gi...@apache.org>.
bneradt closed issue #8799: AuTest not usable on macOS + ARM
URL: https://github.com/apache/trafficserver/issues/8799


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org