Opened 9 years ago

Closed 9 years ago

#32772 closed defect (duplicate)

libffi doesn't configure correctly with Xcode 4.3

Reported by: h_atac@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: libffi

Description

Ok, actually libffi works, but outside the port.. Let me explain:

when I try to compile it via port.. It says compiler cannot make executable when executing configure..

So, I tried doing configure and make steps myself and it succeeded.. I don't know why port gives error.. I'm attaching main.log file here

Attachments (4)

main.log (4.4 KB) - added by h_atac@… 9 years ago.
main.log file
config.log (14.5 KB) - added by h_atac@… 9 years ago.
config.log file
main.2.log (3.5 KB) - added by h_atac@… 9 years ago.
main.log file ( after moving clang)
config.2.log (5.8 KB) - added by h_atac@… 9 years ago.
config.log file ( after moving clang)

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by h_atac@…

Attachment: main.log added

main.log file

Changed 9 years ago by h_atac@…

Attachment: config.log added

config.log file

comment:1 Changed 9 years ago by h_atac@…

Ok, I think I know the problem but I don't know how to fix it..

The c compiler clang doesn't exist in Xcode 4.3's /Applications/Xcode.app/Contents/Developer/usr/bin directory. I copied it to this directory from older Xcode's directory ( /Developer/usr/bin ) but this time I got another error.. and I think it will continue like this..

Is there any way to correctly configure port to work with Xcode 4.3, or is there any way to redirect it to use Xcode 4.2's tools?

I'm an iOS developer and I need to have Xcode 4.3 installed on my machine to test my programs.

Changed 9 years ago by h_atac@…

Attachment: main.2.log added

main.log file ( after moving clang)

Changed 9 years ago by h_atac@…

Attachment: config.2.log added

config.log file ( after moving clang)

comment:2 Changed 9 years ago by h_atac@…

cleaned libffi, and tried to install again...

This time, completed configuration successfully.. But gave an error on make on stdarg.h

After inspecting, I found there is no clang directory under lib in Xcode 4.3's directory, so I copied it from Xcode 4.2.. And now it completed compilation.. You could close this ticket and share this information to other users who could have similar problems.

comment:3 Changed 9 years ago by ryandesign (Ryan Schmidt)

Keywords: libffi removed

We cannot support pre-release versions of Xcode.

If you build MacPorts from trunk, you should have better support for Xcode 4.3; jberry just committed some fixes a day or two ago to help MacPorts find where Xcode 4.3 puts its clang.

comment:4 Changed 9 years ago by phriedrich (phriedrich)

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/

instead of

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer

did the trick for me, for another package.

But this is more a temporary fix, as this should be already fixed in MacPorts SVN trunk, as I read.

comment:5 Changed 9 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Summary: libffi doesn't configure correctly..libffi doesn't configure correctly with Xcode 4.3
Note: See TracTickets for help on using tickets.