Git Product home page Git Product logo

Comments (16)

bbbbbr avatar bbbbbr commented on May 26, 2024

Does it work when passing a quoted path to lcc?
If I recall there is some handling in lcc for path quoting.

from gbdk-2020.

angelsix avatar angelsix commented on May 26, 2024

No. Nothing makes it work. I noticed its entirely related to if its on a non C:\ drive. Drive D:\ is not a network drive, its just a second hard drive

image

from gbdk-2020.

bbbbbr avatar bbbbbr commented on May 26, 2024

Thanks for the screen shots.
Can you run that same command with -v as an lcc argument? it will show the build steps as lcc tries to execute them.

I have an idea about what might be going on (the issue doesn't seem to occur on linux, so it'll take some more time to get my testing set up)

from gbdk-2020.

angelsix avatar angelsix commented on May 26, 2024

image

from gbdk-2020.

bbbbbr avatar bbbbbr commented on May 26, 2024

Thanks

from gbdk-2020.

bbbbbr avatar bbbbbr commented on May 26, 2024

Just confirming reproduction of this on a D drive folder with some spaces.

Since it doesn't appear to be a new issue, resolving it may get bumped until after the upcoming release.

Also noting for future reference this transient cc1 path error that appeared to self correct (?) on the second run on a C drive folder with spaces.

c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre>cd examples\gb\template_minimal
c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>compile.bat
c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>REM Automatically generated from Makefile

c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>..\..\..\bin\lcc  -o Example.gb main.c
sdcpp.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
at 1: warning 190: ISO C forbids an empty translation unit
subprocess error 1

c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>compile.bat
c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>REM Automatically generated from Makefile

c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples\gb\template_minimal>..\..\..\bin\lcc  -o Example.gb main.c
c:\gb\gbdk_4.2.0\gbdk 4.2.0 pre\examples>

from gbdk-2020.

bbbbbr avatar bbbbbr commented on May 26, 2024

Had reproduced it earlier, but now it seems to compile without issue. Guess will have to test more and see what comes up.

d:\GB Space\examples\gb\colorbar>..\..\..\bin\lcc -Wa-l -Wl-m  -v -c -o colorbar.o colorbar.c
..\..\..\bin\lcc $Id: lcc.c,v 2.0 2023/06/01 23:14:24 gbdk-2020 Exp $
"d:\GB Space\"bin/sdcc -msm83 --no-std-crt0 --fsigned-char --use-stdout -D__PORT_sm83 -D__TARGET_gb -Wa-pogn -I"d:\GB Space\"lib/gb -DINT_16_BITS -I"d:\GB Space\"include -c colorbar.c -o colorbar.o

d:\GB Space\examples\gb\colorbar>..\..\..\bin\lcc -Wa-l -Wl-m -v -Wm-yC -o colorbar.gb colorbar.o
..\..\..\bin\lcc $Id: lcc.c,v 2.0 2023/06/01 23:14:24 gbdk-2020 Exp $
"d:\GB Space\"bin/sdldgb -n -i -m -g _shadow_OAM=0xC000 -g .STACK=0xE000 -g .refresh_OAM=0xFF80 -b _DATA=0xC0A0 -b _CODE=0x0200 -k "d:\GB Space\"lib/sm83/ -l sm83.lib -k "d:\GB Space\"lib/gb/ -l gb.lib colorbar.ihx "d:\GB Space\"lib/gb/crt0.o colorbar.o
"d:\GB Space\"bin/ihxcheck colorbar.ihx
"d:\GB Space\"bin/makebin -yN -Z -yC colorbar.ihx colorbar.gb

d:\GB Space\examples\gb\colorbar>

d:\GB Space\examples\gb\colorbar>make clean
rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm

d:\GB Space\examples\gb\colorbar>make
../../../bin/lcc -Wa-l -Wl-m  -c -o colorbar.o colorbar.c
../../../bin/lcc -Wa-l -Wl-m  -Wm-yC -o colorbar.gb colorbar.o

d:\GB Space\examples\gb\colorbar>

d:\GB Space\examples\gb\colorbar>compile.bat

d:\GB Space\examples\gb\colorbar>REM Automatically generated from Makefile

d:\GB Space\examples\gb\colorbar>..\..\..\bin\lcc -Wa-l -Wl-m  -c -o colorbar.o colorbar.c

d:\GB Space\examples\gb\colorbar>..\..\..\bin\lcc -Wa-l -Wl-m  -Wm-yC -o colorbar.gb colorbar.o

d:\GB Space\examples\gb\colorbar>

from gbdk-2020.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.