Bug#995050: ecere-sdk FTBFS with gcc 10

2021-09-25 Thread Jérôme St-Louis

Thank you Adrian for reporting this.

We have fixes for this upstream:

commit *c94efd6390599a4a291b7fe8b3d2d62699247380*
Author: Jerome St-Louis 
Date:   Sun Sep 6 03:35:01 2020 -0400

    compiler/bootstrap: Updated for GCC 10 Common fixes

commit *7d835dd5c6e17ad1626ec7b6f1725e0f7f8a9371*
Author: Rejean Loyer 
Date:   Mon Aug 3 13:18:51 2020 -0400

    compiler/ecs: add -no-attribute-common for targetting wasm. 
workaround "Common symbols are not yet implemented for Wasm" message 
coming from emscripten-releases\llvm-project\llvm\li

b\MC\MCWasmStreamer.cpp's MCWasmStreamer::emitCommonSymbol function.

commit *ca58cfa4e26e03271e32ee6aae3206956fdc26fd*
Author: Jerome St-Louis 
Date:   Wed May 20 07:25:49 2020 -0400

    compiler/libec: Fixed multiple definitions issues breaking on GCC 
10 without -fcommon


There is also a more recent commit fixes for GCC 11 which will surely 
show up sooner or later:


commit *53ec01de1c42cf342a35dc125a4fef01ffb5fced* (origin/master, master)
Author: Jerome St-Louis 
Date:   Thu Aug 5 21:07:56 2021 -0400

    compiler/libec/lexer.l: Initial fix for failure to build on GCC 11
    - bootstrap updated
    - # 0 instead of # 1 generated by preprocessor triggered problem in 
lexer's preprocessor()
    - NOTE: This was likely resulting in declMode, defaultDeclMode and 
structDeclMode not being set properly

    - It may also be related to #1135

There are other important fixes on master since 0.44.15, including fixes 
for #898832 .


In general, the master branch of our repo is currently (HEAD: 
53ec01de1c42cf342a35dc125a4fef01ffb5fced) very conservatively stable, 
and would be a good candidate for a patch 0.44.15 release.


On our side we are overdue for a new release, but we hope to bring in a 
lot of new improvements and functionality for the next 0.44.16 release, 
which is proving difficult to complete given that our development branch 
(/lates//t/) is now more than 1200 commits ahead of master. We are also 
quite busy with our geospatial software endeavours (making use of the 
Ecere SDK).


If someone is willing to help with the Debian packaging / update to 
close these bugs, myself and possibly others in our community will be 
more than happy to provide assistance and otherwise contribute to the 
effort.


Thank you!

Best regards,

-Jerome

On 9/25/21 6:27 AM, Adrian Bunk wrote:

Source: ecere-sdk
Version: 0.44.15-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=ecere-sdk=0.44.15-1%2Bb4

...
gcc -Wl,-z,relro  -Wl,--no-undefined   -Wl,--no-undefined   -Wl,--no-undefined  
 -Wl,--no-undefined  -L../ecere/obj/bootstrap.linux 
-L../libec/obj/bootstrap.linux obj/bootstrap.linux/ecp.o 
obj/bootstrap.linux/ecp.main.o-lecereBootstrap -lecBootstrap -lm -ldl -o 
obj/bootstrap.linux/ecp
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:52:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Eof'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:388: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:54:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:384: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:56:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Read'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:390: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:58:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:396: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:60:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:392: first 
defined here
...
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(shortcuts.o):./compiler/bootstrap/libec/bootstrap/shortcuts.c:298:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:392: first 
defined here
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(shortcuts.o):./compiler/bootstrap/libec/bootstrap/shortcuts.c:300:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:396: first 
defined here
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(type.o):./compiler/bootstrap/libec/bootstrap/type.c:392:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 

Bug#995050: ecere-sdk FTBFS with gcc 10

2021-09-25 Thread Adrian Bunk
Source: ecere-sdk
Version: 0.44.15-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=ecere-sdk=0.44.15-1%2Bb4

...
gcc -Wl,-z,relro  -Wl,--no-undefined   -Wl,--no-undefined   -Wl,--no-undefined  
 -Wl,--no-undefined  -L../ecere/obj/bootstrap.linux 
-L../libec/obj/bootstrap.linux obj/bootstrap.linux/ecp.o 
obj/bootstrap.linux/ecp.main.o-lecereBootstrap -lecBootstrap -lm -ldl -o 
obj/bootstrap.linux/ecp
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:52:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Eof'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:388: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:54:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:384: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:56:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Read'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:390: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:58:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:396: first 
defined here
/usr/bin/ld: 
obj/bootstrap.linux/ecp.main.o:./compiler/bootstrap/ecp/bootstrap/ecp.main.c:60:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:392: first 
defined here
...
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(shortcuts.o):./compiler/bootstrap/libec/bootstrap/shortcuts.c:298:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:392: first 
defined here
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(shortcuts.o):./compiler/bootstrap/libec/bootstrap/shortcuts.c:300:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:396: first 
defined here
/usr/bin/ld: 
../libec/obj/bootstrap.linux/libecBootstrap.a(type.o):./compiler/bootstrap/libec/bootstrap/type.c:392:
 multiple definition of 
`__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek'; 
obj/bootstrap.linux/ecp.o:./compiler/bootstrap/ecp/bootstrap/ecp.c:396: first 
defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:101: obj/bootstrap.linux/ecp] Error 1