On Mon, 12 Aug 2024 10:46:35 +0100 Ankur Sinha <sanjay.ankur@xxxxxxxxx> wrote: > Hi Dan, > > On Sun, Aug 11, 2024 23:28:33 GMT, Dan Horák wrote: > > On Sun, 11 Aug 2024 22:07:28 +0100 > > Ankur Sinha <sanjay.ankur@xxxxxxxxx> wrote: > > > > > Hi folks, > > > > > > I was working on fixing the FTBFS on libtpcmisc and while I got it to > > > build on x86_64, my builds on ppc64le/aarch64/s390x all fail with these > > > errors where it cannot find the standard includes (math.h/stdint.h) and > > > > those are in glibc-devel, same as on x86_64 > > Thanks for confirming. > > > > <snip> > > > > -- Looking for exp > > > > -- Looking for exp - not found > > > > -- Configuring incomplete, errors occurred! > > > > CMake Error at CMakeLists.txt:115 (message): > > > > ERROR: required exp function not found > > > > error: Bad exit status from /var/tmp/rpm-tmp.lASEQL (%build) > > > > Bad exit status from /var/tmp/rpm-tmp.lASEQL (%build) > > > > RPM build errors: > > > > > > > > > My C/C++ is a bit rusty nowadays. Could someone please take a look to > > > see what BuildRequires I'm missing for these arches? Or is it another > > > issue? > > > > I don't think it's a missing BR, but rather a wrong check in the > > CMakeLists file. The cmake logs would tell more, but passing > > "-mfpmath=sse" in the compiler flags makes the build x86-only. > > Ah, cool. I've removed that flag now. Here's a scratch build, and here > is the code with my patches: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=121833108 https://koji.fedoraproject.org/koji/taskinfo?taskID=121833858 is the newer and passing scratch with the "-mfpmath=sse" removed > https://gitlab.com/sanjayankur31/tpcclib/-/merge_requests/1/diffs > > The checks are in this form: > > > check_function_exists (exp HAVE_EXP) > > if(NOT HAVE_EXP) > > message(FATAL_ERROR "ERROR: required exp function not found") > > endif(NOT HAVE_EXP) even this check was broken due the x86-only compiler flag Dan > I see some notes in the cmake docs about using `check_function_exists` > too. I'll go dig in again: > > https://cmake.org/cmake/help/latest/module/CheckFunctionExists.html#command:check_function_exists > > -- > Thanks, > Regards, > Ankur Sinha "FranciscoD" (He / Him / His) | https://fedoraproject.org/wiki/User:Ankursinha > Time zone: Europe/London -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue