[Cs-dev] Strange error
Date | 2013-05-28 04:48 |
From | Andres Cabrera |
Subject | [Cs-dev] Strange error |
Attachments | None None |
Hi, [ 63%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_dispatch.c.o Linking C shared library libcsound64.so /usr/bin/ld: CMakeFiles/csound64.dir/Top/main.c.o: relocation R_X86_64_PC32 against symbol `DummyMidiInOpen' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make[2]: *** [libcsound64.so.6.0] Error 1 make[1]: *** [CMakeFiles/csound64.dir/all] Error 2 make: *** [all] Error 2 Cheers, Andrés |
Date | 2013-05-28 08:00 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Strange error |
It builds here on x86_64 ubuntu linux. The function is implemented in csound.c and looks like the linking against a call in main.c is failing. Is -fPIC being used? On 28 May 2013, at 04:48, Andres Cabrera wrote: > Hi, > > I'm in the process of moving to a new 64 bit ubuntu, and I'm getting this error: > > [ 63%] Building C object CMakeFiles/csound64.dir/Engine/cs_par_dispatch.c.o > Linking C shared library libcsound64.so > /usr/bin/ld: CMakeFiles/csound64.dir/Top/main.c.o: relocation R_X86_64_PC32 against symbol `DummyMidiInOpen' can not be used when making a shared object; recompile with -fPIC > /usr/bin/ld: final link failed: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [libcsound64.so.6.0] Error 1 > make[1]: *** [CMakeFiles/csound64.dir/all] Error 2 > make: *** [all] Error 2 > > Any ideas? > > Cheers, > Andrés > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-28 15:21 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
It is used when linking libcsound, but it seems it might not have been used when building something else... I'm on 13.04, any idea why this might be a problem?Cheers, Andrés On Tue, May 28, 2013 at 12:00 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: It builds here on x86_64 ubuntu linux. The function is implemented in csound.c and looks like the linking against a call in main.c is failing. Is -fPIC being used? |
Date | 2013-05-28 15:31 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
According to the error message, it needs to be in the command-line when compiling main.c; I'll try and update my ubuntu to see if I can catch this. On 28 May 2013, at 15:21, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-05-28 16:14 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] Strange error |
Are you building the static library? Static libraries are usually built without -fPIC On Tue, May 28, 2013 at 10:31 AM, Victor Lazzarini |
Date | 2013-05-28 16:51 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
Hi, This should be the dynamic library build. I didn't specify anything for cmake. Cheers, Andrés On Tue, May 28, 2013 at 8:14 AM, Felipe Sateler <fsateler@gmail.com> wrote: Are you building the static library? |
Date | 2013-05-28 22:11 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
yes, I updated my ubuntu 13.04 version and was able to build csound with no errors. Victor On 28 May 2013, at 16:51, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-05-28 22:47 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
Hi, Strange... I've cleaned and tried to rebuild but still get the same error. I did notice these warnings, which are probably the reason:/home/andres/Documents/src/csound-csound6-git/Top/main.c:289:12: warning: ‘DummyMidiInOpen’ used but never defined [enabled by default] /home/andres/Documents/src/csound-csound6-git/Top/main.c:291:12: warning: ‘DummyMidiRead’ used but never defined [enabled by default] Andrés On Tue, May 28, 2013 at 2:11 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-05-28 23:04 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
I see, they are declared as static, that's wrong. Fixed in GIT. On 28 May 2013, at 22:47, Andres Cabrera wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-05-28 23:24 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Strange error |
Attachments | None None |
Great, thanks, that did it. AndrésCheers, On Tue, May 28, 2013 at 3:04 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|