Bug 58322 - build failure with emutls
Summary: build failure with emutls
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Build ()
Version: unspecified
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-07-23 14:14 UTC by Robert Nagy
Modified: 2017-08-31 14:28 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 58322 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Robert Nagy 2017-07-23 14:14:36 UTC

Mono fails to build with both gcc and clang if using emutls.

/usr/bin/libtool  --tag=CC   --mode=link cc -I../.. -I../../eglib/src -I../../eglib/src    -fvisibility=hidden -O2 -pipe -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Wno-format-zero-length -mno-tls-direct-seg-refs -Werror-implicit-function-declaration  -export-dynamic    -L/usr/local/lib -pthread -o mono-sgen mono_sgen-main-sgen.o libmini-static.la ../../mono/metadata/libmonoruntimesgen-static.la ../../mono/sgen/libmonosgen-static.la ../../mono/utils/libmonoutils.la -L../../eglib/src -leglib -lm /usr/local/lib/libiconv.so.6.0 -L../../eglib/src -leglib -lm   /usr/local/lib/libiconv.so.6.0 -lm  -lm   -pthread                
libtool: link: cc -o mono-sgen -pthread -I../.. -I../../eglib/src -I../../eglib/src -fvisibility=hidden -O2 -pipe -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Wno-format-zero-length -mno-tls-direct-seg-refs -Werror-implicit-function-declaration -Wl,-E mono_sgen-main-sgen.o /usr/ports/pobj/mono- /usr/ports/pobj/mono- /usr/ports/pobj/mono- /usr/ports/pobj/mono- /usr/ports/pobj/mono- -L.libs -lm -liconv /usr/ports/pobj/mono- -Wl,-rpath-link,/usr/local/lib                                                                             
/usr/ports/pobj/mono- In function `emit_trampoline_full':                                                                                 
/usr/ports/pobj/mono- warning: warning: strcpy() is almost always misused, please use strlcpy()                                                                                
/usr/ports/pobj/mono- In function `emit_info_symbol':                                                                                     
/usr/ports/pobj/mono- warning: warning: sprintf() is often misused, please use snprintf()                                                                                       
/usr/ports/pobj/mono- In function `monoeg_g_sprintf':                                                                                                         
/usr/ports/pobj/mono- warning: warning: vsprintf() is often misused, please use vsnprintf()                                                                                             
/usr/ports/pobj/mono- In function `dllmap_start':                                                                
/usr/ports/pobj/mono- warning: warning: strcat() is almost always misused, please use strlcat()                                                                              
/usr/ports/pobj/mono- In function `ipc_connect':                                                                      
/usr/ports/pobj/mono- warning: warning: stpcpy() is dangerous; do not use it                                                                                                      
/usr/ports/pobj/mono- In function `mono_tls_init_gc_keys':                                                                                                       
/usr/ports/pobj/mono- undefined reference to `mono_tls_sgen_thread_info'                                                                                                           
/usr/ports/pobj/mono- In function `mono_tls_init_runtime_keys':                                                                                                  
/usr/ports/pobj/mono- undefined reference to `mono_tls_thread'    
/usr/ports/pobj/mono- undefined reference to `mono_tls_jit_tls'   
/usr/ports/pobj/mono- undefined reference to `mono_tls_domain'    
/usr/ports/pobj/mono- undefined reference to `mono_tls_lmf'       
/usr/ports/pobj/mono- undefined reference to `mono_tls_lmf_addr'