Hello. I am trying to compile under ArchLinux, but I run into some errors. After upgrading my flex to the git version, the first error was resolved. However, later in the compilation process I am running into some errors. See the attached output (starting from the beginning of the error)
thanks for your interest in the stm8-binutils project.
It's a known issue with gcc 6.3.x colliding with min max macros. Just remove the "#include <algorithm>" line in stm8-tdep.c
You might also want to comment the lines around 1100 preventing proper stack unwinding on 64 bit hosts. You will get a warning in gdb "Target-supplied registers are not supported by the current architecture" but just ignore it...
// if (tdesc_data != NULL)
// tdesc_use_registers (gdbarch, tdesc, tdesc_data);
A new release will be out soon with these patches included.
Best regards,
Ake
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. I've seen you've already uploaded a new version while I am reading this. Now I am running into some problems with libguile. I guess running Arch has me on some newer library versions that breaks stuff.
Underscore decorations of function calls in sdcc were removed because of symbol lookup problems in gdb. This is a problem with some library functions written in assembler where function name decroations are hardcoded. A new release with these decorations added back to sdcc will be released soon.
Linking with the following stm8 libraries will fail with "?ASlink-Warning-Undefined Global 'namexxx' referenced by module 'xxx'.
Post questions bugs etc here. Eventually we might move discussions to a
web based system.
In the meanwhile, post bug reports, questions and other requests here.
/Ake
Hello. I am trying to compile under ArchLinux, but I run into some errors. After upgrading my flex to the git version, the first error was resolved. However, later in the compilation process I am running into some errors. See the attached output (starting from the beginning of the error)
Hi,
thanks for your interest in the stm8-binutils project.
It's a known issue with gcc 6.3.x colliding with min max macros. Just remove the "#include <algorithm>" line in stm8-tdep.c
You might also want to comment the lines around 1100 preventing proper stack unwinding on 64 bit hosts. You will get a warning in gdb "Target-supplied registers are not supported by the current architecture" but just ignore it...
// if (tdesc_data != NULL)
// tdesc_use_registers (gdbarch, tdesc, tdesc_data);
A new release will be out soon with these patches included.
Best regards,
Ake
Thanks. I've seen you've already uploaded a new version while I am reading this. Now I am running into some problems with libguile. I guess running Arch has me on some newer library versions that breaks stuff.
Seems to be some problems with newer versions of guile.
https://sourceware.org/bugzilla/show_bug.cgi?id=21104
Try --without-guile
/Ake
The build completes now. Thank you
André
Underscore decorations of function calls in sdcc were removed because of symbol lookup problems in gdb. This is a problem with some library functions written in assembler where function name decroations are hardcoded. A new release with these decorations added back to sdcc will be released soon.
Linking with the following stm8 libraries will fail with "?ASlink-Warning-Undefined Global 'namexxx' referenced by module 'xxx'.
./device/lib/stm8/heap.s
./device/lib/stm8/memcpy.s
./device/lib/stm8/setjmp.s
./device/lib/stm8/strcmp.s
./device/lib/stm8/strcpy.s
./device/lib/stm8/divsint.s
./device/lib/stm8/divslong.s
./device/lib/stm8/divulong.s
./device/lib/stm8/fastlongneg.s
./device/lib/stm8/modsint.s
./device/lib/stm8/modslong.s
./device/lib/stm8/modulong.s
./device/lib/stm8/mulint.s
./device/lib/stm8/mullong.s
./device/lib/stm8/mulsint2slong.s
/Ake