Opened 8 years ago

Closed 5 months ago

#38364 closed defect (fixed)

virtualbox: SyntaxError: invalid syntax

Reported by: frederic.leger@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign (Ryan Schmidt), cooljeanius (Eric Gallager)
Port: virtualbox

Description (last modified by mf2k (Frank Schima))

Under MAC 10.8.2, latest macport release, I try to install virtualbox @4.2.6, but error occurs during compilation kmk :

:info:build /opt/local/bin/ranlib: file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/out/darwin.amd64/release/obj/RuntimeR3/RuntimeR3.a(timesupref.o) has no symbols
:info:build kmk_builtin_append '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/out/darwin.amd64/release/obj/RuntimeR3/RuntimeR3.a.dep' 'define RuntimeR3_CMDS_PREV_'
:info:build kmk_builtin_append -c '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/out/darwin.amd64/release/obj/RuntimeR3/RuntimeR3.a.dep' '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/out/darwin.amd64/release/obj/RuntimeR3/RuntimeR3.a'
:info:build kmk_builtin_append '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/out/darwin.amd64/release/obj/RuntimeR3/RuntimeR3.a.dep' 'endef'
:info:build kmk: *** Exiting with status 2
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6" && . env.sh && kmk all KBUILD_VERBOSE=full 
:info:build Exit code: 2
:error:build org.macports.build for port virtualbox returned: command execution failed
:debug:build Error code: CHILDSTATUS 35263 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for virtualbox: org.macports.activate org.macports.build org.macports.destroot org.macports.install

Attachments (3)

main.log (376.9 KB) - added by frederic.leger@… 8 years ago.
main.2.log (6.4 MB) - added by frederic.leger@… 8 years ago.
port install virtualbox
main.3.log (6.4 MB) - added by frederic.leger@… 8 years ago.

Change History (16)

Changed 8 years ago by frederic.leger@…

Attachment: main.log added

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

Description: modified (diff)
Keywords: virtualbox removed
Port: virtualbox added

comment:2 Changed 8 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting and fill in the Port field.

comment:3 in reply to:  2 Changed 8 years ago by frederic.leger@…

Replying to macsforever2000@…:

In the future, please use WikiFormatting and fill in the Port field.

Ok, Thanks. It's my first request with Trac.

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

The actual relevant first error seems to be:

:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.6/src/VBox/HostServices/SharedOpenGL/crserverlib/server_retval.py", line 49
:info:build     """
:info:build       ^
:info:build SyntaxError: invalid syntax

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

Cc: ryandesign@… added
Summary: virtualbox compilation error under Mac OSX Lionvirtualbox: SyntaxError: invalid syntax

What version of Xcode do you have?

And what output do you get for xcodebuild -version and clang -v?

Do you still get this problem with virtualbox @4.2.8?

Changed 8 years ago by frederic.leger@…

Attachment: main.2.log added

port install virtualbox

comment:6 Changed 8 years ago by frederic.leger@…

Hello,

What version of Xcode do you have? And what output do you get for xcodebuild -version and clang -v?

Xcode 4.6.1, Build version 4H512
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix

Do you still get this problem with virtualbox @4.2.8?

virtualbox-4.2.8-OSX.dmg works fine.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:7 in reply to:  6 Changed 8 years ago by ryandesign (Ryan Schmidt)

Replying to frederic.leger@…:

What version of Xcode do you have? And what output do you get for xcodebuild -version and clang -v?

Xcode 4.6.1, Build version 4H512
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix

That version of clang came with an older version of Xcode. Please update it by opening Xcode and going to the Preferences window, to the Downloads section, and clicking the appropriate button.

Do you still get this problem with virtualbox @4.2.8?

virtualbox-4.2.8-OSX.dmg works fine.

I was talking about building virtualbox 4.2.8 with MacPorts, which I can see from your new attachment still didn't build right. After updating the Xcode command line tools as above, please clean virtualbox and try again.

comment:8 Changed 8 years ago by frederic.leger@…

After Xcode update:

Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
sudo port clean virtualbox*
--->  Cleaning virtualbox
--->  Cleaning virtualbox-extension-pack
--->  Cleaning virtualbox-guest-additions
sudo port selfupdate
sudo port install virtualbox
...
--->  Building virtualbox
Error: org.macports.build for port virtualbox returned: command execution failed

I join the main.log

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

Changed 8 years ago by frederic.leger@…

Attachment: main.3.log added

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

Ok, same error. It's complaining about a Python file. What version of Python do you have? What's the output of:

python --version

If it's not 2.7.x, try installing the python27 port and running:

sudo port select python python27

Then clean virtualbox and try again.

comment:10 Changed 8 years ago by frederic.leger@…

With python27 compilation is a success.

I suggest that the package maintainer adds a dependency with this python version.

Thanks Ryan.

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

It's not just a matter of adding a dependency. It's also that virtualbox is running "python", which means it's affected by whatever version of python you may have selected or installed. virtualbox needs to be patched to run "python2.7" instead.

comment:12 Changed 6 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:13 Changed 5 months ago by chrstphrchvz (Christopher Chavez)

Resolution: fixed
Status: newclosed

In 80709efdc0b4154e6c0b26d01a28d9bae04850a9/macports-ports (master):

virtualbox: delete port

Port has not been successfully updated in 7 years, has reported build
problems, has broken dependencies (vde2), and is unbuildable on recent
macOS versions (requires apple-gcc42).

Closes: #35808
Closes: #36927
Closes: #38364
Closes: #38558
Closes: #50622
Closes: #51999

Note: See TracTickets for help on using tickets.