Comment 6 for bug 1368721

Revision history for this message
marco zaro (marco-zaro) wrote : Re: [Bug 1368721] [NEW] lhapdf error on mac ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status

wait
so if you specify clang for lhapdf AND use clang as cpp compiler in amcatnlo, i think you should also specify
CFLAGS="-O -stdlib=libstdc++ -mmacosx-version-min=10.6"
when you configue…

otherwise, if yo also have the gnu compilers (g++ and gcc) and compile lhapdf with it, you should also specify the same compiler for amcatnlo…
let me know,

Marco

On 12 Sep 2014, at 15:18, celine degrande <email address hidden> wrote:

> I try with and without specifying compiler in the configuration for the
> lhapdf. I use clang for the case where I put it explicitly
>
> Cheers,
>
> Celine
> ________________________________________
> From: <email address hidden> [<email address hidden>] on behalf of marco zaro [<email address hidden>]
> Sent: Friday, September 12, 2014 2:07 PM
> To: DEGRANDE C.
> Subject: Re: [Bug 1368721] [NEW] lhapdf error on mac ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status
>
> mmm
> did you specify the correct c compiler when you compiled lhapdf?
> it may be a compiler clash…
> Cheers,
>
> Marco
>
>
> On 12 Sep 2014, at 15:00, celine degrande <email address hidden> wrote:
>
>> Hi Marco,
>>
>> I just try t t~ LO in the sm at the end with version 2.2.0 of MG.
>>
>> it on my mac version 10.9.4.
>> The version for clang is
>> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
>> Target: x86_64-apple-darwin13.3.0
>> Thread model: posix
>> I got gcc 4.9.0
>>
>> Do you need something else?
>>
>> The error is :
>>
>> INFO: NNPDF23_nlo_as_0119.LHgrid successfully downloaded and stored in /Users/degrande/lhapdf2/share/lhapdf/PDFsets
>> write compile file for card: /Users/degrande/2.2.0/PROC_sm_2/Cards/param_card.dat
>> run_card missed argument xmtcentral. Takes default: 0.0
>> run_card missed argument d. Takes default: 1.0
>> run_card missed argument gridrun. Takes default: False
>> run_card missed argument fixed_couplings. Takes default: True
>> Error detected in "generate_events run_01"
>> write debug file /Users/degrande/2.2.0/PROC_sm_2/run_01_tag_1_debug.log
>> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
>> MadGraph5Error : A compilation Error occurs when trying to compile /Users/degrande/2.2.0/PROC_sm_2/Source.
>> The compilation fails with the following output message:
>> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
>> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
>> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf -lLHAPDF -lstdc++
>> Undefined symbols for architecture x86_64:
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced from:
>> _getprefixpath_ in libLHAPDF.a(getdatapath.o)
>> _getindexpath_ in libLHAPDF.a(getdatapath.o)
>> _getdatapath_ in libLHAPDF.a(getdatapath.o)
>> _getlhapdfversion_ in libLHAPDF.a(version.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long, unsigned long)", referenced from:
>> std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) in libLHAPDF.a(getdatapath.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*)", referenced from:
>> _getindexpath_ in libLHAPDF.a(getdatapath.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)", referenced from:
>> std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) in libLHAPDF.a(getdatapath.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*)", referenced from:
>> _getprefixpath_ in libLHAPDF.a(getdatapath.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:
>> _getprefixpath_ in libLHAPDF.a(getdatapath.o)
>> _getindexpath_ in libLHAPDF.a(getdatapath.o)
>> _getdatapath_ in libLHAPDF.a(getdatapath.o)
>> std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) in libLHAPDF.a(getdatapath.o)
>> _getlhapdfversion_ in libLHAPDF.a(version.o)
>> "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
>> _getdatapath_ in libLHAPDF.a(getdatapath.o)
>> ld: symbol(s) not found for architecture x86_64
>> collect2: error: ld returned 1 exit status
>> make: *** [../bin/internal/combine_events] Error 1
>>
>> Cheers,
>>
>> Celine
>> ________________________________________
>> From: <email address hidden> [<email address hidden>] on behalf of marco zaro [<email address hidden>]
>> Sent: Friday, September 12, 2014 1:45 PM
>> To: DEGRANDE C.
>> Subject: Re: [Bug 1368721] [NEW] lhapdf error on mac ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status
>>
>> Hi Celine,
>> what error do you get?
>> on which machine and with version of OS/compilers are you using?
>> wich process are you trying?
>> Cheers,
>>
>> Marco
>> On 12 Sep 2014, at 14:42, Launchpad Bug Tracker <email address hidden> wrote:
>>
>>> Olivier Mattelaer (olivier-mattelaer) has assigned this bug to you for MadGraph5_aMC@NLO:
>>>
>>> Hi,
>>>
>>> I can install pdf version 5 but then I got compilation error in MG. I
>>> cannot install version 6 because I do not have the right version of
>>> Boost.
>>>
>>> Cheers,
>>>
>>> Celine
>>>
>>> ** Affects: mg5amcnlo
>>> Importance: Undecided
>>> Assignee: marco zaro (marco-zaro)
>>> Status: New
>>>
>>> --
>>> lhapdf error on mac ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status
>>> https://bugs.launchpad.net/bugs/1368721
>>> You received this bug notification because you are a bug assignee.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1368721
>>
>> Title:
>> lhapdf error on mac ld: symbol(s) not found for architecture x86_64
>> collect2: error: ld returned 1 exit status
>>
>> Status in MadGraph5_aMC@NLO Generator:
>> New
>>
>> Bug description:
>> Hi,
>>
>> I can install pdf version 5 but then I got compilation error in MG. I
>> cannot install version 6 because I do not have the right version of
>> Boost.
>>
>> Cheers,
>>
>> Celine
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mg5amcnlo/+bug/1368721/+subscriptions
>>
>> --
>> You received this bug notification because you are a bug assignee.
>> https://bugs.launchpad.net/bugs/1368721
>>
>> Title:
>> lhapdf error on mac ld: symbol(s) not found for architecture x86_64
>> collect2: error: ld returned 1 exit status
>>
>> Status in MadGraph5_aMC@NLO Generator:
>> New
>>
>> Bug description:
>> Hi,
>>
>> I can install pdf version 5 but then I got compilation error in MG. I
>> cannot install version 6 because I do not have the right version of
>> Boost.
>>
>> Cheers,
>>
>> Celine
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mg5amcnlo/+bug/1368721/+subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1368721
>
> Title:
> lhapdf error on mac ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> Hi,
>
> I can install pdf version 5 but then I got compilation error in MG. I
> cannot install version 6 because I do not have the right version of
> Boost.
>
> Cheers,
>
> Celine
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1368721/+subscriptions
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1368721
>
> Title:
> lhapdf error on mac ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> Hi,
>
> I can install pdf version 5 but then I got compilation error in MG. I
> cannot install version 6 because I do not have the right version of
> Boost.
>
> Cheers,
>
> Celine
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1368721/+subscriptions