Opened 12 years ago

Closed 12 years ago

#34508 closed defect (fixed)

avr-gcc: configure: error: cannot compute suffix of object files: cannot compile

Reported by: seanmeir@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.1.0
Keywords: Cc: titus@…, joseph.gaeddert@…
Port: avr-gcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I tried to

sudo port install avr-gcc

on,

Darwin qi 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

and I keep getting the error,

configure: error: cannot compute suffix of object files: cannot compile

main.log attached.

Attachments (2)

main.log (1.1 MB) - added by seanmeir@… 12 years ago.
main.log (fail log)
config.log (13.9 KB) - added by seanmeir@… 12 years ago.

Download all attachments as: .zip

Change History (21)

Changed 12 years ago by seanmeir@…

Attachment: main.log added

main.log (fail log)

comment:1 Changed 12 years ago by seanmeir@…

I just updated to 2.1.1 and the same error occurred.

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

Description: modified (diff)
Keywords: fail suffix compile removed
Owner: changed from macports-tickets@… to g5pw@…
Priority: LowNormal

comment:3 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Status: newassigned

Changed 12 years ago by seanmeir@…

Attachment: config.log added

comment:4 in reply to:  description Changed 12 years ago by seanmeir@…

Line 111 of config.log:

conftest.c:16:1: internal compiler error: in execute_ipa_pass_list, at passes.c:2449

comment:5 Changed 12 years ago by titus@…

On my 10.7 system avr-gcc can be built (and as far as I tested it, it generates code that is identical to what a Linux cross compiler emits).

$ xcodebuild -version
Xcode 4.3
Build version 4E109

$ llvm-gcc -v
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

comment:6 Changed 12 years ago by titus@…

Cc: titus@… added

Cc Me!

comment:7 Changed 12 years ago by seanmeir@…

$xcodebuild -version
Xcode 4.3.2
Build version 4E2002

$llvm-gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

comment:8 in reply to:  7 Changed 12 years ago by seanmeir@…

On my other 10.7 systems, avr-gcc builds fine, but on this machine I get the error.

comment:9 Changed 12 years ago by titus@…

I don't know anything about Apple's LLVM versioning but I find it strange that I have the older Xcode and a seemingly newer LLVM gcc backend.

Did you download the current command line tools via Xcode?

At least this web page http://wiki.osdev.org/Talk:GCC_Cross-Compiler#On_Mac_OS_X_Lion claims that an apparently similar error is caused by the LLVM code generator.

comment:10 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Well, I'm completely lost on that one, it looks like a bug in LLVM! On the other hand, I have the same version of llvm-gcc, and I can build it successfully... :/

comment:11 in reply to:  9 ; Changed 12 years ago by seanmeir@…

Replying to titus@…:

Did you download the current command line tools via Xcode?

My command line tools came from Xcode. I didn't manually install them, or get them from somewhere else (I think).

comment:12 in reply to:  11 Changed 12 years ago by titus@…

Replying to seanmeir@…:

Replying to titus@…:

Did you download the current command line tools via Xcode?

My command line tools came from Xcode. I didn't manually install them, or get them from somewhere else (I think).

Starting with the appbundled Xcode (>=4.3) you have to manually / explicitely install them.

The dialog is in Preferences - Downloads - Components. There you would have an "Install" (or "Update", IIRC) button next to "Command Line Tools."

BTW, on another machine I have Xcode 4.3.2 and gcc LLVM version 2336.9.00.

There, in the download dialog it does not show a button for the "Command Line Tools" but says "Installed".

So I'd guess that you have installed the newer Xcode but did not update the CLTs.

I will check if I can build avr-gcc on that machine.

comment:13 Changed 12 years ago by titus@…

On my aforementioned second machine avr-gcc builds ok.

I did a port selfupdate / upgrade outdated before I tried. All newer ports necessary for gcc (mpfr, and the like) were downloaded as binary packages.

comment:14 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Hello... What's the status here? Did it eventually build?

comment:15 Changed 12 years ago by joseph.gaeddert@…

Cc: joseph.gaeddert@… added

Cc Me!

comment:16 Changed 12 years ago by joseph.gaeddert@…

Having the same issues as above running Lion 10.7.4 on MacBook Air. Installed fine on an old iMac (2006) running exact same OS. On the MBA I get the familiar configure error:

configure: error: cannot compute suffix of object files: cannot compile

I've run all the appropriate port updates, cleaned the avr-gcc build and tried again. Not sure what details will help, though.

$ xcodebuild -version
Xcode 4.1
Build version 4B110

$ llvm-gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

comment:17 Changed 12 years ago by titus@…

Up to now, it still looks like an issue depending on the "LLVM build" version. It seems that 2336 is OK, and 2335 is broken.

Or did I miss something?

BTW, does it now build OK on the build bot?

comment:18 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Yes, it looks like an issue with the host compiler... Please update to the latest Xcode Command Line tools and retry! It does indeed build OK on the bot, or, at least, I haven't received any error reports by the buildbot...

comment:19 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: assignedclosed

It's been two months, I assume this ticket is closed. If the problem still presents itself, feel free to reopen it!

Note: See TracTickets for help on using tickets.