Opened 12 years ago

Last modified 9 years ago

#36686 new defect

gearmand @0.41_0+sqlite requires compiler specification on a 10.5.8 PPC

Reported by: udbraumann Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: leopard Cc: andy@…
Port: gearmand

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build In file included from ./libgearman/common.h:44,
:info:build                  from libgearman/actions.cc:39:
:info:build ./libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory
:info:build make[1]: *** [libgearman/libgearman_libgearman_la-actions.lo] Error 1

I tried a

$ sudo port clean gearmand

followed by

$ sudo port upgrade gearmand configure.compiler=macports-gcc-4.5

This was successful for building gearmand 0.41_0 on my 10.5.8 PPC.

Attachments (1)

main.log (37.9 KB) - added by udbraumann 12 years ago.

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by udbraumann

Attachment: main.log added

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Cc: andy@… added
Keywords: leopard added; compiler specification required removed

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

Description: modified (diff)

Would clang work? We'd prefer that to using a gcc port.

comment:3 Changed 11 years ago by jmroot (Joshua Root)

Did you try gcc-4.2? A compiler included with Xcode on Leopard would be even better.

comment:4 in reply to:  3 Changed 11 years ago by udbraumann

Replying to jmr@…:

Did you try gcc-4.2? A compiler included with Xcode on Leopard would be even better.

I have these compilers:

1. gcc version 3.3 20030304 (Apple Computer, Inc. build 1823)
2. gcc version 4.0.1 (Apple Inc. build 5493)
3. gcc version 4.2.1 (Apple Inc. build 5577)
4. gcc version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build 2064.3)
5. gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_9)
6. gcc version 4.5.4 (MacPorts gcc45 4.5.4_1) 

I think, without specification port takes the second one, since I found a symbolic link from /usr/bin/gcc to /usr/bin/gcc-4.0. (BTW, if I replace this link with a one from /usr/bin/gcc to /usr/bin/gcc-4.2, is this all I need to do to have preset Apple gcc42 as gcc, or are there even more links to be modified?)

At the moment I cannot install gcc42 from macports due to some dependency on libstdcxx which in turn requires gcc47, but the latter due to some defect (solution is pending) cannot be build using gcc45 on my 10.5.8. PPC. So, at the moment I cannot say if the macports versions 4.1, 4.3, or 4.4 also work, fortunately the already installed /opt/local/bin/gcc-mp-4.5 did it.

Just to remind, the error all the other compilers were issuing was:

:info:build ./libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory

comment:5 in reply to:  2 Changed 11 years ago by udbraumann

Replying to ryandesign@…:

Would clang work? We'd prefer that to using a gcc port.

I have installed mp-clang-3.0, and after cleaning gearmand I have invoked the build with

sudo port install gearmand configure.compiler=macports-clang-3.0

However, I run in this error:

:info:configure checking for boost/program_options.hpp... no
:info:configure configure: error: cannot find boost/program_options.hpp
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_gearmand/gearmand/work/gearmand-0.41" && ./configure --prefix=/opt/local --disable-silent-rules --disable-libdrizzle --disable-libpq --disable-libmemcached --disable-libtokyocabinet --enable-jobserver=1 --without-mysql 
:info:configure Exit code: 1

So mp-clang-3.0 does not seem to be an option here, but mp-gcc45 works.

comment:6 Changed 10 years ago by c9s (Yo-An Lin)

This is basically fixed in #41003

comment:7 Changed 9 years ago by mf2k (Frank Schima)

Cc: rodney.rehm@… removed

See #47536.

Note: See TracTickets for help on using tickets.