Opened 12 years ago

Closed 12 years ago

#37696 closed defect (fixed)

icu upgrade 49.1.2_0 < 49.1.2_1 fails on 10.5.8 PPC

Reported by: ned-deily (Ned Deily) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager)
Port: icu

Description

:info:build /usr/bin/gcc-4.0 -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION     -I.   "-DDEFAULT_ICU_PLUGINS=\"/macports/lib/icu\" " -pipe -O2 -arch ppc -O2 -ansi -pedantic -Wshadow -Wpointer-arith -
Wmissing-prototypes -Wwrite-strings -Wno-long-long   -fno-common -c   -o umutex.ao umutex.c
:info:build In file included from umutex.h:30,
:info:build                  from ucln.h:21,
:info:build                  from ucln_cmn.h:21,
:info:build                  from umutex.c:23:
:info:build /usr/include/libkern/OSAtomic.h:71: error: syntax error before ‘static’
:info:build /usr/include/libkern/OSAtomic.h:74: error: syntax error before ‘static’
:info:build /usr/include/libkern/OSAtomic.h:78: error: syntax error before ‘static’
:info:build /usr/include/libkern/OSAtomic.h:81: error: syntax error before ‘static’
:info:build gnumake[1]: *** [umutex.ao] Error 1

Attachments (2)

main.log (37.2 KB) - added by ned-deily (Ned Deily) 12 years ago.
config.log (50.9 KB) - added by ned-deily (Ned Deily) 12 years ago.

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by ned-deily (Ned Deily)

Attachment: main.log added

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I guess gcc-4.0 doesn't like the __attribute__((__always_inline__))

Can you please remove that from the clang-assert.patch that I added, clean, and try again?

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Oh, and why are you using gcc-4.0 on Leopard? You should have gcc-4.2 there...

comment:3 Changed 12 years ago by ned-deily (Ned Deily)

gcc-4.0 is the default for /usr/bin/cc and /usr/bin/gcc on Leopard, AFAIK.

comment:4 in reply to:  3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Replying to nad@…:

gcc-4.0 is the default for /usr/bin/cc and /usr/bin/gcc on Leopard, AFAIK.

I don't think so, but that's not really relevant here. /usr/bin/gcc-4.0 is being executed. base should choose gcc-4.2 for XCode 3.0.x ... What version of XCode are you using on Leopard?

comment:5 Changed 12 years ago by ned-deily (Ned Deily)

Sorry, must be late: I don't see a clang-assert.patch in port icu.

# xcodebuild -version
Xcode 3.1.4
Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0
BuildVersion: 9M2809

According to the Xcode 3.1.4 Release Notes, "GCC 4.2 is a new optional compiler". It is there but gcc-4.0 is the default. That's the case on all of my Xcode 3.1.4 installations, PPC and Intel. Always has been.

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Sorry, wrong patch name... that change was for a different port.

r101785 should fix you up, but I'm still concerned about it picking gcc-4.0 for you... it should be choosing gcc-4.2.

Your XCode release notes are irrelevant. It's base that determines what is run. What version of base do you have?

port version

comment:7 Changed 12 years ago by ned-deily (Ned Deily)

Thanks, r101785 appears to fix the build failure.

# port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
# port -k upgrade icu
--->  Fetching distfiles for icu
--->  Verifying checksum(s) for icu
--->  Extracting icu
--->  Applying patches to icu
--->  Configuring icu
--->  Building icu
--->  Staging icu into destroot
--->  Installing icu @49.1.2_1
--->  Deactivating icu @49.1.2_0
--->  Cleaning icu
--->  Activating icu @49.1.2_1
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

icu/config.log attached: still using /usr/bin/gcc-4.0.

Changed 12 years ago by ned-deily (Ned Deily)

Attachment: config.log added

comment:8 in reply to:  2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeremyhu@…:

Oh, and why are you using gcc-4.0 on Leopard? You should have gcc-4.2 there...

Yes, Leopard has gcc-4.2, but gcc-4.0 has always been the default compiler in MacPorts on Leopard. You and I talked once about maybe changing that, but as of MacPorts 2.1.2 it has not changed.

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

Cc: egall@… added

Cc Me!

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

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