Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#84 sdcc cygwin build problems

open
nobody
None
1
2013-08-15
2013-08-13
jacksonfdsa
No

Hi,
when I use sdcc_cygwin_mingw32 to build sdcc the following error is returned

/cygdrive/c/sdcc-src-20130812-8807/sdcc/src/SDCCmain.c:1758: undefined reference to cygwin_conv_to_full_posix_path' /cygdrive/c/sdcc-src-20130812-8807/sdcc/src/SDCCmain.c:1758:(.text+0x5b7): relocation truncated to fit: R_X86_64_PC32 against undefined symbolcygwin_conv_to_full_posix_path'
collect2: error: ld returned 1 exit status
Makefile:114: recipe for target ../bin/sdcc.exe' failed make[1]: *** [../bin/sdcc.exe] Error 1 make[1]: Leaving directory/cygdrive/c/sdcc-src-20130812-8807/sdcc/src'
Makefile:115: recipe for target `sdcc-cc' failed
make: *** [sdcc-cc] Error 2

can somebody help?

thanks

Related

Support Requests: #84

Discussion

  • Borut Ražem
    Borut Ražem
    2013-08-14

    Can you please provide the following info:

    • CygWin version:
      uname -a
    • gcc version:
      gcc --version
    • Did you modfy the sdcc_cygwin_mingw32 script?

    Borut

     
  • jacksonfdsa
    jacksonfdsa
    2013-08-14

    Hi,
    I'm using cygwin_nt-6.1 1.7.23(0.268/5/3) x86_64
    gcc 4.8.1

    and I haven't modified the sdcc_cygwin_mingw32 script.

    thanks...
    matt

    ----- Original Message -----
    From: "Borut Ražem" borutr@users.sf.net
    To: "[sdcc:support-requests]" 84@support-requests.sdcc.p.re.sf.net
    Sent: Wednesday, August 14, 2013 3:12:53 AM
    Subject: [sdcc:support-requests] #84 sdcc cygwin build problems

    Can you please provide the following info:

    • CygWin version:
      uname -a
    • gcc version:
      gcc --version
    • Did you modfy the sdcc_cygwin_mingw32 script?

    Borut


    [support-requests:#84] sdcc cygwin build problems

    Status: open
    Created: Tue Aug 13, 2013 09:00 PM UTC by jacksonfdsa
    Last Updated: Tue Aug 13, 2013 09:00 PM UTC
    Owner: nobody

    Hi,
    when I use sdcc_cygwin_mingw32 to build sdcc the following error is returned

    /cygdrive/c/sdcc-src-20130812-8807/sdcc/src/SDCCmain.c:1758: undefined reference to cygwin_conv_to_full_posix_path' /cygdrive/c/sdcc-src-20130812-8807/sdcc/src/SDCCmain.c:1758:(.text+0x5b7): relocation truncated to fit: R_X86_64_PC32 against undefined symbolcygwin_conv_to_full_posix_path'
    collect2: error: ld returned 1 exit status
    Makefile:114: recipe for target ../bin/sdcc.exe' failed make[1]: *** [../bin/sdcc.exe] Error 1 make[1]: Leaving directory/cygdrive/c/sdcc-src-20130812-8807/sdcc/src'
    Makefile:115: recipe for target `sdcc-cc' failed
    make: *** [sdcc-cc] Error 2

    can somebody help?

    thanks


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/sdcc/support-requests/84/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #84

  • Borut Ražem
    Borut Ražem
    2013-08-15

    For mingw compilation you have to install the mingw toolchain. The minimum is:
    - mingw-gcc-core
    - mingw-gcc-g++
    - mingw-binutils
    - mingw-w32api
    - mingw-runtime

    you can also try it with mingw64-i686 toolchain. I haven't.

    The sdcc_cygwin_mingw32 script should look like this:

    --8<--
    #!/bin/sh
    # Script to "cross" compile with mingw32 under Cygwin
    
    TOOLSPREFIX=i686-pc-mingw32-
    BOOST_INCLUDE_PATH=/cygdrive/d/svn_snapshots/boost_1_49_0
    STX_INCLUDE_PATH=/cygdrive/d/stx-btree-0.9/include
    
    CC=${TOOLSPREFIX}gcc \
    CXX=${TOOLSPREFIX}g++ \
    AR=${TOOLSPREFIX}ar \
    RANLIB=${TOOLSPREFIX}ranlib \
    STRIP=${TOOLSPREFIX}strip \
    \
    CXXFLAGS="-g -O2 -I ${BOOST_INCLUDE_PATH} -I ${STX_INCLUDE_PATH}" \
    CPPFLAGS="-I ${BOOST_INCLUDE_PATH} -I ${STX_INCLUDE_PATH}" \
    \
    ./configure -C \
    --prefix="/sdcc" \
    --datarootdir="/sdcc" \
    docdir="\${datarootdir}/doc" \
    include_dir_suffix="include" \
    non_free_include_dir_suffix="non-free/include" \
    lib_dir_suffix="lib" \
    non_free_lib_dir_suffix="non-free/lib" \
    sdccconf_h_dir_separator="\\\\"
    
    make 2>&1 | tee make.log
    -->8--
    

    I tried it but there is an other issue: gputils supported 16 bit devices are not detected.

    Good luck!

    Borut

     
    Last edit: Borut Ražem 2013-08-15