* MAKE errors when trying to compile in Ubuntu 9.10
[not found] <S1750932Ab0CAFCB/20100301050201Z+473@vger.kernel.org>
@ 2010-03-01 6:24 ` Dieter R Kedrowitsch
2010-03-01 9:31 ` Frank Gevaerts
2010-03-02 19:52 ` Dieter R Kedrowitsch
0 siblings, 2 replies; 6+ messages in thread
From: Dieter R Kedrowitsch @ 2010-03-01 6:24 UTC (permalink / raw)
To: linux-8086
Greetings! I am trying to compile ELKS from the archive
elks-0.1.3.tar.gz and I am experiencing an error during make that I have
never seen before. I am using bin86 0.16.17 on a pretty much stock
installation of Ubuntu 9.10.
This is just a small snippet of an error that is repeated many times
when I run make to 'make dep'.
printf: 1: $[0x000103-1]: expected numeric value
printf: 1: $[0x000103-1]: expected numeric value
printf: 1: $[0x000103-1]: expected numeric value
boot/setup.S:588: error: macro names must be identifiers
make[2]: *** [boot/setup.s] Error 1
make[2]: Leaving directory `/usr/src/elks/arch/i86'
make[1]: *** [Image] Error 2
make[1]: Leaving directory `/usr/src/elks'
make: *** [elks] Error 2
Does anyone have any suggestions?
Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: MAKE errors when trying to compile in Ubuntu 9.10
2010-03-01 6:24 ` MAKE errors when trying to compile in Ubuntu 9.10 Dieter R Kedrowitsch
@ 2010-03-01 9:31 ` Frank Gevaerts
2010-03-02 19:24 ` Harley Laue
2010-03-02 19:52 ` Dieter R Kedrowitsch
1 sibling, 1 reply; 6+ messages in thread
From: Frank Gevaerts @ 2010-03-01 9:31 UTC (permalink / raw)
To: linux-8086
On Tue, Mar 02, 2010 at 01:25:28AM -0500, Dieter R Kedrowitsch wrote:
> Greetings! I am trying to compile ELKS from the archive
> elks-0.1.3.tar.gz and I am experiencing an error during make that I have
> never seen before. I am using bin86 0.16.17 on a pretty much stock
> installation of Ubuntu 9.10.
>
> This is just a small snippet of an error that is repeated many times
> when I run make to 'make dep'.
>
> printf: 1: $[0x000103-1]: expected numeric value
> printf: 1: $[0x000103-1]: expected numeric value
> printf: 1: $[0x000103-1]: expected numeric value
This looks like your shell doesn't like some particular printf syntax.
Doesn't Ubuntu use dash as /bin/sh? Try setting it to bash
Frank
> boot/setup.S:588: error: macro names must be identifiers
> make[2]: *** [boot/setup.s] Error 1
> make[2]: Leaving directory `/usr/src/elks/arch/i86'
> make[1]: *** [Image] Error 2
> make[1]: Leaving directory `/usr/src/elks'
> make: *** [elks] Error 2
>
> Does anyone have any suggestions?
>
> Thanks!
> --
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MAKE errors when trying to compile in Ubuntu 9.10
2010-03-01 9:31 ` Frank Gevaerts
@ 2010-03-02 19:24 ` Harley Laue
0 siblings, 0 replies; 6+ messages in thread
From: Harley Laue @ 2010-03-02 19:24 UTC (permalink / raw)
To: linux-8086
Frank Gevaerts wrote:
> On Tue, Mar 02, 2010 at 01:25:28AM -0500, Dieter R Kedrowitsch wrote:
> > Greetings! I am trying to compile ELKS from the archive
> > elks-0.1.3.tar.gz and I am experiencing an error during make that I have
> > never seen before. I am using bin86 0.16.17 on a pretty much stock
> > installation of Ubuntu 9.10.
> >
> > This is just a small snippet of an error that is repeated many times
> > when I run make to 'make dep'.
> >
> > printf: 1: $[0x000103-1]: expected numeric value
> > printf: 1: $[0x000103-1]: expected numeric value
> > printf: 1: $[0x000103-1]: expected numeric value
>
> This looks like your shell doesn't like some particular printf syntax.
> Doesn't Ubuntu use dash as /bin/sh? Try setting it to bash
I can confirm this on Debian with dash. The problem goes away as soon as
/bin/sh is switched from dash to bash.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MAKE errors when trying to compile in Ubuntu 9.10
2010-03-01 6:24 ` MAKE errors when trying to compile in Ubuntu 9.10 Dieter R Kedrowitsch
2010-03-01 9:31 ` Frank Gevaerts
@ 2010-03-02 19:52 ` Dieter R Kedrowitsch
2010-03-02 20:24 ` Harley Laue
1 sibling, 1 reply; 6+ messages in thread
From: Dieter R Kedrowitsch @ 2010-03-02 19:52 UTC (permalink / raw)
To: linux-8086
Switching from dash to bash solved that problem, thanks!
However, now I'm running into a different issue when building. It seems
BCC isn't happy with xt_key.c....
Has anyone seen this before?
bcc -0 -O -I/home/dkedrowitsch/elks/include
-DELKS_VERSION_CODE=0x00010201 -DUTS_RELEASE=\"0.1.3-pre1\" -D__KERNEL__
-ansi -c -o xt_key.o xt_key.c
xt_key.c:168.32: error: xtkb_scan_caps undeclared
xt_key.c:168.37: error: illegal indirection
xt_key.c:170.35: error: xtkb_scan_shifted undeclared
xt_key.c:170.40: error: illegal indirection
xt_key.c:175.36: error: xtkb_scan_ctrl_alt undeclared
xt_key.c:175.41: error: illegal indirection
xt_key.c:182.41: error: illegal indirection
xt_key.c:185.27: error: xtkb_scan undeclared
xt_key.c:185.32: error: illegal indirection
xt_key.c:188.40: error: illegal indirection
xt_key.c:190.40: error: illegal indirection
make[2]: *** [xt_key.o] Error 1
make[2]: Leaving directory `/home/dkedrowitsch/elks/arch/i86/drivers/char'
make[1]: *** [drivers/char/chr_drv.a] Error 2
make[1]: Leaving directory `/home/dkedrowitsch/elks/arch/i86'
make: *** [Image] Error 2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MAKE errors when trying to compile in Ubuntu 9.10
2010-03-02 19:52 ` Dieter R Kedrowitsch
@ 2010-03-02 20:24 ` Harley Laue
2010-03-02 20:37 ` MAKE errors when trying to compile in Ubuntu 9.10 (nospam: message 9 of 20) Dieter R Kedrowitsch
0 siblings, 1 reply; 6+ messages in thread
From: Harley Laue @ 2010-03-02 20:24 UTC (permalink / raw)
To: linux-8086
On Wed, Mar 3, 2010 at 1:53 PM, Dieter R Kedrowitsch
<dieter.kedrowitsch@gmail.com> wrote:
> Switching from dash to bash solved that problem, thanks!
>
> However, now I'm running into a different issue when building. It seems BCC
> isn't happy with xt_key.c....
>
> Has anyone seen this before?
>
> bcc -0 -O -I/home/dkedrowitsch/elks/include -DELKS_VERSION_CODE=0x00010201
> -DUTS_RELEASE=\"0.1.3-pre1\" -D__KERNEL__ -ansi -c -o xt_key.o xt_key.c
> xt_key.c:168.32: error: xtkb_scan_caps undeclared
> xt_key.c:168.37: error: illegal indirection
> xt_key.c:170.35: error: xtkb_scan_shifted undeclared
> xt_key.c:170.40: error: illegal indirection
> xt_key.c:175.36: error: xtkb_scan_ctrl_alt undeclared
> xt_key.c:175.41: error: illegal indirection
> xt_key.c:182.41: error: illegal indirection
> xt_key.c:185.27: error: xtkb_scan undeclared
> xt_key.c:185.32: error: illegal indirection
> xt_key.c:188.40: error: illegal indirection
> xt_key.c:190.40: error: illegal indirection
> make[2]: *** [xt_key.o] Error 1
> make[2]: Leaving directory `/home/dkedrowitsch/elks/arch/i86/drivers/char'
> make[1]: *** [drivers/char/chr_drv.a] Error 2
> make[1]: Leaving directory `/home/dkedrowitsch/elks/arch/i86'
> make: *** [Image] Error 2
Looks like arch/i86/drivers/char/KeyMaps/mkcfg is the culprit. Edit that file
and change "sort +1f" to "sort -f" Then remove
arch/i86/drivers/char/KeyMaps/Config.in and on make config it should regenerate
Config.in and fix the issue.
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MAKE errors when trying to compile in Ubuntu 9.10 (nospam: message 9 of 20)
2010-03-02 20:24 ` Harley Laue
@ 2010-03-02 20:37 ` Dieter R Kedrowitsch
0 siblings, 0 replies; 6+ messages in thread
From: Dieter R Kedrowitsch @ 2010-03-02 20:37 UTC (permalink / raw)
To: Harley Laue; +Cc: linux-8086
Great, thanks so much for the help! That worked, and I'm getting close,
but again I come to another stumbling block further along the make
process.
bcc -0 -O -I/home/dkedrowitsch/elks/include
-DELKS_VERSION_CODE=0x00010201 -DUTS_RELEASE=\"0.1.3-pre1\" -D__KERNEL__
-ansi -c -o boot/crt1.o boot/crt1.c
gcc -E -traditional -I/home/dkedrowitsch/elks/include
-DELKS_VERSION_CODE=0x00010201 -DUTS_RELEASE=\"0.1.3-pre1\" -D__KERNEL__
-o boot/crt0.s boot/crt0.S
as86 -0 -o boot/crt0.o boot/crt0.s
(cd ../.. ; ld86 -0 -i \
arch/i86/boot/crt0.o arch/i86/boot/crt1.o \
init/main.o kernel/kernel.a fs/fs.a lib/lib.a net/net.a
fs/minix/minixfs.a arch/i86/kernel/akernel.a arch/i86/lib/lib86.a
arch/i86/mm/mm.a arch/i86/drivers/char/chr_drv.a
arch/i86/drivers/block/blk_drv.a \
-t -M -o arch/i86/boot/system > System.tmp ; \
sort -k4 System.tmp > System.map ; rm -f System.tmp )
usage: ld86 [-03NMdimrstz[-]] [-llib_extension] [-o outfile] [-Ccrtfile]
[-Llibdir] [-Olibfile] [-Ttextaddr] [-Ddataaddr] [-Hheapsize]
infile...
tools/build boot/bootsect boot/setup boot/system > boot/Image
Root device is (3, -128)
Non-Minix header of 'boot'
make[1]: *** [Image] Error 1
make[1]: Leaving directory `/home/dkedrowitsch/elks/arch/i86'
make: *** [Image] Error 2
Harley Laue wrote:
> Looks like arch/i86/drivers/char/KeyMaps/mkcfg is the culprit. Edit that file
> and change "sort +1f" to "sort -f" Then remove
> arch/i86/drivers/char/KeyMaps/Config.in and on make config it should regenerate
> Config.in and fix the issue.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-02 20:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <S1750932Ab0CAFCB/20100301050201Z+473@vger.kernel.org>
2010-03-01 6:24 ` MAKE errors when trying to compile in Ubuntu 9.10 Dieter R Kedrowitsch
2010-03-01 9:31 ` Frank Gevaerts
2010-03-02 19:24 ` Harley Laue
2010-03-02 19:52 ` Dieter R Kedrowitsch
2010-03-02 20:24 ` Harley Laue
2010-03-02 20:37 ` MAKE errors when trying to compile in Ubuntu 9.10 (nospam: message 9 of 20) Dieter R Kedrowitsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox