#420 make install and ASlink warning

closed
nobody
None
2
2003-01-17
2002-12-13
Chris Belec
No

make install error
I have included the last 50 lines from std out in the
attached file. The error appears while make is
executing the ./sdcc/packihx/Makefile. The make
install ends with "make: *** [install] Error 2" One
of the symptoms is that aslink.exe is not copied over
to the /usr/local/bin.

Another problem (which may be related to the make
install) is that I get the following ASlink warning
message when I run the sdcc test.c.
?ASlink-Warning-Undefined Global '_putchar' referenced
by module 'vprintf'

Here's the souce code.

/* test.c */

#include <string.h>
#include <stdio.h>
void main() {
char str1[10];
strcpy(str1, "testing");
printf("Goo");
}
/* end */

$ sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic14/TININative/xa51
2.3.2 (Dec 12 2002) (CYGWIN)
I am running Windows NT SP6 Please help if you can.
Thanks. Chris

Discussion

  • Jesus Calvino-Fraga

    Logged In: YES
    user_id=603650

    You have to provide your own putchar if you want to use
    printf. Look at the example in

    sdcc\examples\mcs51\clock\hwinit.c

    or if you don't have them:

    http://cvs.sourceforge.net/cgi-
    bin/viewcvs.cgi/sdcc/sdcc/device/examples/mcs51/clock/

    (Also there is no attached file!)

     
  • Johan Knol

    Johan Knol - 2003-01-15
    • labels: 355281 -->
    • priority: 5 --> 2
     
  • Johan Knol

    Johan Knol - 2003-01-15

    Logged In: YES
    user_id=63512

    Is this a cygwin-build specific issue?

     
  • Jesus Calvino-Fraga

    Logged In: YES
    user_id=603650

    There was a typo in as\mcs51\Makefile.in (lkomf51.c should
    have been lkaomf51.c) that prevented aslink.exe to be
    generated on Windows using cygwin.

     
  • Jesus Calvino-Fraga

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks