Opened 8 weeks ago

Last modified 2 weeks ago

#60310 assigned defect

gnucash @3.9: Could NOT find Threads (missing: Threads_FOUND)

Reported by: hapaguy (Brian Kurt Fujikawa) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina Cc: jjstickel (Jonathan Stickel)
Port: gnucash

Description

I am using the following:

  • macOS 10.15.4
  • Xcode 11.4
  • MacPorts 2.6.2

The gnucash build fails:

  • sudo port -sv upgrade gnucash
  • sudo port -sv install gnucash

with missing threads, etc.:

  • -- Performing Test HAVE_OFX_BUG_39 - Failed
  • -- Performing Test have_stringop_truncation - Failed
  • -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  • -- Looking for pthread_create in pthreads - not found
  • -- Looking for pthread_create in pthread - not found

I have attached the main.log.

Attachments (2)

gnucash main.log (22.0 KB) - added by hapaguy (Brian Kurt Fujikawa) 8 weeks ago.
gnucash CMakeError.log (11.7 KB) - added by hapaguy (Brian Kurt Fujikawa) 8 weeks ago.

Download all attachments as: .zip

Change History (10)

Changed 8 weeks ago by hapaguy (Brian Kurt Fujikawa)

Attachment: gnucash main.log added

comment:1 Changed 8 weeks ago by ryandesign (Ryan Schmidt)

Cc: drkp removed
Keywords: catalina added
Owner: set to drkp
Status: newassigned
Summary: gnucash @3.9 build failuregnucash @3.9: Could NOT find Threads (missing: Threads_FOUND)

I agree; here's the build failure log from our Catalina buildbot worker. This problem appears to be specific to Catalina.

Could you also attach the CMakeError.log file?

Changed 8 weeks ago by hapaguy (Brian Kurt Fujikawa)

Attachment: gnucash CMakeError.log added

comment:2 Changed 8 weeks ago by hapaguy (Brian Kurt Fujikawa)

Could you also attach the CMakeError.log file?

done, thanks

comment:3 Changed 6 weeks ago by drkp (Dan Ports)

Well, I'm pretty confused here because I didn't run into this problem when I originally prepared the gnucash 3.9 update (also on Catalina), but now I'm running into it with gnucash 3.10. I guess this is probably related to some update either to Catalina or to Xcode that happened in the interim??

comment:4 Changed 6 weeks ago by hapaguy (Brian Kurt Fujikawa)

FWIW, I updated macOS and Xcode on Mar 24 - a week before I ran into problems with the gnucash 3.9 update. I didn't encounter any issues with the gnucash 3.8 update in Jan - so, your guess that the problem is related to the macOS/Xcode update is reasonable.

comment:5 Changed 6 weeks ago by kencu (Ken)

I notice one pthread.h test fails like this:

error: no previous prototype for function 'test_func' [-Werror,-Wmissing-prototypes]

I'd have to check by comparing to some other compiler's behaviour, but it could be that test used to pass, and now it fails due to a stricter clang syntax check.

comment:6 Changed 6 weeks ago by kencu (Ken)

With clang-9 on 10.6, I see similar errors, but it succeeds in the end:

-- Checking for GTEST
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  

so it's not that -- too bad, that might have been easy. You may see useful information in CMakeOutput.log to help as well.

Last edited 6 weeks ago by kencu (Ken) (previous) (diff)

comment:7 Changed 6 weeks ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added

comment:8 Changed 2 weeks ago by jjstickel (Jonathan Stickel)

I'd appreciate some movement on this one. I've been using direct download of gnucash from the upstream site, but I am experiencing some weird behavior that might be easier to trouble-shoot with Macports-installed gnucash. I googled and tried solutions suggested on these forums/issues:

https://stackoverflow.com/questions/54587052/cmake-on-mac-could-not-find-threads-missing-threads-found

https://github.com/fireice-uk/xmr-stak/issues/1597

but no luck. I'm willing to try other things if you have suggestions.

Note: See TracTickets for help on using tickets.