cedet-devel

When I have one module project there is no problem.
I did create sub projects under the root folder and when try to compile
the master project I get the message:
Wrong number of arguments: # <-- here starts a sequence of strange symbols
...
Insert bin_PROGRAMS variables needed by target THIS.
We aren't acutally inserting SOURCE details, but this is used by the
Makefile.am generator, so use it to add this important bin program."], 2
Wrong number of arguments:
...
What could be the problem?
// Simeon

Simeon Mitev <simeon.mitev@...> writes:
> When I have one module project there is no problem.
> I did create sub projects under the root folder and when try to compile
> the master project I get the message:
>
> Wrong number of arguments: # <-- here starts a sequence of strange symbols
Which kind of target type were you using? I'm guessing 'archive'? In any
case, it would help if you'd post the Project.ede file in the directory
where you're getting this error. Also, use
M-x toggle-debug-on-error
before building to get a full backtrace, and post it here.
Using the 'archive' target, I was able to reproduce a similar error
message, so I'm guessing there's a bug there. I'll take a look at it
when I have time.
It seems you already figured out the other question, regarding tracking
submodules with EDE: Basically, you simply create subdirectories
containing those modules and create new projects there. They will be
automatically added when building the project in the root folder. The
details however depend on which type of targets you're using in the
subprojects. I have not yet used EDE for bigger C++ projects, so I'm not
really familiar with it, either.
Regards,
David

Hi David,
Thanks for creating this patch based on gcc.
If we get verification that it does work, you should check it in.
It made me realize that in cedet/tests/cit-cpp.el there are no tests for
this (obviously) nor the shared libraries, which seems like a serious
deficiency I need to add to my todo list.
Thanks
Eric
On Tue, 2009-09-08 at 15:06 +0200, David Engster wrote:
> David Engster <deng@...> writes:
> > Simeon Mitev <simeon.mitev@...> writes:
> >> When I have one module project there is no problem.
> >> I did create sub projects under the root folder and when try to compile
> >> the master project I get the message:
> >>
> >> Wrong number of arguments: # <-- here starts a sequence of strange symbols
>
> [...]
>
> > Using the 'archive' target, I was able to reproduce a similar error
> > message, so I'm guessing there's a bug there. I'll take a look at it
> > when I have time.
>
> It was a bug in ede-proj-archive.el, but I also noticed that the
> 'archive' target wasn't implemented yet anyway.
>
> I created a basic implementation, but I won't commit it to CVS yet,
> since I'm not sure it does the right thing. If you'd like to try it, I
> attached the patch to this mail.
>
> Regards,
> David
>

Eric M. Ludlam <eric@...> writes:
> Thanks for creating this patch based on gcc.
>
> If we get verification that it does work, you should check it in.
I've tested this a little bit more and had to change some stuff. First
off, I didn't realize that I was cloning a compiler object for a linker
object... I replaced this with a new one. I also added a new override
for `ede-proj-makefile-garbage-patterns' to add the archive name to the
'clean' rule.
I think it is working correctly, so I committed it; see also the
Makefile output I attached to this mail.
Regards,
David
------
Sample Makefile for target named 'mylibrary' and two object functions:
# Automatically Generated Makefile by EDE.
# For use with: make
#
# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
# EDE is the Emacs Development Environment.
# http://cedet.sourceforge.net/ede.shtml
#
top=
ede_FILES=Project.ede Makefile
libmylibrary_a_LIBRARIES=libmylibrary.a
mylibrary_SOURCES=fn_bye.c fn_hello.c
mylibrary_OBJ= fn_bye.o fn_hello.o
CC=gcc
C_COMPILE=$(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
C_DEPENDENCIES=-Wp,-MD,.deps/$(*F).P
AR=ar
AR_CMD=$(AR) cr
VERSION=1.0
DISTDIR=$(top)theproject-$(VERSION)
top_builddir =
DEP_FILES=.deps/fn_bye.P .deps/fn_hello.P
all: mylibrary
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
-include $(DEP_FILES)
%.o: %.c
@echo '$(C_COMPILE) -c $<'; \
$(C_COMPILE) $(C_DEPENDENCIES) -o $@ -c $<
mylibrary: $(mylibrary_OBJ)
$(AR_CMD) lib$@.a $^
tags:
clean:
rm -f *.mod *.o *.obj .deps/*.P .lo libmylibrary.a
.PHONY: dist
dist:
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp $(mylibrary_SOURCES) $(ede_FILES) $(DISTDIR)
tar -cvzf $(DISTDIR).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)
Makefile: Project.ede
@echo Makefile is out of date! It needs to be regenerated by EDE.
@echo If you have not modified Project.ede, you can use 'touch' to update the Makefile time stamp.
@false
# End of Makefile

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details