Fork me on GitHub

Opened 10 years ago

Closed 10 years ago

#371 closed Bug (fixed)

Compilation Error

Reported by: iris Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Hello, I have got this error when I tried to install Delphes in MG5

gcc: error: unrecognized command line option ‘-stdlib=libc++’
gcc: error: unrecognized command line option ‘-stdlib=libc++’
make: * [tmp/external/tcl/tclObj.o] Error 1
Error detected during the compilation. Please check the compilation error and run make manually.

Are there any solutions to this? Thank you very much!!!

Change History (5)

comment:1 by Pavel Demin, 10 years ago

This problem was already discussed in

https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/315

and it's fixed in the latest Delphes release.

MadGraph is using previous version of Delphes where this problems is still present.

Could you try to replace the following line in Delphes/Makefile

@gcc $(CXXFLAGS) -c $< $(OutPutOpt)$@

with the following expression

@$(CC) $(patsubst -std=%,,$(CXXFLAGS)) -c $< $(OutPutOpt)$@

The commands to build Delphes are:

cd Delphes
make

comment:2 by iris, 10 years ago

Sorry, I have changed the line as you said and make. But the compilation error remained.

Version 0, edited 10 years ago by iris (next)

comment:3 by Pavel Demin, 10 years ago

Once you change Makefile, you have to rebuild Delphes manually. I thought that MadGraph will automatically recognize this manually rebuilt Delphes installation.

I've just modified Makefile in the .tar.gz file that MadGraph downloads.

Could you try to reinstall Delphes in MadGraph?

comment:4 by iris, 10 years ago

Succeeded! Thank you very much!

comment:5 by Pavel Demin, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.