NO

Author Topic: Internal error  (Read 178 times)

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Internal error
« on: June 12, 2018, 09:55:11 am »
When compiling LZMA SDK (7Zip SDK) I egt an internal error.
This SDK can be dowloaded at [size=78%]https://7-zip.org/sdk.html[/size]
Kenavo

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1689
Re: Internal error
« Reply #1 on: June 12, 2018, 05:21:13 pm »
PellesC 9 x64 optimized speed:
7zArcIn.c(331): fatal error: Internal error: spill_at_range().
May the source be with you

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #2 on: June 12, 2018, 06:15:06 pm »
I have used new variables to store intermediates results but no success.
In this project you have to add #include <intrin.h> and replace Memory.h with string.h
I set /MT too, for __cpuid
With the version 8 of Pelle's it did not like alloca, with this version no problem.
Programs generated with the new version seem to be faster than those made with version 8.0.
The ide editor has been improved and scrolling is easier. :-*
Clean project is welcome and useful.
The version changer does not work.
Is it possible to have a tool that reads a unix makefile and create a windows project?
Idem with MS .DSP files.
I use Pelle's compiler and assembler every day, they are the best tools for me.
For the instant, COULD YOU MAKE THE DEBUGGER RUNNING JUST FOR ME, MISTER PELLE? :) :) :) :) :) :)
Kenavo

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1937
    • http://www.smorgasbordet.com
Re: Internal error
« Reply #3 on: June 13, 2018, 06:07:20 pm »
I set /MT too, for __cpuid
Well, __cpuid is the Microsoft spelling, so /Ze (Enable Microsoft extensions) seems more appropriate...

The version changer does not work.
Not sure which version changer we are talking about -- some add-in?

Is it possible to have a tool that reads a unix makefile and create a windows project?
Sure. Someone can write an add-in...  ;)

For the instant, COULD YOU MAKE THE DEBUGGER RUNNING JUST FOR ME, MISTER PELLE? :) :) :) :) :) :)
Well, it works here. Apparently on some other peoples computers as well. I think you have to provide more info, or even better: a sample project.
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1937
    • http://www.smorgasbordet.com
Re: Internal error
« Reply #4 on: June 13, 2018, 06:08:35 pm »
PellesC 9 x64 optimized speed:
7zArcIn.c(331): fatal error: Internal error: spill_at_range().
Thanks. I will try to reproduce...
/Pelle

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #5 on: June 13, 2018, 09:44:07 pm »
Here is my project.
MS extensions are activated
When I launch the debugger it tells :

Error reading from file
Problem loading debug information


The only bad message I have during compiling are :

- - - - - - - - - - Chloe.exe
Building Chloe.exe.
Writing debug information
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
Compacting debug information
Done.

libgfl comes from XnView. i use it since many years. It can be found at https://www.xnview.com/fr/
« Last Edit: June 13, 2018, 09:49:11 pm by Jokaste »
Kenavo

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1689
Re: Internal error
« Reply #6 on: June 13, 2018, 10:06:23 pm »
\forum\Jokaste\Includes.h(4): fatal error #1035: Can't find include file "MaxStruct.h".

This one ?
http://download.xnview.com/GflSDK-win.zip
May the source be with you

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #7 on: June 13, 2018, 11:19:56 pm »
Yes.
I join all the workspace except ZipLibrary (I don't use it).
Kenavo

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1937
    • http://www.smorgasbordet.com
Re: Internal error
« Reply #8 on: June 14, 2018, 07:55:17 pm »
The only bad message I have during compiling are :
Writing debug information
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfl.lib(libgfl340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
POLINK: warning: Unrecognized signature of debug symbols in object 'libgfle.lib(libgfle340.dll)'; ignored.
Compacting debug information
I have looked at the lib files, like libgfle.lib, and there is no useful debug info to be found. Only info about which Microsoft tool was used to create these files. This is enough to fool the linker into thinking there is some debug info to use, but there isn't.

Since Microsoft CodeView debug info was removed in Pelles C version 9.0, you get warnings about "Unrecognized signature of debug symbols". Again, this info only names the Microsoft tools used, so nothing would really change even if CodeView debug info was still supported.

If you don't compile any of your own source code with (Pelles C) debug info, it's possible the whole debug info area is empty. This could explain why you have problems loading the debug info. If so, I'm not going to do anything about it since this case is too uncommon.
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1937
    • http://www.smorgasbordet.com
Re: Internal error
« Reply #9 on: June 14, 2018, 08:13:51 pm »
I set /MT too, for __cpuid
About this:

There is a check in CpuArch.c
Code: [Select]
#if !defined(USE_ASM) && _MSC_VER >= 1500
#include <intrin.h>
#endif
which must be changed.

For compatibility reasons (which may change in the future), Pelles C will report version 1100 for _MSC_VER when the /Ze option is used. The file intrin.h will never be included unless this is changed.

Not sure this is the best way, but maybe something like this:
Code: [Select]
#if !defined(USE_ASM) && (_MSC_VER >= 1500 || defined(__POCC__))
#include <intrin.h>
#endif


/Pelle

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #10 on: June 14, 2018, 08:46:23 pm »
Quote
If you don't compile any of your own source code with (Pelles C) debug info, it's possible the whole debug info area is empty. This could explain why you have problems loading the debug info. If so, I'm not going to do anything about it since this case is too uncommon.


There are only assembler files that I don't compile with debug info because I know they are good.

Quote
For compatibility reasons (which may change in the future), Pelles C will report version 1100 for _MSC_VER when the /Ze option is used. The file intrin.h will never be included unless this is changed.

Ok I will do that.

I make the test and I get you the result

Thanks.
« Last Edit: June 16, 2018, 06:59:34 am by Jokaste »
Kenavo

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #11 on: June 16, 2018, 07:02:07 am »
All my files are compiles with Pelles C and PoAsm.
I have found the problem.
Into my project ther are C and ASM files.
They all are compiled using DEBUG directives
This kind of project can't be used into the debugger.


If I replace ASM files with C files I can use the debugger
Kenavo

Offline Jokaste

  • Member
  • *
  • Posts: 118
  • Never be pleased, always improve.
    • ImgTools
Re: Internal error
« Reply #12 on: June 16, 2018, 03:34:46 pm »
The goal of this project is to display asteroids orbits. See the graph atteched to this post. I must create bitmaps of 7 000 x 7 000 pixels! My pc only has 2Gb of RAM! I need the program is fast and don't consume too much memory.
Kenavo

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1937
    • http://www.smorgasbordet.com
Re: Internal error
« Reply #13 on: June 16, 2018, 03:38:32 pm »
All my files are compiles with Pelles C and PoAsm.
I have found the problem.
Into my project ther are C and ASM files.
They all are compiled using DEBUG directives
This kind of project can't be used into the debugger.

If I replace ASM files with C files I can use the debugger
Not sure what you mean. Debugging ASM files, C files, and a mix of them in a project works fine here. There must be more to this story...
/Pelle

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1689
Re: Internal error
« Reply #14 on: June 16, 2018, 04:20:53 pm »
Here are those problematic exe&dbg files only.
It can't load debug info.
May the source be with you