Compiling pcc in cygwin

Discussion in 'C Programming' started by Ir. Hj. Othman bin Hj. Ahmad, Oct 11, 2012.

  1. I had to make changes to configure so that it can compile.

    The trick is to manually enter the expected target machine, because
    this configure script cannot detect that cygwin win32 should be able
    to compile pcc.

    This is the first stage in making pcc portable. If we cannot change
    this configure file, it will be hard for us to do any compilation, let
    alone make any modification for a new target machine.

    Actually I wanted to post it in my thread comparing pcc with gcc and
    llvm, but there are too many posts there.
    llvm failed in cygwin despite it being listed in the cygwin setup, but
    I used the setup for cywinx.
    gcc should be possible but it is for an older version. gcc for cygwin
    is special, I think.

    LLVM lso failed in Freebsd 9 although it is supposed to be a platform
    for it. Actually pkg_add failed to download the source.

    I managed to make Freebsd read from my usb drive via Vmware so can
    transfer llvm source code there.

    #if test "${ac_cv_target+set}" = set; then

    # echo $ECHO_N "(cached) $ECHO_C" >&6


    # if test "x$target_alias" = x; then

    # ac_cv_target=$ac_cv_host


    # ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||

    # { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub
    $target_alias failed" >&5

    #echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias
    failed" >&2;}

    # { (exit 1); exit 1; }; }



    # The above lines had been commented out because it failed to detect
    the cygwin

    # characteristics from the passed parameters. cygwin pass its machine
    as i686-pc-cygwin

    # target name must be <processor>-<os>-<abi>

    # valid choices for processor: i386 amd64 nova m16c powerpc hppa m68k
    pdp11 mips sparc sparc64

    # valid choices for os: apple bsd darwin dragonfly linux midnightbsd
    mingw win32 minix mirbsd netbsd openbsd sunos

    # valid choices for abi: pecoff elf machos classic68k aout coff

    Ir. Hj. Othman bin Hj. Ahmad, Oct 11, 2012
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
  2. Replies:
  3. WELCOME to

    , Sep 3, 2003, in forum: Python
    Robin Becker
    Sep 5, 2003
  4. Replies:
  5. Ir. Hj. Othman bin Hj. Ahmad

    Most portable compiler: llvl llc or pcc or gcc rtl?

    Ir. Hj. Othman bin Hj. Ahmad, Oct 9, 2012, in forum: C Programming
    88888 Dihedral
    Oct 19, 2012