View Issue Details

IDProjectCategoryView StatusLast Update
0034901FPCCompilerpublic2019-01-19 19:39
ReporterBenjamin Rosseaux Assigned ToFlorian  
Status resolvedResolutionfixed 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0034901: "Error: unrecognized option -mtls-dialect=gnu" when fpc is built with -dtls_threadvars
Assembler messages:
Error: unrecognized option -mtls-dialect=gnu
system.pp(629) Error: Error while assembling exitcode 1
system.pp(629) Fatal: There were 2 errors compiling module, stopping

As far i know, -mtls-dialect=gnu is a gcc-option-parameter and not a as-option-parameter. At least even as-version 2.29.1 does not know the -mtls-dialect= parameter, and the doc for the newest version 2.31.1 does also not list this parameter ( ).

Steps To Reproduce
Build a fpc crosscompiler for arm-linux for example with

make crossinstall OS_TARGET=linux CPU_TARGET=arm CROSSBINDIR="f:\FPC\binutils\arm-linux" OPT="-dFPC_ARMEL -dFPC_ABI_EABI -Aas -dtls_threadvars -O4 -dSPILLING_NEW" CROSSOPT="-XParm-linux- -XX -CpARMV5TE -CaEABI -CfSOFT -darm -dFPC_ARMEL -dFPC_ABI_EABI -O3 -Cr- -CR- -Ct- -Co- -CO- -C3- -Aas -dtls_threadvars -O4 -dSPILLING_NEW"
Additional InformationPossible solution patch is attached
TagsNo tags attached.
Fixed in Revision40920
Attached Files


Benjamin Rosseaux

2019-01-19 00:47


agarmgas.pas.patch (587 bytes)   
Index: compiler/arm/agarmgas.pas
--- compiler/arm/agarmgas.pas	(revision 40898)
+++ compiler/arm/agarmgas.pas	(working copy)
@@ -102,8 +102,6 @@
     function TArmGNUAssembler.MakeCmdLine: TCmdStr;
         result:=inherited MakeCmdLine;
-        if tf_section_threadvars in target_info.flags then
-          result:='-mtls-dialect=gnu '+result;
         if (current_settings.fputype = fpu_soft) then
           result:='-mfpu=softvfp '+result;
         if (current_settings.fputype = fpu_vfpv2) then
agarmgas.pas.patch (587 bytes)   


2019-01-19 19:39

administrator   ~0113493

Removed it, somehow I forgot about to commit it, my local repository didn't have it anymore.

Issue History

Date Modified Username Field Change
2019-01-19 00:47 Benjamin Rosseaux New Issue
2019-01-19 00:47 Benjamin Rosseaux File Added: agarmgas.pas.patch
2019-01-19 19:39 Florian Fixed in Revision => 40920
2019-01-19 19:39 Florian Note Added: 0113493
2019-01-19 19:39 Florian Status new => resolved
2019-01-19 19:39 Florian Fixed in Version => 3.3.1
2019-01-19 19:39 Florian Resolution open => fixed
2019-01-19 19:39 Florian Assigned To => Florian