Opened 12 years ago
Closed 12 years ago
#38521 closed defect (invalid)
valgrind @3.8.1: Xcode license agreement; mig command not found
Reported by: | diana@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | valgrind |
Description
Attempted to install valgrind using "sudo port install valgrind". Failed during build. Mac OS X 10.8.3, Xcode 4.6.1. Log file attached.
Attachments (1)
Change History (11)
Changed 12 years ago by diana@…
comment:1 Changed 12 years ago by cooljeanius (Eric Gallager)
Key part of log:
:info:build Making all in coregrind :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.8.1/coregrind' :info:build (cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs) :info:build (cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs) :info:build (cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs) :info:build (cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs) :info:build /usr/bin/clang -g -Wall -o fixup_macho_loadcmds fixup_macho_loadcmds.c :info:build :info:build You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. :info:build :info:build You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. :info:build :info:build You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. :info:build :info:build You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements. :info:build /usr/bin/mig: line 162: : command not found :info:build /usr/bin/mig: line 162: : command not found :info:build /usr/bin/mig: line 162: : command not found :info:build /usr/bin/mig: line 162: : command not found :info:build mig: fatal: "<no name yet>", line -1: mig: fatal: "<no name yet>", line -1: no SubSystem declaration :info:build mig: fatal: "<no name yet>", line -1: no SubSystem declarationno SubSystem declaration :info:build :info:build mig: fatal: "<no name yet>", line -1: no SubSystem declaration :info:build make[2]: *** [m_mach/mach_vmUser.c] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: *** [m_mach/vm_mapUser.c] Error 1 :info:build make[2]: *** [m_mach/taskUser.c] Error 1 :info:build make[2]: *** [m_mach/thread_actUser.c] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.8.1/coregrind' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.8.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.8.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.8.1" && /usr/bin/make -j8 -w all
So you should accept the xcodebuild
license agreement.
comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)
Also mig
is available from the bootstrap_cmds
package, so you could also try installing that. If that works for you, we could add it as a dependency.
comment:4 Changed 12 years ago by diana@…
But I had accepted the license agreement. Just to be sure, I tried accepting it again via "sudo xcodebuild -license" and "xcodebuild -license". Installed bootstrap_cmds. Cleaned and installed valgrind again. The installer still doesn't think I've accepted the license agreement and still can't find mig. But mig is in /usr/bin, and now in /opt/local/bin, where it's looking for it. Puzzling.
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to raimue@… |
---|---|
Port: | valgrind added |
Summary: | valgrind @3.8.1 (devel) Error: Processing of port valgrind failed → valgrind @3.8.1: Xcode license agreement; mig command not found |
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
It builds fine for me, also on OS X 10.8.3 with Xcode 4.6.1. My Xcode command line tools are up to date; are yours? Check by opening Xcode.app, going to Preferences, then Downloads.
comment:7 Changed 12 years ago by diana@…
Yes, the command line tools are there, and I did a "check and install now". I just installed them on Friday.
comment:8 Changed 12 years ago by raimue (Rainer Müller)
First of all, the problem with mig is different. The error message "/usr/bin/mig: line 162: : command not found
" indicates that in the script /usr/bin/mig at line 162 the shell script interpreter cannot find a command. This command appears to be the empty string, but is meant to be a compiler, possible determined using xcrun
. So this one is probably caused by the license problem as well.
Check the Xcode preferences files in your home and global whether you actually accepted the license, like this:
$ defaults read ~/Library/Preferences/com.apple.dt.Xcode.plist |grep License IDELastGMLicenseAgreedTo = EA0720; IDEXcodeVersionForAgreedToGMLicense = "4.6.1"; $ defaults read /Library/Preferences/com.apple.dt.Xcode.plist |grep License IDELastGMLicenseAgreedTo = EA0720; IDEXcodeVersionForAgreedToGMLicense = "4.6.1";
comment:9 Changed 12 years ago by diana@…
Ah, it shows I had accepted as me, but not globally. It seems I needed to be connected to work before I actually had sudo. OK, that fixed it. Thank you very much for your help! I learned a lot today.
comment:10 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → invalid |
---|---|
Status: | new → closed |
valgrind log file