LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-21-2021, 06:36 PM   #3511
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,680

Rep: Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374

Quote:
Originally Posted by SW64 View Post
"Is it everyone else or just me?"

Could someone please verify opencpn and openscad for me on ponce's sbo-git? I've been working on them and I'm at dead end with those twos. Just let me know if you were able to compile them without any interventions. Thanks in advance.
I have a new working version of opencpn that I will submit to SBo when 15.0 comes out.
 
Old 02-22-2021, 03:48 PM   #3512
redneonglow
Member
 
Registered: Feb 2020
Location: PA
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 24
Exclamation

Slackware-current's version of the cfitsio package includes a utility at /usr/bin/smem

This conflicts with the smem utility available at Slackbuilds:

https://slackbuilds.org/repository/14.2/system/smem/

I know that Ubuntu renames this utility smem.py to avoid conflicts. Perhaps the -current Slackbuilds tree should do the same?
 
Old 02-23-2021, 01:35 PM   #3513
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by redneonglow View Post
Slackware-current's version of the cfitsio package includes a utility at /usr/bin/smem

This conflicts with the smem utility available at Slackbuilds:

https://slackbuilds.org/repository/14.2/system/smem/

I know that Ubuntu renames this utility smem.py to avoid conflicts. Perhaps the -current Slackbuilds tree should do the same?
can you please link where this happens in the ubuntu sources? I'm asking because I wasn't able to find it...

I know it's not a big deal but maybe it's better if the maintainer decides on that: can you please notify him of the conflict in current?
 
Old 02-23-2021, 04:36 PM   #3514
Dan Suson
Member
 
Registered: Aug 2007
Location: Valparaiso, IN
Distribution: Slackware
Posts: 100

Rep: Reputation: 7
sage doesn't build

When I tried to build sage I got an error from the gcc-9.2.0 module,

Code:
[gcc-9.2.0] /var/tmp/SBo/sage-9.1/local/var/tmp/sage/build/gcc-9.2.0/gcc-build/./gcc/xgcc -B/var/tmp/SBo/sage-9.1/local/var/tmp/sage/build/gcc-9.2.0/gcc-build/./gcc/ -B/var/tmp/SBo/sage-9.1/local/x86_64-pc-linux-gnu/bin/ -B/var/tmp/SBo/sage-9.1/local/x86_64-pc-linux-gnu/lib/ -isystem /var/tmp/SBo/sage-9.1/local/x86_64-pc-linux-gnu/include -isystem /var/tmp/SBo/sage-9.1/local/x86_64-pc-linux-gnu/sys-include   -fno-checking -O2  -g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER  -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _divhc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o getf2_s.o letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o _powitf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU ld script"; echo "   Use the shared library, but some functions are only in"; echo "   the static library.  */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so
[gcc-9.2.0] /usr/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/../lib/libc.so when searching for -lc
[gcc-9.2.0] /usr/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/../lib/libc.a when searching for -lc
[gcc-9.2.0] /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
[gcc-9.2.0] /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
[gcc-9.2.0] /usr/bin/ld: i386 architecture of input file `/usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/../lib/crti.o' is incompatible with i386:x86-64 output
[gcc-9.2.0] /usr/bin/ld: i386 architecture of input file `/usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/../lib/crtn.o' is incompatible with i386:x86-64 output
[gcc-9.2.0] collect2: error: ld returned 1 exit status
It appears to be trying to use a 32 bit library? Was there a flag that I needed to pass in?
 
Old 02-24-2021, 11:32 AM   #3515
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
I've read something about gcc-10.x compatibility in sage's changelog about version 9.2 so I just version bump-it to that and it built fine here.

I haven't even tested version 9.1 (the one in SBo) but be aware that I built it on a slackware64-current system *without* multilib (I don't know if you have multilib installed, in that case refer to SBo's FAQ).
 
Old 02-24-2021, 04:36 PM   #3516
Panthan
LQ Newbie
 
Registered: Jan 2021
Location: USA
Distribution: Slackware 15.0
Posts: 17

Rep: Reputation: Disabled
opensc 0.20.0 build

The opensc slackbuild from the github repository does not work on my slack-current install. I had to change
XSL_STYLESHEETS_VER=1.78.1
to
XSL_STYLESHEETS_VER=1.79.2

Afterwards, the build was successful and the result seems to work.
 
Old 02-25-2021, 11:08 AM   #3517
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by Panthan View Post
The opensc slackbuild from the github repository does not work on my slack-current install. I had to change
XSL_STYLESHEETS_VER=1.78.1
to
XSL_STYLESHEETS_VER=1.79.2

Afterwards, the build was successful and the result seems to work.
thanks for this!
I actually changed the routine so that it autodetects (in an ugly way but it works!) the version number of the interested directory and pushed an update of pcsc-lite and opensc: they will go in at the next SBo update.
 
Old 02-25-2021, 01:58 PM   #3518
Dan Suson
Member
 
Registered: Aug 2007
Location: Valparaiso, IN
Distribution: Slackware
Posts: 100

Rep: Reputation: 7
Quote:
Originally Posted by ponce View Post
I've read something about gcc-10.x compatibility in sage's changelog about version 9.2 so I just version bump-it to that and it built fine here.

I haven't even tested version 9.1 (the one in SBo) but be aware that I built it on a slackware64-current system *without* multilib (I don't know if you have multilib installed, in that case refer to SBo's FAQ).
I looked at the SlackBuild script. It has

Code:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
       ./configure \
       --enable-build-as-root
make build
so I don't think multilib is a problem. I upgraded to version 9.2 as you recommended and tried to build again. It broke again, this time in the suitesparse branch. The error message is

Code:
[suitesparse-5.6.0] /usr/share/cuda/bin/nvcc -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/var/tmp/SBo/sage-9.2/local/var/tmp/sage/build/suitesparse-5.6.0/src/CCOLAMD/Include -I/var/tmp/SBo/sage-9.2/local/var/tmp/sage/build/suitesparse-5.6.0/src/CAMD/Include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ -Xcompiler -fPIC -O3 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=compute_60 -c ../GPU/cholmod_gpu_kernels.cu
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: type name is not allowed
[suitesparse-5.6.0] 
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: type name is not allowed
[suitesparse-5.6.0] 
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: identifier "__is_same_as" is undefined
[suitesparse-5.6.0] 
[suitesparse-5.6.0] 3 errors detected in the compilation of "/tmp/tmpxft_0000233a_00000000-10_cholmod_gpu_kernels.compute_60.cpp1.ii".
[suitesparse-5.6.0] make[7]: *** [Makefile:527: cholmod_gpu_kernels.o] Error 1
[suitesparse-5.6.0] make[6]: *** [Makefile:66: install] Error 2
[suitesparse-5.6.0] make[5]: *** [Makefile:44: install] Error 2
Any other thoughts?
 
Old 02-25-2021, 04:22 PM   #3519
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by Dan Suson View Post
I looked at the SlackBuild script. It has

Code:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
       ./configure \
       --enable-build-as-root
make build
so I don't think multilib is a problem. I upgraded to version 9.2 as you recommended and tried to build again. It broke again, this time in the suitesparse branch. The error message is

Code:
[suitesparse-5.6.0] /usr/share/cuda/bin/nvcc -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/var/tmp/SBo/sage-9.2/local/var/tmp/sage/build/suitesparse-5.6.0/src/CCOLAMD/Include -I/var/tmp/SBo/sage-9.2/local/var/tmp/sage/build/suitesparse-5.6.0/src/CAMD/Include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ -Xcompiler -fPIC -O3 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=compute_60 -c ../GPU/cholmod_gpu_kernels.cu
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: type name is not allowed
[suitesparse-5.6.0] 
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: type name is not allowed
[suitesparse-5.6.0] 
[suitesparse-5.6.0] /usr/include/c++/10.2.0/type_traits(1396): error: identifier "__is_same_as" is undefined
[suitesparse-5.6.0] 
[suitesparse-5.6.0] 3 errors detected in the compilation of "/tmp/tmpxft_0000233a_00000000-10_cholmod_gpu_kernels.compute_60.cpp1.ii".
[suitesparse-5.6.0] make[7]: *** [Makefile:527: cholmod_gpu_kernels.o] Error 1
[suitesparse-5.6.0] make[6]: *** [Makefile:66: install] Error 2
[suitesparse-5.6.0] make[5]: *** [Makefile:44: install] Error 2
Any other thoughts?
not really: as I told I'm not able to reproduce this, here it built fine...
 
Old 02-25-2021, 06:56 PM   #3520
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Rep: Reputation: 54
chromaprint error

Code:
[ 95%] Building CXX object src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In constructor ‘chromaprint::FFmpegAudioReader::FFmpegAudioReader()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:117:18: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
  117 |  av_register_all();
      |                  ^
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:2050:6: note: declared here
 2050 | void av_register_all(void);
      |      ^~~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In destructor ‘chromaprint::FFmpegAudioReader::~FFmpegAudioReader()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:130:28: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  130 |  av_packet_unref(&m_packet0);
      |                            ^
In file included from /usr/include/libavcodec/bsf.h:30,
                 from /usr/include/libavcodec/avcodec.h:44,
                 from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/packet.h:538:6: note: declared here
  538 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘bool chromaprint::FFmpegAudioReader::Open(const string&)’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:31:24: error: ‘avcodec_alloc_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
   31 | #define av_frame_alloc avcodec_alloc_frame
      |                        ^~~~~~~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:194:12: note: in expansion of macro ‘av_frame_alloc’
  194 |  m_frame = av_frame_alloc();
      |            ^~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘void chromaprint::FFmpegAudioReader::Close()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:35:23: error: ‘avcodec_free_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
   35 | #define av_frame_free avcodec_free_frame
      |                       ^~~~~~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:232:2: note: in expansion of macro ‘av_frame_free’
  232 |  av_frame_free(&m_frame);
      |  ^~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘bool chromaprint::FFmpegAudioReader::Read(const int16_t**, size_t*)’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:274:30: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  274 |    av_packet_unref(&m_packet0);
      |                              ^
In file included from /usr/include/libavcodec/bsf.h:30,
                 from /usr/include/libavcodec/avcodec.h:44,
                 from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/packet.h:538:6: note: declared here
  538 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:297:76: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  297 |   ret = avcodec_decode_audio4(m_codec_ctx, m_frame, &m_got_frame, &m_packet);
      |                                                                            ^
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/avcodec.h:3024:5: note: declared here
 3024 | int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
      |     ^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/cmd/CMakeFiles/fpcalc.dir/build.make:82: src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:245: src/cmd/CMakeFiles/fpcalc.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
edit: error happen only if I try to build vlc queue and chromaprint is a dep, If I build chromaprint single after rm -fr /tmp/SBo and recompile error disappear

Last edited by camerabambai; 02-25-2021 at 11:43 PM.
 
Old 02-26-2021, 08:34 AM   #3521
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by camerabambai View Post
chromaprint error

Code:
[ 95%] Building CXX object src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In constructor ‘chromaprint::FFmpegAudioReader::FFmpegAudioReader()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:117:18: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
  117 |  av_register_all();
      |                  ^
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:2050:6: note: declared here
 2050 | void av_register_all(void);
      |      ^~~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In destructor ‘chromaprint::FFmpegAudioReader::~FFmpegAudioReader()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:130:28: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  130 |  av_packet_unref(&m_packet0);
      |                            ^
In file included from /usr/include/libavcodec/bsf.h:30,
                 from /usr/include/libavcodec/avcodec.h:44,
                 from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/packet.h:538:6: note: declared here
  538 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘bool chromaprint::FFmpegAudioReader::Open(const string&)’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:181:55: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  181 |  m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec;
      |                                                       ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:19,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavformat/avformat.h:880:21: note: declared here
  880 |     AVCodecContext *codec;
      |                     ^~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:31:24: error: ‘avcodec_alloc_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
   31 | #define av_frame_alloc avcodec_alloc_frame
      |                        ^~~~~~~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:194:12: note: in expansion of macro ‘av_frame_alloc’
  194 |  m_frame = av_frame_alloc();
      |            ^~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘void chromaprint::FFmpegAudioReader::Close()’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:35:23: error: ‘avcodec_free_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
   35 | #define av_frame_free avcodec_free_frame
      |                       ^~~~~~~~~~~~~~~~~~
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:232:2: note: in expansion of macro ‘av_frame_free’
  232 |  av_frame_free(&m_frame);
      |  ^~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h: In member function ‘bool chromaprint::FFmpegAudioReader::Read(const int16_t**, size_t*)’:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:274:30: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  274 |    av_packet_unref(&m_packet0);
      |                              ^
In file included from /usr/include/libavcodec/bsf.h:30,
                 from /usr/include/libavcodec/avcodec.h:44,
                 from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/packet.h:538:6: note: declared here
  538 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
In file included from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:297:76: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  297 |   ret = avcodec_decode_audio4(m_codec_ctx, m_frame, &m_got_frame, &m_packet);
      |                                                                            ^
In file included from /tmp/SBo/chromaprint-v1.4.3/src/audio/ffmpeg_audio_reader.h:18,
                 from /tmp/SBo/chromaprint-v1.4.3/src/cmd/fpcalc.cpp:7:
/usr/include/libavcodec/avcodec.h:3024:5: note: declared here
 3024 | int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
      |     ^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/cmd/CMakeFiles/fpcalc.dir/build.make:82: src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:245: src/cmd/CMakeFiles/fpcalc.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
edit: error happen only if I try to build vlc queue and chromaprint is a dep, If I build chromaprint single after rm -fr /tmp/SBo and recompile error disappear
Is this also happening if you try build chromaprint 1.5.0?
https://acoustid.org/chromaprint

That version builds fine here. Optionally you could download AlienBob's package from here
(64-bit for current) http://www.slackware.com/~alien/slac...pkg64/current/
 
Old 02-26-2021, 11:27 PM   #3522
nullptr
Member
 
Registered: Nov 2019
Posts: 50

Rep: Reputation: Disabled
shaderc
Code:
[100%] Linking CXX executable glslc
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::GlslangInitializer::GlslangInitializer()':
compiler.cc:(.text+0x81): undefined reference to `glslang::InitializeProcess()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::GlslangInitializer::~GlslangInitializer()':
compiler.cc:(.text+0x139): undefined reference to `glslang::FinalizeProcess()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::PreprocessShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, shaderc_util::string_piece const&, shaderc_util::string_piece const&, shaderc_util::CountingIncluder&) const':
compiler.cc:(.text+0x4ce9): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: compiler.cc:(.text+0x4d39): undefined reference to `glslang::TShader::setStringsWithLengthsAndNames(char const* const*, int const*, char const* const*, int)'
/usr/bin/ld: compiler.cc:(.text+0x4d9f): undefined reference to `glslang::TShader::setInvertY(bool)'
/usr/bin/ld: compiler.cc:(.text+0x4dae): undefined reference to `glslang::TShader::setNanMinMaxClamp(bool)'
/usr/bin/ld: compiler.cc:(.text+0x4e51): undefined reference to `glslang::TShader::preprocess(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, glslang::TShader::Includer&)'
/usr/bin/ld: compiler.cc:(.text+0x4e69): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x4f0a): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: compiler.cc:(.text+0x4f24): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::Compile(shaderc_util::string_piece const&, EShLanguage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::function<EShLanguage (std::ostream*, shaderc_util::string_piece const&)> const&, shaderc_util::CountingIncluder&, shaderc_util::Compiler::OutputType, std::ostream*, unsigned long*, unsigned long*) const':
compiler.cc:(.text+0x5a21): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: compiler.cc:(.text+0x5a73): undefined reference to `glslang::TShader::setStringsWithLengthsAndNames(char const* const*, int const*, char const* const*, int)'
/usr/bin/ld: compiler.cc:(.text+0x5a90): undefined reference to `glslang::TShader::setEntryPoint(char const*)'
/usr/bin/ld: compiler.cc:(.text+0x5aa0): undefined reference to `glslang::TShader::setAutoMapBindings(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5ab0): undefined reference to `glslang::TShader::setAutoMapLocations(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5ac7): undefined reference to `glslang::TShader::setShiftImageBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5adb): undefined reference to `glslang::TShader::setShiftSamplerBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5aef): undefined reference to `glslang::TShader::setShiftTextureBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b03): undefined reference to `glslang::TShader::setShiftUboBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b17): undefined reference to `glslang::TShader::setShiftSsboBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b2b): undefined reference to `glslang::TShader::setShiftUavBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b3b): undefined reference to `glslang::TShader::setHlslIoMapping(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5b4f): undefined reference to `glslang::TShader::setResourceSetBinding(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/usr/bin/ld: compiler.cc:(.text+0x5b86): undefined reference to `glslang::TShader::setInvertY(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5b96): undefined reference to `glslang::TShader::setNanMinMaxClamp(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5cc4): undefined reference to `glslang::TShader::parse(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, glslang::TShader::Includer&)'
/usr/bin/ld: compiler.cc:(.text+0x5cd3): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x5d57): undefined reference to `glslang::TProgram::TProgram()'
/usr/bin/ld: compiler.cc:(.text+0x5d97): undefined reference to `glslang::TProgram::link(EShMessages)'
/usr/bin/ld: compiler.cc:(.text+0x5daa): undefined reference to `glslang::TProgram::mapIO(glslang::TIoMapResolver*, glslang::TIoMapper*)'
/usr/bin/ld: compiler.cc:(.text+0x5db9): undefined reference to `glslang::TProgram::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x605f): undefined reference to `glslang::TProgram::~TProgram()'
/usr/bin/ld: compiler.cc:(.text+0x606b): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::PreprocessShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, shaderc_util::string_piece const&, shaderc_util::string_piece const&, shaderc_util::CountingIncluder&) const [clone .cold]':
compiler.cc:(.text.unlikely+0x4d3): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::Compile(shaderc_util::string_piece const&, EShLanguage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::function<EShLanguage (std::ostream*, shaderc_util::string_piece const&)> const&, shaderc_util::CountingIncluder&, shaderc_util::Compiler::OutputType, std::ostream*, unsigned long*, unsigned long*) const [clone .cold]':
compiler.cc:(.text.unlikely+0x5b1): undefined reference to `glslang::TProgram::~TProgram()'
/usr/bin/ld: compiler.cc:(.text.unlikely+0x5bd): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::convertGlslangStructToSpvType(glslang::TType const&, glslang::TVector<glslang::TTypeLoc> const*, glslang::TLayoutPacking, glslang::TQualifier const&)':
GlslangToSpv.cpp:(.text+0x102e3): undefined reference to `glslang::TIntermediate::computeTypeLocationSize(glslang::TType const&, EShLanguage)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1110f): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1115d): undefined reference to `glslang::TIntermediate::improperStraddle(glslang::TType const&, int, int)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1150c): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x11efa): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::convertGlslangToSpvType(glslang::TType const&, glslang::TLayoutPacking, glslang::TQualifier const&, bool, bool)':
GlslangToSpv.cpp:(.text+0x135fa): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x13697): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::visitBinary(glslang::TVisit, glslang::TIntermBinary*)':
GlslangToSpv.cpp:(.text+0x169c7): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x17464): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x17693): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::getSymbolId(glslang::TIntermSymbol const*)':
GlslangToSpv.cpp:(.text+0x1bf69): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1d339): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::visitAggregate(glslang::TVisit, glslang::TIntermAggregate*)':
GlslangToSpv.cpp:(.text+0x289bb): undefined reference to `glslang::TIntermediate::findLinkerObjects() const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::GlslangToSpv(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, spv::SpvBuildLogger*, glslang::SpvOptions*)':
GlslangToSpv.cpp:(.text+0x2bf92): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2bf9a): undefined reference to `glslang::TPoolAllocator::push()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2bfcd): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2c040): undefined reference to `glslang::GetKhronosToolId()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2cd86): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2cd8e): undefined reference to `glslang::TPoolAllocator::pop()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::TType::setFieldName(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char> > const&)':
GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x16): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x23): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x2b): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x98): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::TType::TType(glslang::TType const&, int, bool)':
GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x1df): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x1ec): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x245): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x252): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x25a): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x2b8): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [glslc/CMakeFiles/glslc_exe.dir/build.make:107: glslc/glslc] Error 1
make[1]: *** [CMakeFiles/Makefile2:492: glslc/CMakeFiles/glslc_exe.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
 
Old 02-27-2021, 01:17 AM   #3523
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by nullptr View Post
shaderc
Code:
[100%] Linking CXX executable glslc
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::GlslangInitializer::GlslangInitializer()':
compiler.cc:(.text+0x81): undefined reference to `glslang::InitializeProcess()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::GlslangInitializer::~GlslangInitializer()':
compiler.cc:(.text+0x139): undefined reference to `glslang::FinalizeProcess()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::PreprocessShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, shaderc_util::string_piece const&, shaderc_util::string_piece const&, shaderc_util::CountingIncluder&) const':
compiler.cc:(.text+0x4ce9): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: compiler.cc:(.text+0x4d39): undefined reference to `glslang::TShader::setStringsWithLengthsAndNames(char const* const*, int const*, char const* const*, int)'
/usr/bin/ld: compiler.cc:(.text+0x4d9f): undefined reference to `glslang::TShader::setInvertY(bool)'
/usr/bin/ld: compiler.cc:(.text+0x4dae): undefined reference to `glslang::TShader::setNanMinMaxClamp(bool)'
/usr/bin/ld: compiler.cc:(.text+0x4e51): undefined reference to `glslang::TShader::preprocess(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, glslang::TShader::Includer&)'
/usr/bin/ld: compiler.cc:(.text+0x4e69): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x4f0a): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: compiler.cc:(.text+0x4f24): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::Compile(shaderc_util::string_piece const&, EShLanguage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::function<EShLanguage (std::ostream*, shaderc_util::string_piece const&)> const&, shaderc_util::CountingIncluder&, shaderc_util::Compiler::OutputType, std::ostream*, unsigned long*, unsigned long*) const':
compiler.cc:(.text+0x5a21): undefined reference to `glslang::TShader::TShader(EShLanguage)'
/usr/bin/ld: compiler.cc:(.text+0x5a73): undefined reference to `glslang::TShader::setStringsWithLengthsAndNames(char const* const*, int const*, char const* const*, int)'
/usr/bin/ld: compiler.cc:(.text+0x5a90): undefined reference to `glslang::TShader::setEntryPoint(char const*)'
/usr/bin/ld: compiler.cc:(.text+0x5aa0): undefined reference to `glslang::TShader::setAutoMapBindings(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5ab0): undefined reference to `glslang::TShader::setAutoMapLocations(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5ac7): undefined reference to `glslang::TShader::setShiftImageBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5adb): undefined reference to `glslang::TShader::setShiftSamplerBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5aef): undefined reference to `glslang::TShader::setShiftTextureBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b03): undefined reference to `glslang::TShader::setShiftUboBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b17): undefined reference to `glslang::TShader::setShiftSsboBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b2b): undefined reference to `glslang::TShader::setShiftUavBinding(unsigned int)'
/usr/bin/ld: compiler.cc:(.text+0x5b3b): undefined reference to `glslang::TShader::setHlslIoMapping(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5b4f): undefined reference to `glslang::TShader::setResourceSetBinding(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/usr/bin/ld: compiler.cc:(.text+0x5b86): undefined reference to `glslang::TShader::setInvertY(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5b96): undefined reference to `glslang::TShader::setNanMinMaxClamp(bool)'
/usr/bin/ld: compiler.cc:(.text+0x5cc4): undefined reference to `glslang::TShader::parse(TBuiltInResource const*, int, EProfile, bool, bool, EShMessages, glslang::TShader::Includer&)'
/usr/bin/ld: compiler.cc:(.text+0x5cd3): undefined reference to `glslang::TShader::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x5d57): undefined reference to `glslang::TProgram::TProgram()'
/usr/bin/ld: compiler.cc:(.text+0x5d97): undefined reference to `glslang::TProgram::link(EShMessages)'
/usr/bin/ld: compiler.cc:(.text+0x5daa): undefined reference to `glslang::TProgram::mapIO(glslang::TIoMapResolver*, glslang::TIoMapper*)'
/usr/bin/ld: compiler.cc:(.text+0x5db9): undefined reference to `glslang::TProgram::getInfoLog()'
/usr/bin/ld: compiler.cc:(.text+0x605f): undefined reference to `glslang::TProgram::~TProgram()'
/usr/bin/ld: compiler.cc:(.text+0x606b): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::PreprocessShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, shaderc_util::string_piece const&, shaderc_util::string_piece const&, shaderc_util::CountingIncluder&) const [clone .cold]':
compiler.cc:(.text.unlikely+0x4d3): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: ../libshaderc_util/libshaderc_util.a(compiler.cc.o): in function `shaderc_util::Compiler::Compile(shaderc_util::string_piece const&, EShLanguage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::function<EShLanguage (std::ostream*, shaderc_util::string_piece const&)> const&, shaderc_util::CountingIncluder&, shaderc_util::Compiler::OutputType, std::ostream*, unsigned long*, unsigned long*) const [clone .cold]':
compiler.cc:(.text.unlikely+0x5b1): undefined reference to `glslang::TProgram::~TProgram()'
/usr/bin/ld: compiler.cc:(.text.unlikely+0x5bd): undefined reference to `glslang::TShader::~TShader()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::convertGlslangStructToSpvType(glslang::TType const&, glslang::TVector<glslang::TTypeLoc> const*, glslang::TLayoutPacking, glslang::TQualifier const&)':
GlslangToSpv.cpp:(.text+0x102e3): undefined reference to `glslang::TIntermediate::computeTypeLocationSize(glslang::TType const&, EShLanguage)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1110f): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1115d): undefined reference to `glslang::TIntermediate::improperStraddle(glslang::TType const&, int, int)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1150c): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x11efa): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::convertGlslangToSpvType(glslang::TType const&, glslang::TLayoutPacking, glslang::TQualifier const&, bool, bool)':
GlslangToSpv.cpp:(.text+0x135fa): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x13697): undefined reference to `glslang::TIntermediate::getMemberAlignment(glslang::TType const&, int&, int&, glslang::TLayoutPacking, bool)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::visitBinary(glslang::TVisit, glslang::TIntermBinary*)':
GlslangToSpv.cpp:(.text+0x169c7): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x17464): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x17693): undefined reference to `glslang::TIntermediate::getBaseAlignmentScalar(glslang::TType const&, int&)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::getSymbolId(glslang::TIntermSymbol const*)':
GlslangToSpv.cpp:(.text+0x1bf69): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x1d339): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `(anonymous namespace)::TGlslangToSpvTraverser::visitAggregate(glslang::TVisit, glslang::TIntermAggregate*)':
GlslangToSpv.cpp:(.text+0x289bb): undefined reference to `glslang::TIntermediate::findLinkerObjects() const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::GlslangToSpv(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, spv::SpvBuildLogger*, glslang::SpvOptions*)':
GlslangToSpv.cpp:(.text+0x2bf92): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2bf9a): undefined reference to `glslang::TPoolAllocator::push()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2bfcd): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2c040): undefined reference to `glslang::GetKhronosToolId()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2cd86): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text+0x2cd8e): undefined reference to `glslang::TPoolAllocator::pop()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::TType::setFieldName(std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char> > const&)':
GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x16): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x23): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x2b): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE[_ZN7glslang5TType12setFieldNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEE]+0x98): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/../../../../lib64/libSPIRV.a(GlslangToSpv.cpp.o): in function `glslang::TType::TType(glslang::TType const&, int, bool)':
GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x1df): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x1ec): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x245): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x252): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x25a): undefined reference to `glslang::GetThreadPoolAllocator()'
/usr/bin/ld: GlslangToSpv.cpp:(.text._ZN7glslang5TTypeC2ERKS0_ib[_ZN7glslang5TTypeC5ERKS0_ib]+0x2b8): undefined reference to `glslang::TPoolAllocator::allocate(unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [glslc/CMakeFiles/glslc_exe.dir/build.make:107: glslc/glslc] Error 1
make[1]: *** [CMakeFiles/Makefile2:492: glslc/CMakeFiles/glslc_exe.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
builds fine here with all the dependencies from scratch: try to rebuild and reinstall also all of the dependencies on SBo.
 
Old 02-27-2021, 02:57 AM   #3524
nullptr
Member
 
Registered: Nov 2019
Posts: 50

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
builds fine here with all the dependencies from scratch: try to rebuild and reinstall also all of the dependencies on SBo.
Thanks. I think glslang has already been included in current’s vulkan-sdk.
 
Old 02-27-2021, 03:26 AM   #3525
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,089

Original Poster
Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by nullptr View Post
Thanks. I think glslang has already been included in current’s vulkan-sdk.
ah, thanks, I missed that...

so I'll remove glslang in this repository: please get in touch with the maintainer on SBo for a shaderc fix for building it with the glslang in current (if a fix is feasible).

Last edited by ponce; 02-27-2021 at 03:55 AM.
 
  


Reply

Tags
current, sbo, sbopkg, slackrepo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 05:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 01:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration