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 > so on: > > > + /usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON > > -- The C compiler identification is GNU 14.1.1 > > -- Detecting C compiler ABI info > > -- Detecting C compiler ABI info - done > > -- Check for working C compiler: /usr/bin/gcc - skipped > > -- Detecting C compile features > > -- Detecting C compile features - done > > -- > > -- tpcclib (c) 2023 by Turku PET Centre > > -- Found OpenMP_C: -fopenmp (found version "4.5") > > -- Found OpenMP: TRUE (found version "4.5") > > -- 64 bits compiler detected > > -- Found OpenMP_C: -fopenmp (found version "4.5") > > -- setting OpenMP flags > > -- Performing Test HAVE_W_EXTRA > > -- Performing Test HAVE_W_EXTRA - Failed > > -- Looking for include file stdint.h > > -- Looking for include file stdint.h - not found > > -- Looking for include file stddef.h > > -- Looking for include file stddef.h - not found > > -- Looking for include file math.h > > -- Looking for include file math.h - not found > > -- Looking for include file stddef.h > > -- Looking for include file stddef.h - not found > > -- Looking for include file direct.h > > -- Looking for include file direct.h - not found > > -- Looking for include file omp.h > > -- Looking for include file omp.h - not found > > -- 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. Dan > The PR is here: > https://src.fedoraproject.org/rpms/libtpcmisc/pull-request/1 > > -- > 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