Opened 9 years ago

Closed 9 years ago

#47331 closed defect (fixed)

postgis2 failure: /usr/bin/gcc-4.2: No such file or directory

Reported by: vaccari@… Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: snowleopard Cc: enrico.brandmayr@…
Port: postgis2

Description

Installation fails in this configuration:

Mac OS X 10.6.8
Xcode 4.2 for Snow Leopard

The problem is that with Xcode 4.2 for Snow Leopard the compilers in /usr/bin are

/usr/bin/gcc
/usr/bin/i686-apple-darwin10-llvm-gcc-4.2
/usr/bin/llvm-gcc
/usr/bin/llvm-gcc-4.2

while the installer is looking for /usr/bin/gcc-4.2.

I attach the main.log file

Attachments (1)

main.log (82.1 KB) - added by vaccari@… 9 years ago.

Download all attachments as: .zip

Change History (13)

Changed 9 years ago by vaccari@…

Attachment: main.log added

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

Keywords: postgis2 snow leopard Xcode 4.2 removed
Owner: changed from macports-tickets@… to vince@…

In the future, please Cc the port maintainers (port info --maintainers postgis2), if any.

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

Keywords: snowleopard added

comment:3 Changed 9 years ago by enrico.brandmayr@…

Cc: enrico.brandmayr@… added

Cc Me!

comment:4 Changed 9 years ago by Veence (Vincent)

Argh. Snow Leopard. Did you manage to find a workaround since, or is this still relevant?

comment:5 Changed 9 years ago by vaccari@…

Eh, it actually should be nice if this could be solved. I have some Xserves and managed clients still working perfectly that cannot be updated to newer OS…

Of course, I don’t know how hard a fix would be, and I agree we are speaking of dinosaurs here…

Thanks for looking into it anyway

Franco

comment:6 Changed 9 years ago by vaccari@…

Just adding here that of all the many packages that I have installed on my Yosemite laptop *and* on the Snow Leopard server and clients, this is the only one that fails on SL, and that's why I'm still hoping that it can be solved...

comment:7 Changed 9 years ago by Veence (Vincent)

Well, talk about serendipity. I still have an old i386-MacMini running SL. Going to dig into this using it.

comment:8 Changed 9 years ago by Veence (Vincent)

I cannot reproduce your bug:

uname -a
Darwin vieuxmacmini.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

sudo port -v install postgis2 +postgresql94
--->  Computing dependencies for postgis2.
--->  Fetching archive for postgis2
--->  postgis2-2.1.7_0+postgresql94+raster+topology.darwin_10.i386.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch postgis2-2.1.7_0+postgresql94+raster+topology.darwin_10.i386.tbz2 from http://nue.de.packages.macports.org/macports/packages/postgis2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching distfiles for postgis2
--->  postgis-2.1.7.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/postgis2
--->  Attempting to fetch postgis-2.1.7.tar.gz from http://lil.fr.distfiles.macports.org/postgis2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6644k  100 6644k    0     0  4411k      0  0:00:01  0:00:01 --:--:-- 4438k
--->  Verifying checksums for postgis2
--->  Checksumming postgis-2.1.7.tar.gz
--->  Extracting postgis2
--->  Extracting postgis-2.1.7.tar.gz
--->  Configuring postgis2
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking how to print strings... printf
checking for gcc... /usr/bin/llvm-gcc-4.2
checking whether the C compiler works... yes
[…]
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.1.7/extensions'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.1.7'
--->  Patching liblwgeom.la: /dependency_libs/ s/'.*'/''/
--->  Installing postgis2 @2.1.7_0+postgresql94+raster+topology
Last edited 9 years ago by Veence (Vincent) (previous) (diff)

comment:9 in reply to:  8 Changed 9 years ago by larryv (Lawrence Velázquez)

Replying to vince@…:

I cannot reproduce your bug:

What version of Xcode does your machine have? OP has Xcode 4.2, which lacks GCC 4.2.

comment:10 Changed 9 years ago by Veence (Vincent)

I have Xcode 4.2 build 4C199 installed on this machine.

comment:11 in reply to:  10 Changed 9 years ago by vaccari@…

Replying to vince@…:

I have Xcode 4.2 build 4C199 installed on this machine.

It is the same exact version I have and, insert your preferred embarrassment expression here, unlike the last time I've tried, it now builds flawlessly also on my servers and clients. So I confirm the case can be closed, and thank you again for investigating!

comment:12 Changed 9 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

Ammazza! Perfetto. Un problema di meno da risolvere! Have a great day!

Note: See TracTickets for help on using tickets.