z88dk cannot build hello world sample on 15 out of 51 targets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
z88dk (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug was reported by another user regarding the cpc target more than a year ago on http://
Basically, compiler fails (and returns 1) on the simple "hello world" sample from z88dk doc.
* How to reproduce
z88dk provides samples, including this one :
$ cat world.c
#include <stdio.h>
main()
{
printf("Hello world!\n");
}
Documented command for cpc target is :
$ zcc +cpc world.c
* expected behavior
generate an executable, no error
* observed behavior
no executable, errors:
$ zcc +cpc world.c
cp /usr/share/
cp /tmp/tmpXXqKQZd
z88dk-zcpp -I. -DZ80 -DSMALL_C -DCPC -D__CPC__ -DSCCZ80 -I/usr/
z88dk-sccz80 -// /tmp/tmpXXfOtIM9.i
z88dk-copt /usr/share/
z88dk-copt /usr/share/
z88dk-z80asm -eopt -ns -Mo /tmp/tmpXXfOtIM
z88dk-z80asm -a -m -Mo -oa.bin -i/usr/
4 errors occurred during assembly
Key to filenames:
/tmp/tmpXXfOtIM9.o = world.c
File '/usr/share/
Error in expression CLOSE
File '/usr/share/
Error in expression FIRMWARE
File '/usr/share/
Error in expression FIRMWARE
File '/usr/share/
Error in expression WRITEBYTE
* additional information
The following command tests, logs output, counts and lists targets that succeed (0) and fail (1)
$ rm -f zcctestrc* ; for a in $( cd /usr/share/
36 0
15 1
zcctestrc0:abc800 abc80 aceansi aquansi aquarius c128ansi cpm msx mzansi mz nc ozansi ppsansi pps rcmx000 samansi sam sms svi ti82ansi ti82 ti83ansi ti83 ti85ansi ti85 ti86ansi ti86 ti8xansi ti8x vzansi vz z88ansi z88 z88net zcc zx81
zcctestrc1:cpcansi cpc embedded m5 nasansi nascom newbrain rex rexlib test ts2068ansi ts2068 zx81ansi zxansi zx
On http://
> I've not tried the ubuntu packages, and I'm not sure how up-to-date they are but this looks like one of the core library routines isn't being linked in which is a tad odd.
> I would recommend that you uninstall it and switch to running a nightly build which will be more recent and have more bugs fixed that the ubuntu release.
> I know this is a bit of a cop out, but I've not get a Lucid machine to try it out on I'm afraid.
Thank you for your attention.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: z88dk 1.8.ds1-7
ProcVersionSign
Uname: Linux 2.6.38-12-generic x86_64
NonfreeKernelMo
Architecture: amd64
CheckboxSubmission: 49be7c2fa4fe9d7
CheckboxSystem: b8f3ec504801f13
Date: Fri Oct 28 00:26:45 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
LANGUAGE=fr_FR:en
PATH=(custom, user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: z88dk
UpgradeStatus: Upgraded to natty on 2011-05-20 (160 days ago)