[MacPorts] #31289: not able to build apple-gcc42
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------+------------------------------------------- Hello, I am not able to upgrade or install the port "apple-gcc42" on my laptop. The build fails with an error. I attached the main.log file to this ticket. The issue might occure because I do use a very recent version of xcode since I do Apple iOS development on my MacBook-Pro(Intel based). I use xcode version 4.2. In xcode 4.2 the compiler-construct did change to llvm-gcc42. I recognized this issue, when I tried to do a "port upgrade outdated" on the machine. All package-upgrades with a dependency on "apple-gcc42" failed. Thanks, e. -- Ticket URL: <https://trac.macports.org/ticket/31289> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------+------------------------------------------- Comment(by enaud@…): Systemversion: Mac OS X 10.6.8 (10K549) Kernel-Version: Darwin 10.8.0 Modellname: MacBook Pro Modell-Identifizierung: MacBookPro7,1 Prozessortyp: Intel Core 2 Duo Prozessorgeschwindigkeit: 2,4 GHz Anzahl der Prozessoren: 1 Gesamtzahl der Kerne: 2 L2-Cache: 3 MB Speicher: 8 GB Busgeschwindigkeit: 1,07 GHz Boot-ROM-Version: MBP71.0039.B0B -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: apple-gcc42 --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: jeremyhu@… (added) * port: => apple-gcc42 Comment: In the future, please fill in the Port field and Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: apple-gcc42 --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: jeremyhu@… (removed) * owner: macports-tickets@… => jeremyhu@… -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: apple-gcc42 --------------------------------+------------------------------------------- Comment(by jeremyhu@…): {{{ 182 :info:build ./gstdint.h:56: error: conflicting types for 'uintptr_t' 183 :info:build /usr/include/i386/types.h:109: error: previous declaration of 'uintptr_t' was here 184 :info:build ./gstdint.h:57: error: conflicting types for 'intptr_t' 185 :info:build /usr/include/i386/types.h:105: error: previous declaration of 'intptr_t' was here }}} /usr/include/i386/types.h should have: {{{ #ifndef _INTPTR_T #define _INTPTR_T typedef long intptr_t; #endif /* _INTPTR_T */ #ifndef _UINTPTR_T #define _UINTPTR_T typedef unsigned long uintptr_t; #endif /* _UINTPTR_T */ }}} The configure script which makes gstdint.h shows this test for adding intptr_t: {{{ if test "$ac_cv_type_uintptr_t" != yes; then sed 's/^ *//' >> tmp-stdint.h <<EOF /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ typedef u$acx_cv_type_intptr_t uintptr_t; typedef $acx_cv_type_intptr_t intptr_t; EOF fi }}} so the problem is that ac_cv_type_uintptr_t is set to no for some reason on your system. Can you include the config.log? To find it, go to the work dir and run: {{{ find . -name config.log | xargs ls -altr }}} The one you want will be the last one listed (most recent time stamp). -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: apple-gcc42 --------------------------------+------------------------------------------- Comment(by jeremyhu@…): Also, XCode 4.2 is not released. Please tell me which pre-release version you have by running: {{{ xcodebuild -version }}} -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 --------------------------------+------------------------------------------- Reporter: enaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: apple-gcc42 --------------------------------+------------------------------------------- Comment(by enaud@…): Xcode 4.2 Build version 4C5163c attached you'll find a tar file with all the config.log-files in the appropriate apple-gcc42 directory. Thx, e. -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31289: not able to build apple-gcc42 ---------------------------------+------------------------------------------ Reporter: enaud@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: worksforme | Keywords: Port: apple-gcc42 | ---------------------------------+------------------------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => worksforme Comment: Looks like something is wrong with libdecnumber: {{{ $ grep -R ac_cv_type_uintptr_t . ./build-x86_64-apple- darwin10/libiberty/config.log:ac_cv_type_uintptr_t=yes ./libdecnumber/config.log:ac_cv_type_uintptr_t=no ./libiberty/config.log:ac_cv_type_uintptr_t=yes ./prev-libdecnumber/config.log:ac_cv_type_uintptr_t=yes ./prev-libiberty/config.log:ac_cv_type_uintptr_t=yes }}} In that config log, I see this: {{{ In file included from conftest.c:22: /usr/include/inttypes.h:255:20: error: stdint.h: No such file or directory }}} Are you missing /usr/include/stdint.h? Also, in that config.log, it has the value of ac_cv_type_uintptr_t set to "no" before hand (as a cached value) In addition, your version of XCode is an old pre-release. Please use the latest beta. It works for me. Please reopen if it still reproduces with the newest version of XCode and you can answer the above questions. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/31289#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts