Is there a limit to number of source files / command line length?

About Monkey 2 Forums Monkey 2 Development Is there a limit to number of source files / command line length?

This topic contains 8 replies, has 4 voices, and was last updated by  Arjailer 2 years, 11 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2093

    Arjailer
    Participant

    I appear to have reached some sort of limit on number of source files. Or perhaps a limit on command line length?

    Everything works with 41 source files, but adding one more, either by explicitly adding another file to the project, or by referencing something I haven’t used so far (e.g. monkey.math and using Abs()) gives a linking error.

    What I can see of the error in the output window doesn’t contain any useful information.
    Can I compile this on the command line to see more info?

    For comparison my Monkey X project (which I’m trying to convert, at least part of) has 239 files and compiles just fine.

    If this is a file/command line limit then it’s going to stop my Monkey 2 conversion in it’s tracks 🙁

    #2101

    Simon Armstrong
    Participant

    Are you on Windows?

    In BlitzMax we needed to work around the 8K limit (older versions 2K)  restricting command line arguments.

    As a workaround you may be able to move your projects and monkey2 closer to root as I think Monky2 uses a lot of absolute paths.

    #2102

    Mark Sibly
    Keymaster

    Can you post the error?

    I’m guessing it’s the 8K command line character limit, will fix ASAP.

    #2103

    Arjailer
    Participant

    Yes, I’m on Windows 7.

    I can’t copy the error from the Ted 2 output window and it’s far too long to see it all.

    I’ll try running it on the command line tomorrow and post the error.

    #2104

    Mark Sibly
    Keymaster

    Ok, possible fix is now up at github.

    Copy from console is indeed a little broken. Try ‘copy’ from the edit menu instead of ‘ctrl-c’, works here.

    #2124

    Arjailer
    Participant

    I’ll try to get the fix from Github later.

    The error is:

    mx2cc version 1.0.0

    ***** Building app ‘C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.monkey2’ *****

    Parsing…
    Semanting…
    Translating…
    Compiling….
    Linking C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/desktop_debug_windows/testrunner.exe
    Build error: System command ‘g++ -m32 -static -mwindows -o “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/desktop_debug_windows/testrunner.exe” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0testrunner.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02timingutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02stringutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02randomgeneratorinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02randomgenerator.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02random2.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02mathutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02logging.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02angleutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02angledirection.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02sizeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02size.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rectangleinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rectangle.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlysizeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlyrectangleinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlyrangeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlypointinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rangeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02range.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02poolableiteminterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02poolinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02pool.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02pointinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02point.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02flagenum.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02exceptions.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02direction.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02abstractpoint.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timerinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timedilationaction.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timedilation.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02stopwatch.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02intervaltimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02fixedratetimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02deltatimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02abstracttimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testmethoddefinition.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02tests.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testengine.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testableinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02asserts.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02globals.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02container.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02list.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02stack.cpp.o” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/std/std.buildv1.0.0/desktop_debug_windows/std.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/stb-image-write/stb-image-write.buildv1.0.0/desktop_debug_windows/stb-image-write.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/stb-image/stb-image.buildv1.0.0/desktop_debug_windows/stb-image.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/miniz/miniz.buildv1.0.0/desktop_debug_windows/miniz.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/libc/libc.buildv1.0.0/desktop_debug_windows/libc.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/monkey/monkey.buildv1.0.0/desktop_debug_windows/monkey.a” ‘ failed.

    g++ -m32 -static -mwindows -o “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/desktop_debug_windows/testrunner.exe” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0testrunner.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02timingutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02stringutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02randomgeneratorinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02randomgenerator.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02random2.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02mathutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02logging.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02angleutils.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02utils_02angledirection.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02sizeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02size.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rectangleinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rectangle.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlysizeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlyrectangleinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlyrangeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02readonlypointinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02rangeinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02range.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02poolableiteminterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02poolinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02pool.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02pointinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02point.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02flagenum.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02exceptions.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02direction.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02types_02abstractpoint.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timerinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timedilationaction.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02timedilation.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02stopwatch.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02intervaltimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02fixedratetimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02deltatimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02timing_02abstracttimer.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testmethoddefinition.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02tests.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testengine.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02testableinterface.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02testing_02asserts.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0framework_02globals.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02container.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02list.cpp.o” “C:/Documents/Development Projects/Monkey 2/Robotron/testrunner.buildv1.0.0/build_cache/desktop_debug_windows/testrunner_0std_0collections_02stack.cpp.o” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/std/std.buildv1.0.0/desktop_debug_windows/std.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/stb-image-write/stb-image-write.buildv1.0.0/desktop_debug_windows/stb-image-write.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/stb-image/stb-image.buildv1.0.0/desktop_debug_windows/stb-image.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/miniz/miniz.buildv1.0.0/desktop_debug_windows/miniz.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/libc/libc.buildv1.0.0/desktop_debug_windows/libc.a” “C:/Documents/Programs/Monkey2/monkey2-v1.0.0/modules/monkey/monkey.buildv1.0.0/desktop_debug_windows/monkey.a”

    ***** Fatal mx2cc error *****

    Build error.

    #2125

    Arjailer
    Participant

    Okay, downloaded latest from GitHub, ran rebuildall.bat, and get the same error building my code (with v1.0.1 instead of v1.0.0, and the addition of stb-vorbis).

    So, I guess my problem is something else.

    #2126

    olejr
    Participant

    The ‘rebuildall.bat’ script doesn’t rebuild mx2cc_windows.exe for some reason.

    Try running ‘rebuildmx2cc.bat’ instead.

    #2127

    Arjailer
    Participant

    Yep – that seems to to have worked – thanks  🙂

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.