Opened 2 years ago
Closed 2 years ago
#65921 closed defect (fixed)
gtk2 +quartz install and configuration failed on mac os x 10.9.5
Reported by: | yannlr37 (Yann) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | quartz | Cc: | |
Port: | gtk2 |
Description
Hello there,
I have an old late 2012 macbook pro with Mavericks installed. I want to keep it as it is. I'd like to install gtk2 on it (for coding purposes) but the install fails. I'm currently stuck on it and I need your help :)
I'm using MacPort 2.7.2 Here is the log provided by the system :
Error: Failed to build glib2: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port gtk2 failed
I can provide the generated log if needed.
Thanks in advance,
Yann
Attachments (4)
Change History (24)
Changed 2 years ago by yannlr37 (Yann)
Attachment: | report.log added |
---|
comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)
Keywords: | quartz added; GTK2 Quartz removed |
---|---|
Owner: | set to mascguy |
Port: | +quartz removed |
Status: | new → assigned |
Type: | request → defect |
comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)
I'm seeing the following failure:
:info:build FAILED: glib/libcharset/libcharset.a :info:build rm -f glib/libcharset/libcharset.a && ar csr glib/libcharset/libcharset.a glib/libcharset/libcharset.a.p/localcharset.c.o :info:build ranlib: object: glib/libcharset/libcharset.a(localcharset.c.o) malformed object (unknown load command 1) :info:build ar: internal ranlib command failed
Can you provide the output from port installed cctools
?
Also, do you have binutils
installed?
comment:3 follow-up: 5 Changed 2 years ago by yannlr37 (Yann)
Hi,
Thanks for helping me !
It seems like binutils
is not installed.
Here is the output for port installed cctools
:
The following ports are currently installed: cctools @949.0.1_2+llvm37 (active)
Is it related to the C compiler version or C compiling tools ?
Changed 2 years ago by yannlr37 (Yann)
Attachment: | binutil_install_failure.log added |
---|
BinUtils install failure Log
comment:4 Changed 2 years ago by yannlr37 (Yann)
For information, here is my setup :
Clang :
clang version 1.0.2 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-32 exported) Target: x86_64-apple-darwin13
XCode :
Version 6.1 (6A1052c)
Clang version seems to be quite old .
comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)
It seems like
binutils
is not installed.
That's good, as you generally don't want that installed anyway.
Here is the output for
port installed cctools
:The following ports are currently installed: cctools @949.0.1_2+llvm37 (active)
That looks correct, for 10.9. So all good there too.
Clang :
clang version 1.0.2 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-32 exported) Target: x86_64-apple-darwin13XCode :
Version 6.1 (6A1052c)
Given that you have Xcode 6.1 installed, I'd expect to see a much later version of Clang. For example, on my 10.9 setup, with Xcode 6.2 installed:
$ clang -v Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix
Can you tell me where your Clang executable is, based on the output from which clang
?
And finally, can you run sudo port diagnose
, and provide the output?
comment:6 Changed 2 years ago by yannlr37 (Yann)
Hello,
I was also surprised to see an old version of clang
. I don't know how to install a newer one.
Here is the ouput for which clang
:
/usr/bin/clang
Here is the output for sudo port diagnose
:
Error: currently installed version of Xcode, none, is not supported by MacPorts. For your currently installed system, only the following versions of Xcode are supported: 6.2 6.1.1 6.1 6.0.1 5.1.1 5.1 5.0.2 5.0.1 Warning: found dylibs in your /usr/local/lib directory. These are known to cause problems. We'd recommend you remove them. Warning: it seems you have Homebrew installed on this system -- Because Homebrew uses /usr/local, this can potentially cause issues with MacPorts. We'd recommend you either uninstall it, or move it from /usr/local for now.
That's strange because I have XCode 6.1 installed .
comment:7 Changed 2 years ago by yannlr37 (Yann)
Update :
I used this command to tell the system which version of xcode to use :
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
The output for sudo port diagnose
changed to :
Warning: found dylibs in your /usr/local/lib directory. These are known to cause problems. We'd recommend you remove them. Warning: it seems you have Homebrew installed on this system -- Because Homebrew uses /usr/local, this can potentially cause issues with MacPorts. We'd recommend you either uninstall it, or move it from /usr/local for now.
I still have clang v 1.0.2 installed. I try to update this version for a newer one. If you have any other idea, it would be much appriciated
comment:8 Changed 2 years ago by yannlr37 (Yann)
After some research, I finally got the right version of Clang.
It was located in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Now clang -v
gave me :
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix
But the problem on installing GTK2 remains.
comment:9 Changed 2 years ago by mascguy (Christopher Nielsen)
Can you provide the main.log
from your latest attempt?
comment:11 follow-up: 12 Changed 2 years ago by yannlr37 (Yann)
Hi Christopher,
I don't know what I have done, but all the tests seems to have broken something. My Mac didn't stop bugging, impossible to make it behave correctily. I had to reinstall all the system.
Maybe this topic will help someone else.
Thank you for your time and your useful help.
comment:12 Changed 2 years ago by mascguy (Christopher Nielsen)
Replying to yannlr37:
I don't know what I have done, but all the tests seems to have broken something. My Mac didn't stop bugging, impossible to make it behave correctly. I had to reinstall all the system.
Were you able to successfully install gtk +quartz
afterward?
comment:13 follow-up: 14 Changed 2 years ago by yannlr37 (Yann)
Unfortunately, no :( But I think this is a clang or build tools issue because it worked some months ago.
comment:14 follow-up: 15 Changed 2 years ago by mascguy (Christopher Nielsen)
Replying to yannlr37:
Unfortunately, no :( But I think this is a clang or build tools issue because it worked some months ago.
Previously, it appeared that you have HomeBrew. Is it installed now?
comment:15 Changed 2 years ago by mascguy (Christopher Nielsen)
Replying to mascguy:
Previously, it appeared that you have HomeBrew. Is it installed now?
I ask, as that can absolutely cause issues. So if it's installed, I'd strongly recommend uninstalling all HomeBrew packages.
comment:16 Changed 2 years ago by mascguy (Christopher Nielsen)
One bit of good news: Originally it was the glib2
install that failed. But on your 2nd attempt, it was gtk2
.
So we are making progress!
comment:17 Changed 2 years ago by mascguy (Christopher Nielsen)
For your subsequent attempt, the following failure occurred:
:info:configure configure: error: in `gtk2/work/gtk+-2.24.33': :info:configure configure: error: C compiler cannot create executables :info:configure See `config.log' for more details
So if that's still occurring, can you attach config.log
?
Changed 2 years ago by yannlr37 (Yann)
Attachment: | Capture d’écran 2022-10-03 à 19.42.57.png added |
---|
Final result
comment:19 Changed 2 years ago by yannlr37 (Yann)
Hi,
Finally I found a way out. A hard solution, but it worked :)
You were right, something went wrong with my build tools. I think this was related to a bad xcode install (wrong version of clang, enable to build glib2, then gtk2)
After a fresh install of Mavericks (I had no choice), I tried to re-install gtk2. Here is the steps a followed :
- re-install MacPort (v 2.7.1)
- re-install Xcode (v 6.1.1)
- install Command Line Tools then GTK2 (with Quartz option) :
xcode-select --install sudo port install xorg-server-legacy sudo port install gtk2 +quartz sudo port install gtk-osx-application-gtk2
- I install a theme switcher to give an old Aqua look
sudo port install gtk-theme-switch
And, yes, it works now.
Again, thank you for you time and your help. I hope this will help someone else because it's quite hard to find useful infos about old OS.
comment:20 Changed 2 years ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Great, glad everything is working!
glib2-main.log