Csound Csound-dev Csound-tekno Search About

[Csnd] can not build

Date2022-11-01 10:33
Fromtjingboem
Subject[Csnd] can not build
on Linux Mint 21.

The issue has been there for a while.
I'd like to use 6.18 but something is wrong on my system and i don't know why.
It stops building at 61%:

[ 61%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_base.c.o
[ 61%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_orc_semantic_analysis.c.o
[ 61%] Linking C shared library libcsound64.so

.........
/bin/ld: /usr/local/lib/libsndfile.a(rpe.c.o): warning: relocation against `gsm_FAC' in read-only section `.text'
/bin/ld: /usr/local/lib/libsndfile.a(sndfile.c.o): relocation R_X86_64_PC32 against symbol `sf_errno' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/csound64.dir/build.make:4057: libcsound64.so.6.0] Error 1

my libsndfile, libsndfile:i386 and libsndfile-dev are version 1.0.3. These libraries are part of LM21.
I do have a libsndfile-static from KXStudio available but do not have this installed.

Help is welcome and appreciated!
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2022-11-01 11:16
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] can not build
That looks like a libsndfile build issue to me. The listed libraries are static (.a) maybe you can try to see if having a dynamic libsndfile (.so) will solve your problem.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 1 Nov 2022, at 10:33, tjingboem  wrote:
> 
> WARNINGThis email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> on Linux Mint 21.
> 
> The issue has been there for a while.
> I'd like to use 6.18 but something is wrong on my system and i don't know why.
> It stops building at 61%:
> 
> [ 61%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_base.c.o
> [ 61%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_orc_semantic_analysis.c.o
> [ 61%] Linking C shared library libcsound64.so
> .........
> /bin/ld: /usr/local/lib/libsndfile.a(rpe.c.o): warning: relocation against `gsm_FAC' in read-only section `.text'
> /bin/ld: /usr/local/lib/libsndfile.a(sndfile.c.o): relocation R_X86_64_PC32 against symbol `sf_errno' can not be used when making a shared object; recompile with -fPIC
> /bin/ld: final link failed: bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/csound64.dir/build.make:4057: libcsound64.so.6.0] Error 1
> 
> my libsndfile, libsndfile:i386 and libsndfile-dev are version 1.0.3. These libraries are part of LM21.
> I do have a libsndfile-static from KXStudio available but do not have this installed.
> 
> Help is welcome and appreciated!
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here