2022-06-28

m3400 -- slack-neofetch

m3400 -- slack-neofetch





live@darkstar:~$ neofetch
                  :::::::                      live@darkstar.home.arpa 
            :::::::::::::::::::                ----------------------- 
         :::::::::::::::::::::::::             OS: Slackware 15.0 x86_64 x86_64 
       ::::::::cllcccccllllllll::::::          Host: ASUSTeK COMPUTER INC. M3400QA 
    :::::::::lc               dc:::::::        Kernel: 5.15.1 
   ::::::::cl   clllccllll    oc:::::::::      Uptime: 5 hours, 23 mins 
  :::::::::o   lc::::::::co   oc::::::::::     Packages: 702 (pkgtool) 
 ::::::::::o    cccclc:::::clcc::::::::::::    Shell: bash 5.1.8 
 :::::::::::lc        cclccclc:::::::::::::    Resolution: 1920x1200 
::::::::::::::lcclcc          lc::::::::::::   DE: Xfce 4.16 
::::::::::cclcc:::::lccclc     oc:::::::::::   WM: Xfwm4 
::::::::::o    l::::::::::l    lc:::::::::::   WM Theme: Default 
 :::::cll:o     clcllcccll     o:::::::::::    Theme: Greybird [GTK2], Adwaita [GTK3] 
 :::::occ:o                  clc:::::::::::    Icons: elementary-xfce-dark [GTK2], Adwaita [GTK3] 
  ::::ocl:ccslclccclclccclclc:::::::::::::     Terminal: xfce4-terminal 
   :::oclcccccccccccccllllllllllllll:::::      Terminal Font: Monospace 12 
    ::lcc1lcccccccccccccccccccccccco::::       CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.200GHz 
      ::::::::::::::::::::::::::::::::         GPU: AMD ATI Device 1638 
        ::::::::::::::::::::::::::::           Memory: 5165MiB / 15472MiB 
           ::::::::::::::::::::::
                ::::::::::::                                           
                                                                       

live@darkstar:~$ slack

Slackware GNU/Linux
==================================================================================
Release      : 15.0
Architecture : x86_64
Kernel       : 5.15.1
Machine type : x86_64
Home path    : /home/live
Configs      : /etc/slack
Main config  : /etc/slack/slack.conf
Log files    : /var/lib/slackpkg/install.log
Packages DB  : /var/lib/slackpkg/
Installed    : 702 packages
Mirror       : http://ftp.twaren.net/Linux/Slackware/slackware64-current/
System date  : Tue Jun 28 15:23:30 UTC 2022
--------------
Boot options : BOOT_IMAGE=/liveslak/boot/generic-5.15.1 load_ramdisk=1 rw kbd=us tz=UTC locale=en_US.utf8 lang=english livemain=liveslak
==================================================================================

live@darkstar:~$ 

slitaz-41 -- CmakeLists.txt-patch

 

slitaz-41 -- CmakeLists.txt-patch

+#install(TARGETS slimlock RUNTIME DESTINATION bin)

Executing: compile_rules
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:
--------------------------
|--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200
|+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored

----

compile_rules()
{
patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
mkdir build; cd build




|--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200
|+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200

patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1

patching file CMakeLists.txt
Hunk #1 succeeded at 221 (offset -3 lines).

patch -p1 should be patch -p0

https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/7#post-50854


root@slitaz:~# cat /home/slitaz/wok/slim/stuff/slim-1.3.6.patch 

--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200

+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200

@@ -224,7 +224,7 @@

 ####### install

 # slim

 install(TARGETS slim RUNTIME DESTINATION bin)

-install(TARGETS slimlock RUNTIME DESTINATION bin)

+#install(TARGETS slimlock RUNTIME DESTINATION bin)

 

 if (BUILD_SHARED_LIBS)

  set_target_properties(libslim PROPERTIES


----

disable slimlock

-install(TARGETS slimlock RUNTIME DESTINATION bin)

+install(TARGETS RUNTIME DESTINATION bin)





2022-06-27

slitaz-41 -- slim-cmake-lpthreads


slitaz-41 -- slim-cmake-lpthreads 

Building error using cmake: cannot find -lpthreads

Hint: search for the actual error message

The one for "-lpthreads" just accidentally happened to be the last one in the log...


Solution: go through the log from the top, identify the section with the configure checks, find the last configure check prior to the point, where CMake identifies failure and dumps its logs. You might also try so search for the text "Configuring incomplete, errors occurred!"



I fight with slim :/.

Issue with cmake build :

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'fontconfig'
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'fontconfig' found
Call Stack (most recent call first):
cmake/modules/FONTCONFIGConfig.cmake:18 (pkg_search_module)
CMakeLists.txt:108 (find_package)

FontConfig Found
PAM disabled
ConsoleKit disabled
-- 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 incomplete, errors occurred!

Run Build Command(s):/usr/bin/make -f Makefile cmTC_88b6c/fast && /usr/bin/make -f CMakeFiles/cmTC_88b6c.dir/build.make CMakeFiles/cmTC_88b6c.dir/build
make[1]: Entering directory '/home/slitaz/wok/slim/source/slim-1.3.6/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_88b6c.dir/CheckFunctionExists.c.o
/usr/bin/cc -march=i486 -Os -pipe -fomit-frame-pointer -Wall -g -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_88b6c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.22/Modules/CheckFun
Linking C executable cmTC_88b6c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_88b6c.dir/link.txt --verbose=1
/usr/bin/cc -march=i486 -Os -pipe -fomit-frame-pointer -Wall -g -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_88b6c.dir/CheckFunctionExists.c.o -o cmTC_88b6c -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_88b6c.dir/build.make:99: cmTC_88b6c] Error 1
make[1]: Leaving directory '/home/slitaz/wok/slim/source/slim-1.3.6/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_88b6c/fast] Error 2


https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/5#post-50768 


Asked 
Viewed 112k times
45

I have c++ project that was smoothly running on a given machine, and now I am trying to compile it on another one with the same operating system (Xubuntu 14.04).

I've installed all the dependencies and I'am using cmake to build the project, although it stops with the following error:

Determining if the function pthread_create exists in the pthreads failed with the following output: ... /usr/bin/ld: cannot find -lpthreads



 


 


 

9 Answers

31

The problem was happening when running cmake. Though, in this case cmake was not the problem the error was silent and the -lpthreads related error/warning was the only thing being written to the cmake error log file, although that was not causing any issue. I've done a minimal version of the cmakelists.txt and started testing it line by line until I found which package was causing it to stop: finally I found it was a version mismatch...

Hint: search for the actual error message

Typically you'd look for the last error message. However, this (often useful) strategy in such cases leads astray.

What you are looking at is the CMakeCache.txt, the CMakeOutput.log or the CMakeError.logHow comes? When some of the macros or tests in the configure phase fails, CMake "helpfully" dumps these files to the output. Unfortunately, these files can be thousands of lines long, and typically contain lots of "*** Error: xyz" entries, for various configure checks. The one for "-lpthreads" just accidentally happened to be the last one in the log...

Solution: go through the log from the top, identify the section with the configure checks, find the last configure check prior to the point, where CMake identifies failure and dumps its logs. You might also try so search for the text "Configuring incomplete, errors occurred!"

Typically you'll either find a very precise actual error message there, or at least you find the name / path of the macro or function called last, and this allows you to pinpoint down what actually went wrong.

 



2022-06-23

slitaz-41 -- slim-fontconfig

 

slitaz-41 -- slim-fontconfig

 -- Configuring incomplete, errors occurred!

 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 

-- Checking for one of the modules 'fontconfig'
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
  None of the required 'fontconfig' found

Call Stack (most recent call first):
  cmake/modules/FONTCONFIGConfig.cmake:18 (pkg_search_module)
  CMakeLists.txt:108 (find_package)
FontConfig Found
PAM disabled
ConsoleKit disabled

-- Looking for pthread.h


-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 

-- Checking for one of the modules 'fontconfig'

FontConfig Found

PAM disabled

ConsoleKit disabled

-- Looking for pthread.h


Summary for: slim 1.3.6
===========================================================================
Source dir  : 6.2M
Src file    : slim-1.3.6.tar.gz
Src size    : 228.0K
Produced    : 2.7M
Packed      : 268.0K
Compressed  : 77.6K
Files       : 10
Cook time   : 12s
Cook date   : 2022-06-22 16:21
Host arch   : i486
===========================================================================


I'll share with you your slitaz-4.1-basedev-20220519.iso repackaged after I used it on my hard disk. It contains everything you need to compile slim.

Double check the receipts which are different from yours. I do not run patches outside of

+#install(TARGETS slimlock RUNTIME DESTINATION bin)

I rebuild the fontconfig package and install it. Then I cook libjpeg-turbo and install it. Finally I cook slim and everything runs without errors.

https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/7#post-50851

Slitaz-41 - slim

 

Configuring incomplete, errors occurred!

I fight with slim :/.

-- 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 incomplete, errors occurred!

cmake-3.22 or cmake-3.19.5

-- Checking for one of the modules 'fontconfig'
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
None of the required 'fontconfig' found

Building C object CMakeFiles/cmTC_88b6c.dir/CheckFunctionExists.c.o
/usr/bin/cc -march=i486 -Os -pipe -fomit-frame-pointer -Wall -g -O2 -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_88b6c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.22/Modules/CheckFun

QA: Unable to reach: http://slim.berlios.de
sh: bad number
Checking build dependencies...
Installing dep (pkg/local): cmake-3.19.5.tazpkg


 https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/6#post-50782

2022-06-16

slitaz-41 - documentation

 

Documentation





tux@slitaz:~$ ls /usr/share/doc/cookutils/
cookopts.txt cookutils.fr.html cookutils.pt.html cross.txt
cookutils.en.html cookutils.html cookutils.ru.html README

$ cat /usr/share/doc/cookutils/README

https://hg.slitaz.org/cookutils/file/00665abb42f1/README

SliTaz Cookbook
https://doc.slitaz.org/en:cookbook:start


https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/6?replies=84#post-50804 

slitaz-41 - pango - gcc-float128

 unexpected identifier in ' __float128 __max_align_f128 __attribute__((__aligned__(__alignof(__float128))));' at '__float128'

[71/146] Generating Pango-1.0.gir with a custom command
/usr/lib/gcc/i486-slitaz-linux/10.2.0/include/stddef.h:424: syntax error, unexpected identifier in ' __float128 __max_align_f128 __attribute__((__aligned__(__alignof(__float128))));' at '__float128'
ninja: build stopped: subcommand failed.

Try:
https://cook.slitaz.org/next/pango/log/#l77

Executing: compile_rules
CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk
CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk
CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1
LDFLAGS : -Wl,-Os,--as-needed

https://cook.slitaz.org/next/pango/log/#l558

[91/124] Generating PangoXft-1.0.typelib with a custom command
[92/124] Generating PangoCairo-1.0.gir with a custom command
/usr/lib/gcc/i486-slitaz-linux/8.2.0/include/stddef.h:435: syntax error, unexpected identifier in ' __float128 __max_align_f128 __attribute__((__aligned__(__alignof(__float128))));' at '__float128'
../pango/pangocairo.h:42: Warning: PangoCairo: symbol='PANGO_IS_CAIRO_FONT': Skipping foreign symbol from namespace Pango
../pango/pangocairo.h:56: Warning: PangoCairo: symbol='PANGO_IS_CAIRO_FONT_MAP': Skipping foreign symbol from namespace

https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/6?replies=84#post-50803 

slitaz-41- gcc - fixincludes

 

gcc - fixincludes

I begin check and maybe issue about autoconf, but it's very strange.
with glibc-2.30 no problem, with glibc >, failed systematically :/
I bump autoconf to 2.71 (same as LFS 10.1), but error again.
The main error seem about "two or more data types in declaration specifiers",
seem https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94089 good trace
https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/3?replies=84#post-50701 

In case no problem in glibc compilation, it's after glibc compiled
binutils "first pass" ok
gcc first pass ok
glibc (locale,extra-samba,base,dev) ok
binutils "second pass" failed
gcc second pass failed 'due of binutils previous failed'
But with glibc-2.30 all step work.

seem https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94089 good trace

Try:

Comment 1

If you use a gcc with a different glibc, you need to rerun fixincludes. Fixincludes is installed too.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94089#c1

or


# Do not run fixincludes

sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gcc10#n43


https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/3?replies=84#post-50704