% valac --help Usage: valac [OPTION...] FILE... - Vala Compiler Help Options: -?, --help Show help options Application Options: --girdir=DIRECTORY... Look for .gir files in DIRECTORY --vapidir=DIRECTORY... Look for package bindings in DIRECTORY --pkg=PACKAGE... Include binding for PACKAGE --vapi=FILE Output VAPI file name --library=NAME Library name --gir=NAME-VERSION.gir GObject-Introspection repository file name -b, --basedir=DIRECTORY Base source directory -d, --directory=DIRECTORY Output directory --version Display version number -C, --ccode Output C code -H, --header=FILE Output C header file --use-header Use C header file --includedir=DIRECTORY Directory used to include the C header file -h, --internal-header=FILE Output internal C header file --internal-vapi=FILE Output vapi with internal api --symbols=FILE Output symbols file -c, --compile Compile but do not link -o, --output=FILE Place output in file FILE -g, --debug Produce debug information --thread Enable multithreading support --enable-mem-profiler Enable GLib memory profiler -D, --define=SYMBOL... Define SYMBOL --main=SYMBOL... Use SYMBOL as entry point --disable-assert Disable assertions --enable-checking Enable additional run-time checks --enable-deprecated Enable deprecated features --enable-experimental Enable experimental features --disable-warnings Disable warnings --enable-experimental-non-null Enable experimental enhancements for non-null types --disable-dbus-transformation Disable transformation of D-Bus member names --cc=COMMAND Use COMMAND as C compiler command -X, --Xcc=OPTION... Pass OPTION to the C compiler --dump-tree=FILE Write code tree to FILE --save-temps Keep temporary files --profile=PROFILE Use the given profile instead of the default -q, --quiet Do not print messages to the console -v, --verbose Print additional messages to the console --target-glib=MAJOR.MINOR Target version of glib for code generation profiling:/var/tmp/paludis/dev-lang-vala-0.7.10:Cannot create directory profiling:/var/tmp/paludis/dev-lang-vala-0.7.10/work/vala-0.7.10/compiler/valacompiler.gcda:Skip (,,, over 16K of such messages) profiling:/var/tmp/paludis/dev-lang-vala-0.7.10:Cannot create directory profiling:/var/tmp/paludis/dev-lang-vala-0.7.10/work/vala-0.7.10/ccode/.libs/valaccodeparenthesizedexpression.gcda:Skip Reproducible: Always
(In reply to comment #0) On vala-0.8 same problem.
Are you trying to compile something *with* vala, or are you trying to build vala?
(In reply to comment #2) > Are you trying to compile something *with* vala, or are you trying to build > vala? > Something with vala. Or in the example given just 'vala --help'.
Mine compiles but gives lots of funny profiling lines (only hello world program): valac hello.vala profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/compiler/valacompiler.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodearraymodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodeassignmentmodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodebasemodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodecompiler.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodecontrolflowmodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodedeclarationspace.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodedelegatemodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodegenerator.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodememberaccessmodule.gcda:Cannot open profiling:/var/tmp/portage/dev-lang/vala-0.7.10/work/vala-0.7.10/codegen/.libs/valaccodemethodcallmodule.gcda:Cannot open ..... <cut so comment fits but you get the idea> ... lordvan@Desktop64X3 ~/Programming/vala $ ls hello hello.vala lordvan@Desktop64X3 ~/Programming/vala $ ./hello Hello, World
oh USE="-coverage" does remove this issue .. seems to be only a 'bug' with the profiling / coverage stuff
Confirmed.
also --enable-coverage brokes cross compilation with vala
Is the coverage stuff only meant for the Vala developers? If yes, maybe we should drop it and the USE flag.
The coverage looks like it does coverage for the unit tests on vala itself. It generates a valac build with, among other things, -lgcov, so it's probably a bad thing to have enabled in portage.
Maybe we should implement an out of tree build like what was done for dbus ?
*** Bug 290003 has been marked as a duplicate of this bug. ***
I also had this bug when trying to compile my own vala code. However, it did seem to run just fine (tho it was only a simple hello world).
+ 20 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org> vala-0.8.1.ebuild, + vala-0.9.3.ebuild, -vala-0.9.8.ebuild, -vala-0.10.0.ebuild, + vala-0.10.1.ebuild, -vala-0.11.0.ebuild, -vala-0.11.1.ebuild, + vala-0.11.2.ebuild: + Raise glib dependency for tests for slot :0.10, bug #330527. Drop coverage + handling, it is broken and doesn't bring much for now, bug #310579. Thanks for reporting.