Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40910 closed defect (wontfix)

google-test @1.5.0: fatal error: 'tr1/tuple' file not found

Reported by: venabled@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: ryandesign (Ryan Carsten Schmidt), ady.romantika@…, cooljeanius (Eric Gallager)
Port: google-test

Description

Something changed with clang's ability to compile things from the STL. Digging around it seems that clang links to libstd++ by default, and changing compilers to get this built was easier than passing the correct flags to clang and then having to edit a bunch of the source files.

Attachments (2)

google-test.1.5.0.patch (440 bytes) - added by venabled@… 11 years ago.
Update to portfile
tuple.patch (1.4 KB) - added by venabled@… 11 years ago.
Patch that fixes the tr1/tuple errors from c++11

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by venabled@…

Attachment: google-test.1.5.0.patch added

Update to portfile

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mavericks added
Summary: Change complier to gcc4.8 to build google-test 1.5.0 on OS X 10.9 Mavericksgoogle-test @1.5.0: fatal error: 'tr1/tuple' file not found

Thanks for reporting the problem but I'm sure we don't want to switch to a FSF GCC compiler so we need to find a different solution.

comment:2 in reply to:  1 Changed 11 years ago by venabled@…

Replying to ryandesign@…:

Thanks for reporting the problem but I'm sure we don't want to switch to a FSF GCC compiler so we need to find a different solution.

No problem. I had gcc4.8 installed and just need to get code working on my machine, so that fix worked for me. Im sure there's probably a better solution long term.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

google-test 1.7.0 seems to build fine on Mavericks; see #35540. If you can help complete that patch to make the port install, that would be very helpful.

comment:4 Changed 11 years ago by venabled@…

I still don't understand why they don't support make install, or how we can get that into the macports workflow, but we can def. look at it later.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

It seems the entire autotools build isn't supported anymore since version 1.5.0. We're now supposed to use cmake. I can give that a try.

comment:6 Changed 11 years ago by ady.romantika@…

Cc: ady.romantika@… added

Cc Me!

comment:7 Changed 11 years ago by venabled@…

Found a patch that I had to re-implement @ https://codereview.appspot.com/6332052/ , but got it compiling with clang/libc++

Changed 11 years ago by venabled@…

Attachment: tuple.patch added

Patch that fixes the tr1/tuple errors from c++11

comment:8 Changed 11 years ago by soriyath@…

Cc: soriyath@… added

Cc Me!

comment:9 Changed 11 years ago by soriyath@…

Cc: soriyath@… removed

Cc Me!

comment:10 Changed 11 years ago by cdeil (Christoph Deil)

I also ran into the 'tr1/tuple' file not found error on OS X 10.9.

Could you please either apply this patch or remove the @google-test@ part, as seems to be the consensus in #35540?

comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

Will remove; see #35540.

comment:12 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.