Csound Csound-dev Csound-tekno Search About

[Csnd-dev] build failure in current dev branch

Date2016-11-18 07:35
Fromjoachim heintz
Subject[Csnd-dev] build failure in current dev branch
i am on debian testing, output is below.
	joachim

[ 78%] Linking C executable ../dnoise
/usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation 
R_X86_64_32 against `.rodata' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o: 
relocation R_X86_64_32 against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation 
R_X86_64_32 against `.rodata' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise' failed
make[2]: *** [dnoise] Error 1
frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target 
'csound' failed
make[2]: *** [csound] Error 1
CMakeFiles/Makefile2:2439: recipe for target 
'util/CMakeFiles/dnoise.dir/all' failed
make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:2135: recipe for target 
'frontends/CMakeFiles/csound-bin.dir/all' failed
make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
/usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation 
R_X86_64_32 against `.rodata' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o: 
relocation R_X86_64_32 against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
util/CMakeFiles/het_export.dir/build.make:95: recipe for target 
'het_export' failed
make[2]: *** [het_export] Error 1
CMakeFiles/Makefile2:2402: recipe for target 
'util/CMakeFiles/het_export.dir/all' failed
make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
[ 79%] Built target csladspa
collect2: error: ld returned 1 exit status
frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target 
'csdebugger' failed
make[2]: *** [csdebugger] Error 1
CMakeFiles/Makefile2:2024: recipe for target 
'frontends/CMakeFiles/csdebugger.dir/all' failed
make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
[ 80%] Built target libcsnd6
Makefile:160: recipe for target 'all' failed

Date2016-11-18 07:56
FromVictor Lazzarini
SubjectRe: [Csnd-dev] build failure in current dev branch
Looks like -fPIC needs to be added to the CMAKE_CFLAGS

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 18 Nov 2016, at 07:36, joachim heintz  wrote:
> 
> i am on debian testing, output is below.
>    joachim
> 
> [ 78%] Linking C executable ../dnoise
> /usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise' failed
> make[2]: *** [dnoise] Error 1
> frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target 'csound' failed
> make[2]: *** [csound] Error 1
> CMakeFiles/Makefile2:2439: recipe for target 'util/CMakeFiles/dnoise.dir/all' failed
> make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> CMakeFiles/Makefile2:2135: recipe for target 'frontends/CMakeFiles/csound-bin.dir/all' failed
> make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
> /usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> /usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> util/CMakeFiles/het_export.dir/build.make:95: recipe for target 'het_export' failed
> make[2]: *** [het_export] Error 1
> CMakeFiles/Makefile2:2402: recipe for target 'util/CMakeFiles/het_export.dir/all' failed
> make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
> [ 79%] Built target csladspa
> collect2: error: ld returned 1 exit status
> frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target 'csdebugger' failed
> make[2]: *** [csdebugger] Error 1
> CMakeFiles/Makefile2:2024: recipe for target 'frontends/CMakeFiles/csdebugger.dir/all' failed
> make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
> [ 80%] Built target libcsnd6
> Makefile:160: recipe for target 'all' failed

Date2016-11-18 12:44
FromFelipe Sateler
SubjectRe: [Csnd-dev] build failure in current dev branch
This should be added automatically. What gcc version do you have?

On 18 November 2016 at 04:56, Victor Lazzarini  wrote:
> Looks like -fPIC needs to be added to the CMAKE_CFLAGS
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 18 Nov 2016, at 07:36, joachim heintz  wrote:
>>
>> i am on debian testing, output is below.
>>    joachim
>>
>> [ 78%] Linking C executable ../dnoise
>> /usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: error: ld returned 1 exit status
>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: error: ld returned 1 exit status
>> util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise' failed
>> make[2]: *** [dnoise] Error 1
>> frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target 'csound' failed
>> make[2]: *** [csound] Error 1
>> CMakeFiles/Makefile2:2439: recipe for target 'util/CMakeFiles/dnoise.dir/all' failed
>> make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> CMakeFiles/Makefile2:2135: recipe for target 'frontends/CMakeFiles/csound-bin.dir/all' failed
>> make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
>> /usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: error: ld returned 1 exit status
>> /usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> util/CMakeFiles/het_export.dir/build.make:95: recipe for target 'het_export' failed
>> make[2]: *** [het_export] Error 1
>> CMakeFiles/Makefile2:2402: recipe for target 'util/CMakeFiles/het_export.dir/all' failed
>> make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
>> [ 79%] Built target csladspa
>> collect2: error: ld returned 1 exit status
>> frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target 'csdebugger' failed
>> make[2]: *** [csdebugger] Error 1
>> CMakeFiles/Makefile2:2024: recipe for target 'frontends/CMakeFiles/csdebugger.dir/all' failed
>> make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
>> [ 80%] Built target libcsnd6
>> Makefile:160: recipe for target 'all' failed
>> make: *** [all] Error 2



-- 

Saludos,

Date2016-11-18 17:35
Fromjoachim heintz
SubjectRe: [Csnd-dev] build failure in current dev branch
my version is:
gcc (Debian 6.2.0-10) 6.2.0 20161027

i have built csound two weeks ago without problems.

should i add the option manually, or is it to adjust anything?

thanks -
	joachim


On 18/11/16 13:44, Felipe Sateler wrote:
> This should be added automatically. What gcc version do you have?
>
> On 18 November 2016 at 04:56, Victor Lazzarini  wrote:
>> Looks like -fPIC needs to be added to the CMAKE_CFLAGS
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 18 Nov 2016, at 07:36, joachim heintz  wrote:
>>>
>>> i am on debian testing, output is below.
>>>    joachim
>>>
>>> [ 78%] Linking C executable ../dnoise
>>> /usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>> collect2: error: ld returned 1 exit status
>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>> collect2: error: ld returned 1 exit status
>>> util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise' failed
>>> make[2]: *** [dnoise] Error 1
>>> frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target 'csound' failed
>>> make[2]: *** [csound] Error 1
>>> CMakeFiles/Makefile2:2439: recipe for target 'util/CMakeFiles/dnoise.dir/all' failed
>>> make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
>>> make[1]: *** Waiting for unfinished jobs....
>>> CMakeFiles/Makefile2:2135: recipe for target 'frontends/CMakeFiles/csound-bin.dir/all' failed
>>> make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
>>> /usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>> collect2: error: ld returned 1 exit status
>>> /usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>> util/CMakeFiles/het_export.dir/build.make:95: recipe for target 'het_export' failed
>>> make[2]: *** [het_export] Error 1
>>> CMakeFiles/Makefile2:2402: recipe for target 'util/CMakeFiles/het_export.dir/all' failed
>>> make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
>>> [ 79%] Built target csladspa
>>> collect2: error: ld returned 1 exit status
>>> frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target 'csdebugger' failed
>>> make[2]: *** [csdebugger] Error 1
>>> CMakeFiles/Makefile2:2024: recipe for target 'frontends/CMakeFiles/csdebugger.dir/all' failed
>>> make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
>>> [ 80%] Built target libcsnd6
>>> Makefile:160: recipe for target 'all' failed
>>> make: *** [all] Error 2
>
>

Date2016-11-18 18:12
FromFelipe Sateler
SubjectRe: [Csnd-dev] build failure in current dev branch
GCC now defaults to PIE by default now. Have you tried a clean build?
perhaps you still have some objects from a previous build with an
older gcc without PIE by default.

FWIW, I rebuilt csound (although not git) a few days ago just fine.

On 18 November 2016 at 14:35, joachim heintz  wrote:
> my version is:
> gcc (Debian 6.2.0-10) 6.2.0 20161027
>
> i have built csound two weeks ago without problems.
>
> should i add the option manually, or is it to adjust anything?
>
> thanks -
>         joachim
>
>
>
> On 18/11/16 13:44, Felipe Sateler wrote:
>>
>> This should be added automatically. What gcc version do you have?
>>
>> On 18 November 2016 at 04:56, Victor Lazzarini 
>> wrote:
>>>
>>> Looks like -fPIC needs to be added to the CMAKE_CFLAGS
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 18 Nov 2016, at 07:36, joachim heintz  wrote:
>>>>
>>>> i am on debian testing, output is below.
>>>>    joachim
>>>>
>>>> [ 78%] Linking C executable ../dnoise
>>>> /usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation
>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>> recompile with -fPIC
>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>> collect2: error: ld returned 1 exit status
>>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o:
>>>> relocation R_X86_64_32 against `.rodata' can not be used when making a
>>>> shared object; recompile with -fPIC
>>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation
>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>> recompile with -fPIC
>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>> collect2: error: ld returned 1 exit status
>>>> util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise'
>>>> failed
>>>> make[2]: *** [dnoise] Error 1
>>>> frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target
>>>> 'csound' failed
>>>> make[2]: *** [csound] Error 1
>>>> CMakeFiles/Makefile2:2439: recipe for target
>>>> 'util/CMakeFiles/dnoise.dir/all' failed
>>>> make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
>>>> make[1]: *** Waiting for unfinished jobs....
>>>> CMakeFiles/Makefile2:2135: recipe for target
>>>> 'frontends/CMakeFiles/csound-bin.dir/all' failed
>>>> make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
>>>> /usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation
>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>> recompile with -fPIC
>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>> collect2: error: ld returned 1 exit status
>>>> /usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o:
>>>> relocation R_X86_64_32 against `.rodata' can not be used when making a
>>>> shared object; recompile with -fPIC
>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>> util/CMakeFiles/het_export.dir/build.make:95: recipe for target
>>>> 'het_export' failed
>>>> make[2]: *** [het_export] Error 1
>>>> CMakeFiles/Makefile2:2402: recipe for target
>>>> 'util/CMakeFiles/het_export.dir/all' failed
>>>> make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
>>>> [ 79%] Built target csladspa
>>>> collect2: error: ld returned 1 exit status
>>>> frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target
>>>> 'csdebugger' failed
>>>> make[2]: *** [csdebugger] Error 1
>>>> CMakeFiles/Makefile2:2024: recipe for target
>>>> 'frontends/CMakeFiles/csdebugger.dir/all' failed
>>>> make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
>>>> [ 80%] Built target libcsnd6
>>>> Makefile:160: recipe for target 'all' failed
>>>> make: *** [all] Error 2
>>
>>
>>
>>
>



-- 

Saludos,

Date2016-11-18 18:56
Fromjoachim heintz
SubjectRe: [Csnd-dev] build failure in current dev branch
ah yes, this worked.  after running the cleanup.sh and make clean in the 
build dir, i could compile without issues.
thanks -
	joachim


On 18/11/16 19:12, Felipe Sateler wrote:
> GCC now defaults to PIE by default now. Have you tried a clean build?
> perhaps you still have some objects from a previous build with an
> older gcc without PIE by default.
>
> FWIW, I rebuilt csound (although not git) a few days ago just fine.
>
> On 18 November 2016 at 14:35, joachim heintz  wrote:
>> my version is:
>> gcc (Debian 6.2.0-10) 6.2.0 20161027
>>
>> i have built csound two weeks ago without problems.
>>
>> should i add the option manually, or is it to adjust anything?
>>
>> thanks -
>>         joachim
>>
>>
>>
>> On 18/11/16 13:44, Felipe Sateler wrote:
>>>
>>> This should be added automatically. What gcc version do you have?
>>>
>>> On 18 November 2016 at 04:56, Victor Lazzarini 
>>> wrote:
>>>>
>>>> Looks like -fPIC needs to be added to the CMAKE_CFLAGS
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 18 Nov 2016, at 07:36, joachim heintz  wrote:
>>>>>
>>>>> i am on debian testing, output is below.
>>>>>    joachim
>>>>>
>>>>> [ 78%] Linking C executable ../dnoise
>>>>> /usr/bin/ld: CMakeFiles/dnoise.dir/dnoise_main.c.o: relocation
>>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>>> recompile with -fPIC
>>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>>> collect2: error: ld returned 1 exit status
>>>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/csound_main.c.o:
>>>>> relocation R_X86_64_32 against `.rodata' can not be used when making a
>>>>> shared object; recompile with -fPIC
>>>>> /usr/bin/ld: CMakeFiles/csound-bin.dir/csound/sched.c.o: relocation
>>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>>> recompile with -fPIC
>>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>>> collect2: error: ld returned 1 exit status
>>>>> util/CMakeFiles/dnoise.dir/build.make:95: recipe for target 'dnoise'
>>>>> failed
>>>>> make[2]: *** [dnoise] Error 1
>>>>> frontends/CMakeFiles/csound-bin.dir/build.make:121: recipe for target
>>>>> 'csound' failed
>>>>> make[2]: *** [csound] Error 1
>>>>> CMakeFiles/Makefile2:2439: recipe for target
>>>>> 'util/CMakeFiles/dnoise.dir/all' failed
>>>>> make[1]: *** [util/CMakeFiles/dnoise.dir/all] Error 2
>>>>> make[1]: *** Waiting for unfinished jobs....
>>>>> CMakeFiles/Makefile2:2135: recipe for target
>>>>> 'frontends/CMakeFiles/csound-bin.dir/all' failed
>>>>> make[1]: *** [frontends/CMakeFiles/csound-bin.dir/all] Error 2
>>>>> /usr/bin/ld: CMakeFiles/het_export.dir/hetx_main.c.o: relocation
>>>>> R_X86_64_32 against `.rodata' can not be used when making a shared object;
>>>>> recompile with -fPIC
>>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>>> collect2: error: ld returned 1 exit status
>>>>> /usr/bin/ld: CMakeFiles/csdebugger.dir/debugger/csdebugger.cpp.o:
>>>>> relocation R_X86_64_32 against `.rodata' can not be used when making a
>>>>> shared object; recompile with -fPIC
>>>>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>>>>> util/CMakeFiles/het_export.dir/build.make:95: recipe for target
>>>>> 'het_export' failed
>>>>> make[2]: *** [het_export] Error 1
>>>>> CMakeFiles/Makefile2:2402: recipe for target
>>>>> 'util/CMakeFiles/het_export.dir/all' failed
>>>>> make[1]: *** [util/CMakeFiles/het_export.dir/all] Error 2
>>>>> [ 79%] Built target csladspa
>>>>> collect2: error: ld returned 1 exit status
>>>>> frontends/CMakeFiles/csdebugger.dir/build.make:95: recipe for target
>>>>> 'csdebugger' failed
>>>>> make[2]: *** [csdebugger] Error 1
>>>>> CMakeFiles/Makefile2:2024: recipe for target
>>>>> 'frontends/CMakeFiles/csdebugger.dir/all' failed
>>>>> make[1]: *** [frontends/CMakeFiles/csdebugger.dir/all] Error 2
>>>>> [ 80%] Built target libcsnd6
>>>>> Makefile:160: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>
>>>
>>>
>>>
>>
>
>