z88dk cannot build hello world sample on 15 out of 51 targets

Bug #882829 reported by Stéphane Gourichon
6
This bug affects 1 person
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://www.z88dk.org/forum/viewtopic.php?id=4041 .
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/z88dk/lib/cpc_crt0.opt /tmp/tmpXXqKQZdt.opt
cp /tmp/tmpXXqKQZdt.opt /tmp/tmpXXqKQZdt.asm
z88dk-zcpp -I. -DZ80 -DSMALL_C -DCPC -D__CPC__ -DSCCZ80 -I/usr/share/z88dk/include world.c /tmp/tmpXXfOtIM9.i
z88dk-sccz80 -// /tmp/tmpXXfOtIM9.i
z88dk-copt /usr/share/z88dk/lib/z80rules.2 < /tmp/tmpXXfOtIM9.asm > /tmp/tmpXXfOtIM9.op1
z88dk-copt /usr/share/z88dk/lib/z80rules.1 < /tmp/tmpXXfOtIM9.op1 > /tmp/tmpXXfOtIM9.opt
z88dk-z80asm -eopt -ns -Mo /tmp/tmpXXfOtIM9.opt
z88dk-z80asm -a -m -Mo -oa.bin -i/usr/share/z88dk/lib/clibs/cpc_clib -i/usr/share/z88dk/lib/clibs/z80_crt0 /tmp/tmpXXqKQZdt.opt /tmp/tmpXXfOtIM9.o
4 errors occurred during assembly
Key to filenames:
/tmp/tmpXXfOtIM9.o = world.c
File '/usr/share/z88dk/lib/clibs/cpc_clib.lib', Module 'FCLOSE', Symbol not defined
Error in expression CLOSE

File '/usr/share/z88dk/lib/clibs/cpc_clib.lib', Module 'FPUTC_CONS', Symbol not defined
Error in expression FIRMWARE

File '/usr/share/z88dk/lib/clibs/cpc_clib.lib', Module 'FPUTC_CONS', Symbol not defined
Error in expression FIRMWARE

File '/usr/share/z88dk/lib/clibs/cpc_clib.lib', Module 'FPUTC', Symbol not defined
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/z88dk/lib/config ; ls -1b *.cfg | sed s/.cfg// ) ; do zcc +$a /usr/share/doc/z88dk-doc/examples/console/world.c >${a}.out 2>${a}.err ; RC=$? ; echo -n "$a " >>zcctestrc$RC ; echo $RC ; done | sort | uniq -c ; grep -H . zcctestrc*
     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://www.z88dk.org/forum/viewtopic.php?id=4041 the administrator wrote :

> 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
ProcVersionSignature: Ubuntu 2.6.38-12.51-generic 2.6.38.8
Uname: Linux 2.6.38-12-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CheckboxSubmission: 49be7c2fa4fe9d7b7c814e60decf0c08
CheckboxSystem: b8f3ec504801f13fc208edb5c785b099
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)

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.