Skip to contentSkip to conversation

Error compiling

DISCUSSION Javier Sedano 4 participants 7 messages Jul 17, 2003 – Jul 22, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,

after a few months forgetting about elks, I'm trying to install it again.
I've got two questions:

1) The latest version available in the web page is 0.1.1, but this
mailing list speaks of other newer versions... aren't hey packtized?

2) Version 0.1.1 gives me the next error:

jsedano@taran:~/elks/elks-0.1.1> make Image
Q> #define UTS_VERSION "#0.1.1?Thu Jul 17 20:14:02 CEST 2003"
make -C kernel kernel.a
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/kernel'

bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o sched.o sched.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o printk.o printk.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o sleepwake.o sleepwake.c bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o dma.o dma.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o version.o version.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o sys.o sys.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o stubs.o stubs.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o fork.o fork.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o exit.o exit.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o time.o time.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o signal.o signal.c

ar rcs kernel.a sched.o printk.o sleepwake.o dma.o version.o sys.o stubs.o fork.o exit.o time.o signal.o make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/kernel'
make -C fs fs.a
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/fs'

bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o super.o super.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o bufops.o bufops.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o devices.o devices.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o fcntl.o fcntl.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o stat.o stat.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o inode.o inode.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o file_table.o file_table.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o buffer.o buffer.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o block_dev.o block_dev.c bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o namei.o namei.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o ioctl.o ioctl.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o filesystems.o filesystems.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o open.o open.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o read_write.o read_write.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o readdir.o readdir.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o exec.o exec.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o select.o select.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o pipe.o pipe.c

ar rcs fs.a super.o bufops.o devices.o fcntl.o stat.o inode.o file_table.o buffer.o block_dev.o namei.o ioctl.o filesystems.o open.o read_write.o readdir.o exec.o select.o pipe.o make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/fs'
make -C lib lib.a
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/lib'
bcc -0 -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o chqueue.o chqueue.c bcc -0 -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o string.o string.c ar rcs lib.a chqueue.o string.o
sync
make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/lib'
make -C net net.a
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/net'

bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o socket.o socket.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o protocols.o protocols.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o ipv4/af_inet.o ipv4/af_inet.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o nano/af_nano.o nano/af_nano.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o unix/af_unix.o unix/af_unix.c

ar rcs net.a socket.o protocols.o ipv4/af_inet.o nano/af_nano.o unix/af_unix.o make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/net' make -C fs/minix minixfs.a
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/fs/minix'

bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o bitmap.o bitmap.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o dir.o dir.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o file.o file.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o namei.o namei.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o symlink.o symlink.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o truncate.o truncate.c
bcc -0  -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o inode.o inode.c

ar rcs minixfs.a bitmap.o dir.o file.o namei.o symlink.o truncate.o inode.o
make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/fs/minix'
bcc -0 -i -O -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -ansi -c -o init/main.o init/main.c make -C arch/i86 Image
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/arch/i86'
make -C tools all
make[2]: Entering directory `/home/jsedano/elks/elks-0.1.1/arch/i86/tools'
gcc -I ../../../include -o build build.c
gcc -I ../../../include -o mkurlader mkurlader.c
make[2]: Leaving directory `/home/jsedano/elks/elks-0.1.1/arch/i86/tools'
gcc -E -traditional -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -o boot/bootsect.s boot/bootsect.S as86 -0 -o boot/bootsect.o boot/bootsect.s
ld86 -0 -s -o boot/bootsect -M boot/bootsect.o > Boot.map
gcc -E -traditional -I/home/jsedano/elks/elks-0.1.1/include -DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" -D__KERNEL__ -o boot/setup.s boot/setup.S boot/setup.S:588: macro names must be identifiers
make[1]: *** [boot/setup.s] Error 1
make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/arch/i86'
make: *** [Image] Error 2
jsedano@taran:~/elks/elks-0.1.1>

Any idea?

Regards,

Signature · 10 lines
Javier Sedano Jarillo: [email protected]
                       (http://www.it.uc3m.es/~jsedano)
Network&Systems Engineer
Agora Systems, S.A.
C/Aravaca 12
E-28040 Madrid (Spain)
Tel.: +34 91 533 58 57
Fax.: +34 91 534 84 77
--------
Si la libertad de expresion significa algo, es el poder decir lo que los demas no quieren oir.
#1 lore raw

Hi Javier.

* Nothing as pretty as a smile, nothing as ugly as a frown.

Quoted 6 lines

After a few months forgetting about elks, I'm trying to install it again. I've got two questions:

1) The latest version available in the web page is 0.1.1, but this mailing list speaks of other newer versions... aren't they packtized?

Not yet, but 0.1.3-pre1 shortly will be. The releases on the ELKS website can easily lag behind those being used since those with the abilities to create releases are also the busiest of the developers. The best way to obtain the current code is using CVS with commands like the following...

export CVS_RSH=which ssh CVSROOT=:pserver:[email protected]:/cvsroot/elks cvs -d $CVSROOT get elks elkscmd elksnet elksutils

...which will download the current code base for all four packages, and will drop it under the current directory.

Quoted 4 lines

2) Version 0.1.1 gives me the next error:

jsedano@taran:~/elks/elks-0.1.1> make Image
Q> #define UTS_VERSION "#0.1.1?Thu Jul 17 20:14:02 CEST 2003"

=====8<===== CUT =====>8=====

Quoted 5 lines

bcc -0 -i -O -I/home/jsedano/elks/elks-0.1.1/include \
-DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" \
-D__KERNEL__ -ansi -c -o init/main.o init/main.c
make -C arch/i86 Image
make[1]: Entering directory `/home/jsedano/elks/elks-0.1.1/arch/i86'

=====8<===== CUT =====>8=====

Quoted 5 lines

gcc -E -traditional -I/home/jsedano/elks/elks-0.1.1/include \
-DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" \
-D__KERNEL__ -o boot/bootsect.s boot/bootsect.S
as86 -0 -o boot/bootsect.o boot/bootsect.s
ld86 -0 -s -o boot/bootsect -M boot/bootsect.o > Boot.map

Quoted 8 lines

gcc -E -traditional -I/home/jsedano/elks/elks-0.1.1/include \
-DELKS_VERSION_CODE=0x00010100 -DUTS_RELEASE=\"0.1.1\" \
-D__KERNEL__ -o boot/setup.s boot/setup.S
boot/setup.S:588: macro names must be identifiers make[1]: *** [boot/setup.s] Error 1
make[1]: Leaving directory `/home/jsedano/elks/elks-0.1.1/arch/i86'
make: *** [Image] Error 2 jsedano@taran:~/elks/elks-0.1.1>

I'm not sure what that bug was, but it doesn't appear to be present in the current CVS version which is 0.1.3-pre1 so has presumably been fixed in the meantime.

Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 14-Jul-2003

#2 lore raw
Quoted 7 lines · Riley Williams

Hi Javier.

I'm not sure what that bug was, but it doesn't appear to be present in the current CVS version which is 0.1.3-pre1 so has presumably been fixed in the meantime.

Bad news: it also happens in the latests cvs snap. Maybe of a wrong dev86 version?

jsedano@taran:~> dpkg -l | grep bcc
ii bcc 0.16.3-2 16-bit C compiler
jsedano@taran:~> dpkg -l | grep elks
ii elks-libc 0.16.3-2 16-bit C library and include files
jsedano@taran:~>

Signature · 10 lines
Javier Sedano Jarillo: [email protected]
                       (http://www.it.uc3m.es/~jsedano)
Network&Systems Engineer
Agora Systems, S.A.
C/Aravaca 12
E-28040 Madrid (Spain)
Tel.: +34 91 533 58 57
Fax.: +34 91 534 84 77
--------
There are 11 classes of people in the worls: the one knowing about binary numbers and the one not knowing it.
#3 lore raw
Quoted 8 lines · Javier Sedano

Bad news: it also happens in the latests cvs snap. Maybe of a wrong dev86 version?

jsedano@taran:~> dpkg -l | grep bcc
ii bcc 0.16.3-2 16-bit C compiler
jsedano@taran:~> dpkg -l | grep elks
ii elks-libc 0.16.3-2 16-bit C library and include files
jsedano@taran:~>

Gad, 0.16.3 has the CPP in (experimental) try 0.16.0 or 0.15.x.

Paul

#4 lore raw

Hi,

Quoted 4 lines · Paul Nasrat

On Fri, Jul 18, 2003 at 02:04:18PM +0200, Javier Sedano wrote:

Gad, 0.16.3 has the CPP in (experimental) try 0.16.0 or 0.15.x.

Nopes. I also did so, and nothing solved.

I think the problem is related to the gcc version used in debian testing.
The default gcc version is 3.3, but 2.95 is also installed. Forcing it to use 2.95 seems to compile (althoug it still does not boot)

Regards,

Signature · 10 lines
Javier Sedano Jarillo: [email protected]
                       (http://www.it.uc3m.es/~jsedano)
Network&Systems Engineer
Agora Systems, S.A.
C/Aravaca 12
E-28040 Madrid (Spain)
Tel.: +34 91 533 58 57
Fax.: +34 91 534 84 77
--------
?Por que pelear por poseer las montanas, si cuando de nosotros no quede ni el recuerdo, y otras generaciones sigan matandose para conseguirlas, ellas seguiran ahi, riendose del hombre? Proverbio apache
#5 lore raw

Hi,

Quoted 5 lines · Javier Sedano

Hi,

I think the problem is related to the gcc version used in debian
testing. The default gcc version is 3.3, but 2.95 is also installed. Forcing it to use 2.95 seems to compile (althoug it still does not boot)

Aha! So changing gcc to gcc-2.95 in Makefile-rules in the elks tree seems
to solve the compilation problem. It compiles... but does not run. I've got what seems to be a dump of AX, BX, CX, DX registers, scrolling quickly through the screen.

I am actually trying to run elks in vmware. The first step was to
download the Images.zip tarball and use it. It works... more or less ;-)

The comb image boots without problems, and I can even log in and play.
The boot/root image does not work; it causes the same error than my home-compiled kernel.

So there seems to be any configuration option which makes elks not
runable under vmware. Does someone have a .config file for the boot image and another one for the comb image, to look for the diference?

Any other idea?

Regards,

Signature · 10 lines
Javier Sedano Jarillo: [email protected]
                       (http://www.it.uc3m.es/~jsedano)
Network&Systems Engineer
Agora Systems, S.A.
C/Aravaca 12
E-28040 Madrid (Spain)
Tel.: +34 91 533 58 57
Fax.: +34 91 534 84 77
--------
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
#6 lore raw
In reply to Javier Sedano
Quoted 4 lines

I think the problem is related to the gcc version used in debian testing.
The default gcc version is 3.3, but 2.95 is also installed. Forcing it to use 2.95 seems to compile (althoug it still does not boot)

Same thing here on Debian GNU/Linux unstable about gcc and dev86 0.16.11. Though, using dev86 0.16.0 gives me a working kernel.