Giter Club home page Giter Club logo

Comments (9)

barracuda156 avatar barracuda156 commented on July 24, 2024

UPD. Well, it fails with gcc-12.2.0 as well, so the issue is not caused by an outdated GCC.

from nng.

barracuda156 avatar barracuda156 commented on July 24, 2024

Apparently it simply does not exist: https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html#Option-Summary

from nng.

gdamore avatar gdamore commented on July 24, 2024

I don't think we're passing -t to gcc.

Rather this looks like a CMake / CTest problem?

Can you describe how you configured this? What version of CMake are you using? How did you execute these tests?

from nng.

gdamore avatar gdamore commented on July 24, 2024

Ah, this looks like the code from cmake/NNGHelpers.cmake -- that -t is not appropriate anymore.

from nng.

gdamore avatar gdamore commented on July 24, 2024

I think I missed this because these days I run all my tests using Ninja, and somehow this is overlooked.

from nng.

gdamore avatar gdamore commented on July 24, 2024

Wait... -t -v works for me.

from nng.

gdamore avatar gdamore commented on July 24, 2024

Aha!

The problem is your environment lacks POSIX timekeeping, and is not Windows.

Building for Snow Leopard is the root of the problem. I could fix this if I was really so inclined -- by removing the -t (which isn't strictly necessary but it does give us some help during the test runs -- I like to see the timing in test runs), but honestly the net benefits here fall far short of the functionality I'd lose. I'm simply not very interested in supporting such an old version of macOS.

I don't have a system that will run it, and I don't have easy access to a copy of Snow Leopard even if I did.

Sorry... I highly recommend moving to something that isn't 15 years old.

from nng.

gdamore avatar gdamore commented on July 24, 2024

Newer versions of macOS closed many of the core problems with timekeeping and synchronization (Pthreads are abysmal on older versions of Darwin, as they are "fair share" and you have to take a context switch even when acquiring or releasing an uncontended mutex.)

from nng.

barracuda156 avatar barracuda156 commented on July 24, 2024

@gdamore Thank you for detailed reply. Just to be sure, it works with GCC being the compiler, not Clang?
-time is supported on 10.5 and 10.6, if it is the same, I can get time stats when building on it.

P.S. It is impossible to run anything newer than 10.6 on PowerPC machines, since, sadly, Apple dropped the arch support in some of the mid-way builds of 10.6 and completely removed PPC code in 10.7.

from nng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.