bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mes] mescc arm progress


From: Danny Milosavljevic
Subject: Re: [bug-mes] mescc arm progress
Date: Wed, 10 Apr 2019 15:54:49 +0200

Hi Janneke,

does wip+wip-arm work for you?

I tried compiling using 

# guix-mes is 
$ ~/src/guix-mes/guix/pre-inst-env guix environment -s armhf-linux --pure mes 
--ad-hoc git less nano gdb
[env]$ ./configure --with-courage
[env]$ make V=1

And I eventually get

../pre-inst-env mescc -m 32 -c -D HAVE_CONFIG_H=1 -I include -I ../include -I 
../include/linux/arm -static -std=gnu99 -g -nostdinc -nostdlib -fno-builtin 
-marm -o time.o ../lib/linux/time.c
<stdin>:1: unresolved: "SYS_time"

Furthermore, SYS_time is unsupported with the Linux system call interface we 
are using (but we #define it), therefore I'd like this patch (unpushed so far):

diff --git a/include/linux/arm/syscall.h b/include/linux/arm/syscall.h
index ce3b655c..fe99ab70 100644
--- a/include/linux/arm/syscall.h
+++ b/include/linux/arm/syscall.h
@@ -38,7 +38,6 @@
 
 // libc+tcc
 #define SYS_close  0x06
-#define SYS_time   0x0d
 #define SYS_lseek  0x13
 #define SYS_unlink 0x0a
 #define SYS_rmdir  0x28

But then I get

../pre-inst-env mescc -m 32 -c -D HAVE_CONFIG_H=1 -I include -I ../include -I 
../include/linux/arm -static -std=gnu99 -g -nostdinc -nostdlib -fno-builtin 
-marm -o time.o ../lib/linux/time.c
<stdin>:1: unresolved: "SYS_gettimeofday"

But SYS_gettimeofday is in include/linux/arm/syscall.h and has a value.  What's 
up with it?

Attachment: pgp5xh4s2Tj72.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]