Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 03:44:53 +0000



cannot find -lpthread collect2.exe: error: ld returned 1 exit status

View Count: 2295

[2016-08-31 15:36:51]
msmith - Posts: 2
I am new to Sierra Chart. I've installed the compiler twice, and I get this message when I try to compile:

-- Starting build of Custom Studies Source files: TEST.cpp. -- 11:28:25

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\TEST.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -std=gnu++11 -o "C:\SierraChart\Data\TEST.dll"

c:/sierrachart/cppcompiler/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
-- End of Build -- 11:28:28

Any ideas?
[2016-08-31 18:04:37]
Sierra Chart Engineering - Posts: 104368
We are not sure about this.

Normally we would recommend installing the compiler again but you said you have done that.

The other possibility is to use Visual C++:
http://www.sierrachart.com/index.php?page=doc/VCExpress.php
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-08-31 18:22:34]
Sierra Chart Engineering - Posts: 104368
We are able to reproduce the problem. We need some time to look into this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-08-31 22:47:47]
Sierra Chart Engineering - Posts: 104368
We are going to use a new compiler. We will use the Microsoft Visual C++ compiler. Just give us a couple of days to get this set up.

Install it using this link:
http://go.microsoft.com/fwlink/?LinkId=691126

Use the default installation.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-08-31 23:16:15]
i960 - Posts: 360
Wait, before just switching compilers entirely (which might be harder than you think for some people), why not figure out why ld cannot simply find libpthread? This isn't hard to debug.

Use ld with --verbose for starters so one can see what it's using for it's library path - because either the libpath is wrong or libpthread isn't correctly installed.
[2016-08-31 23:19:41]
Sierra Chart Engineering - Posts: 104368
It will not be difficult for people to use because we are just using the low-level Visual C++ commandline compiler. That is what that installer installs.

All of the details will be handled in the background and use the same user interface through the Build Custom Studies DLL window.

There is no integrated development environment.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-08-31 23:21:14
[2016-09-01 13:38:40]
msmith - Posts: 2
So, I need to the wait until an update is made in Sierra Chart before the Microsoft Visual C++ compiler will work, correct?

Thanks!
[2016-09-01 16:26:21]
Sierra Chart Engineering - Posts: 104368
Yes this is correct.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-09-03 00:46:15]
Sierra Chart Engineering - Posts: 104368
For the solution to this problem, refer to this post here:
NOTICE: New Custom Studies DLL Compiler/Solution to Compile Error Issue
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-09-08 21:30:41]
msmith1 - Posts: 6
Works, thank you!
[2016-09-08 22:55:44]
Sierra Chart Engineering - Posts: 104368
Good.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-10-07 03:14:50]
User35525 - Posts: 180
I've seen a number of people with issues with the new Microsoft Visual C++ compiler in the past 5 weeks (since 08/31), and am wondering if i960 (post #5) is correct.

I've seen more of these compiler issues that support now needs to help with: one that just gave up and said he was taking his issue to Youtube; another was able to fix it with some pragma changes; another saw an issue with user contributed studies; a couple others --me included -- had compilation issues in Wine.

I'm not saying things are worse, and maybe these issues aren't positively correlated to the new compiler, but maybe compilation could be improved. Every time -- and I mean "Every" -- I've seen Microsoft technology used, things "get worse". The Microsoft guys just can't create anything without a gazillion bugs/annoyances.

Have you considered Intel's optimizing C++ compiler?
https://software.intel.com/sites/default/files/managed/82/18/PSXE2017_Release_Notes_en_US_Lin_Win.pdf
https://software.intel.com/en-us/node/682940

I presume it could "portably" be placed anywhere (/opt/intel/, $HOME/opt/intel, .../SierraChart/ACS_Source/intel/) and the location of compiler components easily specified:
https://software.intel.com/en-us/node/682328

The license is free to open source contributors; I see DTC is open, but maybe not "open source"; surely that could be changed, or the compilation/API/DTC part of SC could be open sourced:
https://software.intel.com/en-us/qualify-for-free-software
https://software.intel.com/en-us/blogs/2013/01/03/free-intel-c-compilers-for-students-and-related-parallel-programming-tools
[2016-10-07 03:39:41]
ganz - Posts: 1048
User35525

Intel's compiler is extremely good, but did you see it?

4 System Requirements
4.1 Processor Requirements
Systems based on Intel® 64 architecture:
 Intel® Core™ processor family or higher
 Intel® Xeon® E5 v5 processor families recommended
 Intel® Xeon® E7 v5 processor families recommended
NOTE: It is assumed that the processors listed above are configured into homogeneous
clusters. For Windows* OS, only processors based on the Intel® 64 architecture are supported.

IA-32 support has been removed from the Intel® MPI Library and Intel® Trace Analyzer and
Collector. Installation on IA-32 hosts is no longer supported by any components. Runtime
libraries other than the Intel® MPI Library are still supported on IA-32 hosts.

On Microsoft Windows* OS, the Intel® C/C++ Compiler and Intel® Visual Fortran Compiler
require a version of Microsoft Visual Studio* to be installed. The following versions are
currently supported:
 Microsoft Visual Studio* 2015, 2013, 2012
 Microsoft Visual Studio Express* (only for command line compilation)

being non 64 bit is the another issue from SC Team "principles" :)
Date Time Of Last Edit: 2016-10-07 03:41:13
[2016-10-07 04:12:31]
Sierra Chart Engineering - Posts: 104368
We understand what is said in post #12, and we are implementing a solution to this at this time.

We will prioritize it and hope to get it out in about two weeks. This is remote compiling where the compiling will be done on our server.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-10-07 05:19:00]
User35525 - Posts: 180
ganz
Grrr, the devil's in the details... This page sounded nice: https://software.intel.com/en-us/c-compilers/iss/details#
Too bad it needs Visual Studio and 64-bit Intel architecture if with Windows.

Sierra
Looking forward to remote compiling and then not worrying about cross-compilation. :-)
Date Time Of Last Edit: 2016-10-07 05:26:31

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account