On Tue, Aug 26, 2014 at 11:43:35AM +0000, Antti Kantee wrote:
> On 26/08/14 11:33, Peter Holm wrote:
> > On Mon, Aug 25, 2014 at 04:59:35PM +0000, Antti Kantee wrote:
> >> On 25/08/14 16:46, Antti Kantee wrote:
> >>> However, what Justin said about rumprun-posix requiring gcc might apply
> >>> for now (I didn't test).
> >>
> >> I tried running buildnb.sh with CC=clang on this Ubuntu host.  Results
> >> are below.  Patches are of course very welcome, though the easiest
> >> "solution" is using gcc from ports, like Justin suggested.
> >>
> >
> > OK, did that:
> >
> > export CFLAGS="-x c"
> 
> I don't think you should need to specify that manually, it's already set 
> in the cpp wrapper that buildrump.sh generates.
> 
> > export NOGCCERROR=1     # XXX
> 
> The script should correctly handle this if necessary.  Does the build 
> bomb out in another place if you don't set this?
> 

No, do not need that.

> > export CC=/usr/local/bin/gcc46
> > export AR=/usr/bin/ar
> > export NM=/usr/bin/nm
> > export OBJCOPY=/usr/bin/objcopy
> >
> > ./buildnb.sh buildrump
> >
> > --- GCDAProfiling.d ---
> > /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd11.0/4.6.4/include-fixed/sys/types.h:54:24:
> >  fatal error: sys/_types.h: No such file or directory
> > compilation terminated.
> > --- InstrProfilingFile.d ---
> > /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd11.0/4.6.4/include-fixed/stdio.h:54:23:
> >  fatal error: sys/_null.h: No such file or directory
> > compilation terminated.
> >
> > http://people.freebsd.org/~pho/rumprun-posix-3.txt
> 
> It should not be including headers from /usr/local/.../include-fixed. 
> I'm not sure why that happens, since I can see from the log that there 
> is a --sysroot on the cc command line.

Removed:
"/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd11.0/4.6.4/include*"

Added "REALCC=gcc46" to cc.in. (is there a better way?)

Stopped at "mktemp: illegal option -- -"

http://people.freebsd.org/~pho/rumprun-posix-4.txt

-- 
Peter

------------------------------------------------------------------------------
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