Opened 13 years ago
Closed 13 years ago
#31289 closed defect (worksforme)
not able to build apple-gcc42
Reported by: | enaud@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | ||
Port: | apple-gcc42 |
Description
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.
Attachments (2)
Change History (9)
Changed 13 years ago by enaud@…
comment:1 Changed 13 years ago 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
comment:2 Changed 13 years ago by mf2k (Frank Schima)
Cc: | jeremyhu@… added |
---|---|
Port: | apple-gcc42 added |
In the future, please fill in the Port field and Cc the port maintainer(s).
comment:3 Changed 13 years ago by mf2k (Frank Schima)
Cc: | jeremyhu@… removed |
---|---|
Owner: | changed from macports-tickets@… to jeremyhu@… |
comment:4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
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).
comment:5 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Also, XCode 4.2 is not released. Please tell me which pre-release version you have by running:
xcodebuild -version
comment:6 Changed 13 years ago 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.
comment:7 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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.
Port Build-Log File for apple-gcc4.2