base-foc: contrib compile errors

Martin Stein martin.stein at ...1...
Mon Nov 12 11:39:42 CET 2012


I have an obscure little error that kept me from running Genode
with base-foc. I have a freshly cloned Genode repo on the master branch
with a freshly 'make prepare'd base-foc/contrib. The build dir is also
freshly created and not modified (no 'MAKE+=j' or something).
I'm using Linux 3.0.0-23 x86_64 and GCC 4.7.2 and i already built
with FOC on GCC 4.6.x some time ago. The error:

[ "222" -lt "218" ] && \
-DCONSTANT(x)=x"; \
	  cpp -nostdinc -include
	      -Wno-trigraphs -Ui386 -P $CPP_ARGS
cc1: error: missing argument to "-P"

led me to 'base-foc/contrib/l4/pkg/ldscripts/Makefile' where

 %.ld: $(PKGDIR)/ARCH-$(ARCH)/%.ld $(SRC_DIR)/Makefile $(SRC_DIR)/generic.h
 	$(VERBOSE)[ "$(LDVERSION)" -lt "218" ] && \
	cpp -nostdinc -include $(SRC_DIR)/generic.h \
	-Wno-trigraphs -Ui386 -P $$CPP_ARGS $< $@

checks the LD version that is 222 and not 218 in my scenario, thus
CPP_ARGS is empty. But even with a not empty CPP_ARGS i get the error.
Thus i removed anything before the cpp-call and inserted the CPP_ARGS
directly, one times with the 222-version and another with the 218 version.

Now the build was going on until this came up:

ignoring invalid character `#' in expression
syntax error

that was caused by comments that were preceeded by '#' instead of '/*',
thus i removed all of these faulty comments and now the demo builds and
runs fine.

I'm a little confused with this, has anybody a hint for me?

More information about the users mailing list