Comments (9)
UPD. Well, it fails with gcc-12.2.0
as well, so the issue is not caused by an outdated GCC.
from nng.
Apparently it simply does not exist: https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html#Option-Summary
from nng.
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.
Ah, this looks like the code from cmake/NNGHelpers.cmake -- that -t is not appropriate anymore.
from nng.
I think I missed this because these days I run all my tests using Ninja, and somehow this is overlooked.
from nng.
Wait... -t -v works for me.
from nng.
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.
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.
@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)
- IPC socket could support setting ownership HOT 1
- Missing Header in posix_rand_getrandom.c
- nng_msg_insert: munmap_chunk(): invalid pointer HOT 3
- Deadlock during nng_close() - multi platform HOT 23
- Sendmsg Thread Blocking HOT 3
- How to create a new language binding using a binary/dll? HOT 1
- Compiler warnings / errors from new logging feature on Windows HOT 2
- Windows a deadlock on `nng_close()` HOT 13
- mqttv5_client chokes on CONNACK packet HOT 2
- setting NNG_OPT_TLS_CONFIG on socket should hold reference HOT 6
- Memory Leak in nng_rep0_open HOT 2
- IPC - Use After Free HOT 4
- Will the NNG framework built-in handle packet splitting and sticking issues during streaming transmission? HOT 2
- Tools or API could obtain all communication endpoint information for establishing communication with this machine HOT 2
- nng_socket_set_ms didn't work HOT 2
- How to build nng_testing as a dynamic library? HOT 2
- Add support for TLS PSK
- merge wolfSSL support inline, and relicense it under same terms as NNG and add PSK HOT 1
- Document - Wrong description HOT 1
- add TLS 1.3 support for Mbed TLS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nng.