[PATCH] building lnt tools to test cross-compiling

Robert Lytton robert at xmos.com
Thu Feb 13 08:12:25 PST 2014


Hi Rafael,

I may be able to patch in a dummy interface so that it builds - but being able to run is another matter!
The errors include:
  error: unknown type name 'rlim_t'
  warning: implicit declaration of function 'kill'
  error: use of undeclared identifier 'SIGKILL'
  error: use of undeclared identifier 'SIGALRM'
  error: use of undeclared identifier 'RLIMIT_NPROC'
  warning: implicit declaration of function 'getrusage'
  warning: implicit declaration of function 'getrlimit'
  warning: implicit declaration of function 'setrlimit'
  error: use of undeclared identifier 'RLIMIT_CPU'
  error: use of undeclared identifier 'RLIMIT_STACK'
  error: use of undeclared identifier 'RLIMIT_DATA'
  error: use of undeclared identifier 'RLIMIT_FSIZE'
  error: use of undeclared identifier 'RLIMIT_CORE'
  error: use of undeclared identifier 'RLIMIT_NOFILE'
  ...

thank you
robert

________________________________________
From: Rafael EspĂ­ndola [rafael.espindola at gmail.com]
Sent: 13 February 2014 15:37
To: reviews+D2766+public+c6c9a3e3d5b2c47d at llvm-reviews.chandlerc.com
Cc: Robert Lytton; llvm-commits
Subject: Re: [PATCH] building lnt tools to test cross-compiling

On 13 February 2014 10:36, robert lytton <robert at xmos.com> wrote:
> Hi rafael,
>
> Hi
>
> At present LNT builds the tools 'timeit' & 'timeit-target'.
> However, it seems only one will be used, depending if USER_MODE_EMULATION as be defined or not viz:
>
> Makefile.rules
>   TIMEIT        = $(PROJ_OBJ_ROOT)/tools/timeit
>   TIMEIT_TARGET = $(PROJ_OBJ_ROOT)/tools/timeit-target
>
> Makefile.programs
>   ifdef USER_MODE_EMULATION
>   RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT)"
>   else
>   RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT_TARGET)"
>   endif
>
> The patch is needed as the unused 'timeit-target' won't build when passed the $(TARGET_FLAGS) for xcore, causing an error.

What is the error? Maybe we could fix it?

> Thank you
> Robert
>
>
> http://llvm-reviews.chandlerc.com/D2766
>
> Files:
>   tools/Makefile
>
> Index: tools/Makefile
> ===================================================================
> --- tools/Makefile
> +++ tools/Makefile
> @@ -1,7 +1,11 @@
>  LEVEL=..
>  include $(LEVEL)/Makefile.programs
>
> -all:: timeit timeit-target fpcmp TargetConfig.mk
> +ifdef USER_MODE_EMULATION
> +all:: timeit fpcmp TargetConfig.mk
> +else
> +all:: timeit-target fpcmp TargetConfig.mk
> +endif
>
>  timeit: timeit.c
>         $(ORIGINAL_CC) $(CFLAGS) -O3 -o $@ $<




More information about the llvm-commits mailing list