|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
valgrind issues/alternatives
Hello everyone. I am new to OpenBSD on bare metal and I've recently done my first install; it went swimmingly. As to be expected, I'm having a few growing pains with transitioning my development projects over to it, but there's one issue that doesn't make sense to me at all.
Background: Anyone familiar with C/C++ development on Linux will have heard of valgrind so I won't bother to go into details about it specifically here. I integrate it into my makefiles at work and at play. Accordingly, I'd like to be able to use this tool on OpenBSD. The problem is that the version of valgrind that the valgrind package installs flat out does not work. Any attempt to execute it results in an immediate abort trap. Normally I'd do much more digging myself before asking for help, but I'm a long way from home in regards to the tools one would normally use to debug such a thing, and I'm concerned that something else is amok given a distributed binary is failing in such a manner. I confirmed that pkg doesn't think I'm missing any dependencies for it using pkg_check, and there doesn't seem to be a glibc issue (gcc yields binaries quite happily), so I'm hoping someone else may have an insight. Ideally, I'd like to use valgrind, but if there's a comparable alternative I'm open to that. Cheers! Last edited by falconhoof; 14th July 2019 at 08:20 PM. Reason: clarity, typo, grammar |
|
|||
Quote:
Quote:
If you need a newer gcc, install the gcc package (aka run doas pkg_add gcc). That will give you gcc-8.3.0 (the binary will be named egcc). |
|
||||
I can't help you at all, but my suggestion would be to try to contact the package maintainer, there should be some information on who, etc. at the bottom of the page if you run the 'man valgrind'
Or look here: http://openports.se/devel/valgrind Quote:
==== edited ==== We posted almost at the same time, any way, there you go. ===== edit again==== Stumbled onto this, from a old thread: Code:
jggimi's Avatar jggimi jggimi is offline More noise than signal Join Date: May 2008 Location: USA Posts: 6,625 Default Please use $ pkg_info valgrind -- the output will describe the limitations of the OpenBSD package, and where to report issues.
__________________
My best friends are parrots Last edited by PapaParrot; 14th July 2019 at 09:58 PM. |
|
|||
Don't know if it as an alternative, but on FreeBSD valgrind seems to be functional. See https://www.freshports.org/devel/valgrind/
The FreeBSD port of valgrind is mentioned under the "Out Of Tree" section of http://www.valgrind.org/info/platforms.html
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Re-reading this, it appears you think that glibc is available on OpenBSD. There is no glibc on OpenBSD (or any *BSD, for that matter).
|
|
||||
Quote:
Quote:
Quote:
Quote:
Also, thanks to everyone who responded. I appreciate your help, patience, and understanding. |
|
|||
Quote:
That would be a great idea. Fair warning if you're too good at maintaining Valgrind on OpenBSD then the job might become yours! |
Tags |
c/c++, development, tools, valgrind |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alternatives to x86 | blackhole | OpenBSD General | 28 | 10th April 2017 06:52 PM |
no valgrind in openbsd? | billy_bazooka | Programming | 1 | 20th February 2017 12:52 AM |
Amarok alternatives ? | LeFrettchen | OpenBSD Packages and Ports | 4 | 27th October 2016 02:41 PM |
alternatives to raspberry pi | osw94k | OpenBSD General | 2 | 15th February 2015 04:58 AM |
Alternatives for Bind9? | windependence | FreeBSD Ports and Packages | 16 | 27th June 2009 11:42 AM |