[Slackbuilds-users] gtest error

Andrew Clemons andrew.clemons at gmail.com
Sun May 12 12:32:09 UTC 2024


On 2024-05-12 07:04:39 -0500, fernando.lopezjr at gmail.com wrote:
> [ 75%] Linking CXX shared library ../lib/libgmock_main.so
> [ 75%] Built target gmock_main
> [ 87%] Building CXX object
> googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
> [100%] Linking CXX shared library ../lib/libgtest_main.so
> [100%] Built target gtest_main
> cp: cannot stat 'build/googletest/CMakeFiles/Export/lib64/cmake': No such
> file or directory
>
> gtest:
> Would you like to continue processing the rest of the
> queue or would you like to abort?  If this failed
> package is a dependency of another package in the queue
> then it may not make sense to continue.
>
> (Y)es to continue, (N)o to abort, (R)etry the build?:

I'm taking this as a bug report? You did not even write anything in your
message.

Anyway, I cannot reproduce. I synced the latest scripts and built this
on a full patched stable x86_64 machine (slackpkg upgrade-all yields
nothing) without problem - see log below. I also built it again on our x86_64
stable CI build box without problem:

https://github.com/SlackBuildsOrg/slackbuilds/issues/5827#issuecomment-2106230952
https://github.com/SlackBuildsOrg/slackbuilds/issues/5827#issuecomment-2106231236

sbopkg log:

# cat /etc/os-release
NAME=Slackware
VERSION="15.0"
ID=slackware
VERSION_ID=15.0
PRETTY_NAME="Slackware 15.0 x86_64"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:15.0"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
VERSION_CODENAME=stable

# sbopkg -r
Syncing with the remote repository into /var/lib/sbopkg/SBo/15.0.
receiving incremental file list

sent 10,939 bytes  received 2,245,050 bytes  128,913.66 bytes/sec
total size is 124,272,366  speedup is 55.09

Rsync with the SBo repository for Slackware 15.0 complete.

Importing SBo repository for Slackware 15.0 GPG Key...
Import done.

***SYNC COMPLETE***

# sbopkg -i gtest

###########################################
       New queue process started on:
       Sun May 12 12:17:39 GMT 2024
###########################################

+++++++++++++++++++++++++++++++++++++++++++
PRE-CHECK LOG
Using the SBo repository for Slackware 15.0
Queue Process:  Download, build, and install

gtest:
  Checking GPG for gtest.tar.gz ... OK
  Processing gtest 1.12.1-2
  Using original .info file
  Using original SlackBuild file
  No build options selected.

+++++++++++++++++++++++++++++++++++++++++++

Pre-check complete.

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?: P


Processing gtest

gtest:
Found googletest-release-1.12.1.tar.gz in /var/cache/sbopkg.
Checking MD5SUM:
  MD5SUM check for googletest-release-1.12.1.tar.gz ... OK
[...]
Building package for gtest...
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python: /usr/bin/python3.9 (found version "3.9.19") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/SBo/googletest-release-1.12.1/build
[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 25%] Linking CXX shared library ../lib/libgtest.so
[ 25%] Built target gtest
[ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 50%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 62%] Linking CXX shared library ../lib/libgtest_main.so
[ 62%] Built target gtest_main
[ 75%] Linking CXX shared library ../lib/libgmock.so
[ 75%] Built target gmock
[ 87%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX shared library ../lib/libgmock_main.so
[100%] Built target gmock_main
'gmock' -> 'googlemock'
'gtest' -> 'googletest'

Slackware package maker, version 3.14159265.

Searching for symbolic links:
usr/doc/gtest-1.12.1/googlemock/README.md       ../../../src/googlemock/README.md
usr/doc/gtest-1.12.1/googlemock/docs    ../../../src/googlemock/docs
usr/doc/gtest-1.12.1/googletest/README.md       ../../../src/googletest/README.md
usr/doc/gtest-1.12.1/googletest/docs    ../../../src/googletest/docs
usr/doc/gtest-1.12.1/googletest/samples ../../../src/googletest/samples
usr/lib64/libgmock.so   libgmock.so.1.12.1
usr/lib64/libgmock_main.so      libgmock_main.so.1.12.1
usr/lib64/libgtest.so   libgtest.so.1.12.1
usr/lib64/libgtest_main.so      libgtest_main.so.1.12.1
usr/src/gmock   googlemock
usr/src/gtest   googletest

Making symbolic link creation script:
( cd usr/doc/gtest-1.12.1/googlemock ; rm -rf README.md )
( cd usr/doc/gtest-1.12.1/googlemock ; ln -sf ../../../src/googlemock/README.md README.md )
( cd usr/doc/gtest-1.12.1/googlemock ; rm -rf docs )
( cd usr/doc/gtest-1.12.1/googlemock ; ln -sf ../../../src/googlemock/docs docs )
( cd usr/doc/gtest-1.12.1/googletest ; rm -rf README.md )
( cd usr/doc/gtest-1.12.1/googletest ; ln -sf ../../../src/googletest/README.md README.md )
( cd usr/doc/gtest-1.12.1/googletest ; rm -rf docs )
( cd usr/doc/gtest-1.12.1/googletest ; ln -sf ../../../src/googletest/docs docs )
( cd usr/doc/gtest-1.12.1/googletest ; rm -rf samples )
( cd usr/doc/gtest-1.12.1/googletest ; ln -sf ../../../src/googletest/samples samples )
( cd usr/lib64 ; rm -rf libgmock.so )
( cd usr/lib64 ; ln -sf libgmock.so.1.12.1 libgmock.so )
( cd usr/lib64 ; rm -rf libgmock_main.so )
( cd usr/lib64 ; ln -sf libgmock_main.so.1.12.1 libgmock_main.so )
( cd usr/lib64 ; rm -rf libgtest.so )
( cd usr/lib64 ; ln -sf libgtest.so.1.12.1 libgtest.so )
( cd usr/lib64 ; rm -rf libgtest_main.so )
( cd usr/lib64 ; ln -sf libgtest_main.so.1.12.1 libgtest_main.so )
( cd usr/src ; rm -rf gmock )
( cd usr/src ; ln -sf googlemock gmock )
( cd usr/src ; rm -rf gtest )
( cd usr/src ; ln -sf googletest gtest )

It is recommended that you make these lines your new installation script.

Would you like to make this stuff the install script for this package
and remove the symbolic links ([y]es, [n]o)? y


Removing symbolic links:
removed './usr/src/gtest'
removed './usr/src/gmock'
removed './usr/doc/gtest-1.12.1/googlemock/README.md'
removed './usr/doc/gtest-1.12.1/googlemock/docs'
removed './usr/doc/gtest-1.12.1/googletest/README.md'
removed './usr/doc/gtest-1.12.1/googletest/samples'
removed './usr/doc/gtest-1.12.1/googletest/docs'
removed './usr/lib64/libgmock.so'
removed './usr/lib64/libgmock_main.so'
removed './usr/lib64/libgtest_main.so'
removed './usr/lib64/libgtest.so'

Creating your new ./install/doinst.sh...

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/sbopkg.RPkMNy/sbopkg-sbooutputdir/gtest-1.12.1-x86_64-2_SBo.tgz
[...]
Slackware package /tmp/sbopkg.RPkMNy/sbopkg-sbooutputdir/gtest-1.12.1-x86_64-2_SBo.tgz created.

Done building package for gtest.
Built package: gtest-1.12.1-x86_64-2_SBo.tgz

+==============================================================================
| Installing new package /tmp/gtest-1.12.1-x86_64-2_SBo.tgz
+==============================================================================

Verifying package gtest-1.12.1-x86_64-2_SBo.tgz.
Installing package gtest-1.12.1-x86_64-2_SBo.tgz:
PACKAGE DESCRIPTION:
# gtest (Google C++ Testing Framework)
#
# Google's framework for writing C++ tests on a variety of platforms
# (Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based
# on the xUnit architecture. Supports automatic test discovery, a rich
# set of assertions, user-defined assertions, death tests, fatal and
# non-fatal failures, value- and type-parameterized tests, various
# options for running the tests, and XML test report generation.
#
# Homepage: http://code.google.com/p/googletest
#
Executing install script for gtest-1.12.1-x86_64-2_SBo.tgz.
Package gtest-1.12.1-x86_64-2_SBo.tgz installed.
Done upgrading/installing package.

+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the SBo repository for Slackware 15.0
Queue Process:  Download, build, and install

gtest:
  MD5SUM check for googletest-release-1.12.1.tar.gz ... OK
  Building package gtest-1.12.1-x86_64-2_SBo.tgz ... OK
  Installing package gtest-1.12.1-x86_64-2_SBo.tgz ... OK

+++++++++++++++++++++++++++++++++++++++++++

###########################################
          Queue process complete!
###########################################

# grep cmake /var/lib/pkgtools/packages/gtest-1.12.1-x86_64-2_SBo
usr/lib64/cmake/
usr/lib64/cmake/GTest/
usr/lib64/cmake/GTest/GTestConfig.cmake
usr/lib64/cmake/GTest/GTestConfigVersion.cmake
usr/lib64/cmake/GTest/GTestTargets-release.cmake
usr/lib64/cmake/GTest/GTestTargets.cmake
usr/src/googlemock/cmake/
usr/src/googlemock/cmake/gmock.pc.in
usr/src/googlemock/cmake/gmock_main.pc.in
usr/src/googletest/cmake/
usr/src/googletest/cmake/Config.cmake.in
usr/src/googletest/cmake/gtest.pc.in
usr/src/googletest/cmake/gtest_main.pc.in
usr/src/googletest/cmake/internal_utils.cmake
usr/src/googletest/cmake/libgtest.la.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20240512/b2b99d64/attachment.asc>


More information about the SlackBuilds-users mailing list