Opened 12 years ago

Closed 12 years ago

#32411 closed defect (invalid)

glib2 compilation fails when /usr/local/include is unreadable

Reported by: pkubaj@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: glib2

Description (last modified by mf2k (Frank Schima))

I have installed glib2 before, this is only an upgrade. The message is:

checking for gcc... /Developer/usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2':
configure: error: C compiler cannot create executables

As you can see, Xcode is installed (version 4.2), and /Developers/usr/bin/llvm-gcc-4.2 exists.

Attachments (2)

main.log (18.2 KB) - added by pkubaj@… 12 years ago.
config.log (15.0 KB) - added by pkubaj@… 12 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: glib2 lion removed

In the future, please use WikiFormatting.

Are you able to install anything?

comment:2 in reply to:  1 Changed 12 years ago by pkubaj@…

Replying to macsforever2000@…:

In the future, please use WikiFormatting.

Are you able to install anything?

Nope, it wants to upgrade glib2 first.

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

Owner: changed from macports-tickets@… to ryandesign@…

Please remember to Cc the maintainer of the affected port.

Please attach the config.log. It's in the directory identified by the command:

port work glib2

Changed 12 years ago by pkubaj@…

Attachment: main.log added

comment:4 Changed 12 years ago by pkubaj@…

Cc: pkubaj@… added

Cc Me!

comment:5 Changed 12 years ago by pkubaj@…

Cc: pkubaj@… removed

Cc Me!

comment:6 Changed 12 years ago by pkubaj@…

Attached. And please, delete these CCs, it was by accident...

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

That is the main.log. Could you attach the config.log please?

Changed 12 years ago by pkubaj@…

Attachment: config.log added

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

In the config.log I see:

cc1: error: /usr/local/include: Permission denied

So the problem seems to be that the directory /usr/local/include exists, and you do not have permission to look into it. We don't support having things installed in /usr/local while using MacPorts because it can cause conflicts and failed builds, so I recommend you remove /usr/local, clean glib2, and try again.

comment:9 Changed 12 years ago by pkubaj@…

Thanks, I saw it earlier, but didn't want to do anything about it, since it's related to Chameleon (I use Hackintosh).

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

Well the fatal error is coming from the fact that the directory is unreadable (by the macports user), so you could get past that error by making that directory readable to that user. But like I said files in /usr/local often interfere. What files are there?

comment:11 Changed 12 years ago by pkubaj@…

fdisk440 (I don't know how it got there, I didn't install it for sure) and bdmesg (which is related to Chameleon, at first I thought it was configuration file, but now it seems to be only a log, like dmesg, so probably no harm done here).

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

Let us know what happens when you either move /usr/local out of the way, or change the permissions of /usr/local/include so that the macports user can read it, and then try building glib2 again.

comment:13 Changed 12 years ago by pkubaj@…

I've already removed it.

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

And glib2 builds now?

comment:15 Changed 12 years ago by pkubaj@…

Yes.

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

Resolution: invalid
Status: newclosed
Summary: glib2 compilation failsglib2 compilation fails when /usr/local/include is unreadable
Note: See TracTickets for help on using tickets.