Csound Csound-dev Csound-tekno Search About

[Csnd-dev] cs6 build problem

Date2023-11-11 00:25
FromJohn ff
Subject[Csnd-dev] cs6 build problem
My cs6 tree was n a mess so I have just clones a new tree. ut building
it failed in part with
[ 72%] Linking C shared module ../librtpa.so
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportaudio.a(pa_front.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [InOut/CMakeFiles/rtpa.dir/build.make:98: librtpa.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1103: InOut/CMakeFiles/rtpa.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Is this an openSuSE (my Linux distro) issue or more general?

==John ffitch

Date2023-11-11 14:39
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] cs6 build problem
Certainly not an issue on ubuntu as the linux build on github is passing.

Do you build Csound 7 in the same machine? Do you have similar issues? The rtpa module has not changed afaik.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 11 Nov 2023, at 14:31, John ff  wrote:
> 
> *Warning*
> 
> This 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.
> 
> My cs6 tree was n a mess so I have just clones a new tree. ut building
> it failed in part with
> [ 72%] Linking C shared module ../librtpa.so
> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportaudio.a(pa_front.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [InOut/CMakeFiles/rtpa.dir/build.make:98: librtpa.so] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1103: InOut/CMakeFiles/rtpa.dir/all] Error 2
> make: *** [Makefile:166: all] Error 2
> 
> Is this an openSuSE (my Linux distro) issue or more general?
> 
> ==John ffitch

Date2023-11-11 15:32
Fromjohn
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] cs6 build problem
> Do you build Csound 7 in the same machine? Do you have similar issues? 
> The rtpa module has not changed afaik.

No problem in cs7.  At least I have not rebuilt evrything recently

Date2023-11-11 15:34
Fromjohn
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] cs6 build problem
On the other hand I always used to onmpile with -PIC

Perps I ill justy add it

Date2023-11-11 18:05
Fromjohn
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] cs6 build problem
It seemees that the system troes to use libportaudio.a whicjh is suspect. 
If I edit the CMakeCache file to suse libportaudio.so it compiles OK. 
Perhaps the CMake system has changed?

Anyway I have it patched and building.