On Sun, May 13, 2018 at 7:06 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sun, May 13, 2018 at 4:40 PM, Philipp Klaus Krause <p...@spth.de> wrote:
>> Am 13.05.2018 um 04:29 schrieb Xiaofan Chen:
>>>
>>> Just wondering which MinGW version you are using? I have already
>>> given up on MinGW.org, mingw-w64 is the way to go.
>>
>> AFAIK MinGW still uses GCC 3.x, while SDCC needs at least GCC 4.5 or so
>> (for the C++ 11 support). MinGW-w64 should be fine in that respect.
>>
>
> MinGW.org is now using new gcc version 6.3. But I have problems building
> libusb/OpenOCD so I give up on it.
>
Anyway, I just tried to use MinGW.org and sdcc needs Boost. Not so sure
it is just a header only requirements or I need to build Boost from source code.
So I stopped there.

Then I tried to build sdcc svn head using MSYS2 (I use pacman to install
the sdcc dependencies like bison and boost). The binary files build just fine.
But the library build failed. Not so sure why.
...
$ ../configure --prefix=/mingw64 --disable-pic14-port --disable-pic16-port
...
$ make
...
make[4]: Entering directory '/c/work/pic/sdcc/sdcc/build64/device/lib'
../../bin/sdcc -I../../../device/include
-I../../../device/include/mcs51 -mds390 --nostdinc --std-c99 -c
../../../device/lib/_atof.c -o ds390/_atof.rel
'sdcpp.exe' is not recognized as an internal or external command,
operable program or batch file.
at 1: warning 190: ISO C forbids an empty source file
make[4]: *** [Makefile:607: ds390/_atof.rel] Error 1
make[4]: Leaving directory '/c/work/pic/sdcc/sdcc/build64/device/lib'
make[3]: *** [Makefile:241: objects] Error 2
make[3]: Leaving directory '/c/work/pic/sdcc/sdcc/build64/device/lib'

xiaof@AcerSwift3 MINGW64 /c/work/pic/sdcc/sdcc/build64/bin
$ ls
makebin.exe   sdas8051.exe  sdastlcs90.exe  sdcdb.exe     sdldgb.exe
 sdobjcopy.exe
sdar.exe      sdasgb.exe    sdasz80.exe     sdcpp.exe     sdldstm8.exe
 sdranlib.exe
sdas390.exe   sdasrab.exe   sdcc.exe        sdld.exe      sdldz80.exe
sdas6808.exe  sdasstm8.exe  sdcclib.exe     sdld6808.exe  sdnm.exe

xiaof@AcerSwift3 MINGW64 /c/work/pic/sdcc/sdcc/build64/bin
$ ./sdcpp --version
sdcpp.exe (SDCC) 4.6.3 (GNU cpp adapted for SDCC)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-- 
Xiaofan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to