On 25/08/14 16:28, Peter Holm wrote:
>>> The problem is here:
>>> includes ===> rpc
>>> #    create  rpc/rpcb_prot.h
>>> RPCGEN_CPP=/var/tmp/rumprun-posix/rumptools/bin/x86_64--netbsd-clang-cpp
>>> /var/tmp/rumprun-posix/rumptools/bin/nbrpcgen -B -h
>>> /var/tmp/rumprun-posix/rumpsrc/include/rpc/rpcb_prot.x -o rpcb_prot.h
>>> nbrpcgen: $RPCGEN_CPP:
>>> /var/tmp/rumprun-posix/rumptools/bin/x86_64--netbsd-clang-cpp: No such
>>> file or directory
>>>
>>> IIRC Justin did something to fix that.  I just don't remember what ;)
>>>
>>> Justin?
>>
>> Add -x c to the cpp command line from memory (on a rainy walk).
>>
>> You will need to use gcc later on as it creates a gcc spec file.
>>
>
> Yes, thank you! Making progress:
>
> cc1: warnings being treated as errors
> /var/tmp/rumprun-posix/rumpsrc/sys/rump/net/lib/libnet/../../../../netinet/udp_usrreq.c:
>  In function 'udp_input':
> /var/tmp/rumprun-posix/rumpsrc/sys/rump/net/lib/libnet/../../../../netinet/udp_usrreq.c:340:
>  warning: second parameter of 'va_start' not last named argument
>
> http://people.freebsd.org/~pho/rumprun-posix-2.txt
>
> Out of curiosity I removed the -Werror and proceeded to:
> gcc -x c -O2 -g -Wall -I/var/tmp/rumprun-posix/rumpdyn/include -c emul.c -o 
> emul.o
> emul.c:59: error: wrong number of arguments specified for 'constructor' 
> attribute
>
> void nullenv_init (void) __attribute__((constructor (102)));

Well, I'm not sure about progress, considering that the second log is 
only half the size of the first one ;)

I would guess that the problem is that rpcgen tries to run cpp as 
...netbsd-clang-cpp, whereas it is created by buildrump.sh only as 
...netbsd${TOOLABI}-cpp.  I fixed buildrump.sh to create ...clang-cpp 
when CC == clang.  Pull rumprun-posix again and retry.

However, what Justin said about rumprun-posix requiring gcc might apply 
for now (I didn't test).

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to