News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

cyglto_plugin.dll not found

Started by lbertolotti, July 18, 2018, 05:36:40 PM

Previous topic - Next topic

lbertolotti

I keep getting this error when using Cygwin GCC:
Build messages:

||=== Build: Debug in cygwin_ex (compiler: Cygwin GCC) ===|
||error: -fuse-linker-plugin, but cyglto_plugin.dll not found|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|


Has anyone managed to solve this?
Languages: C/C++, SQL, HTML, VB, Python and R

stahta01

Post the build log instead of the build messages and someone might spot the error.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

lbertolotti

Build log:

Cleaned "cygwin_ex - Debug"

-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------

g++.exe -Wall -fexceptions -g -I../../../../cygwin64/lib/gcc/x86_64-pc-cygwin/6.4.0/include -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe  -o bin/Debug/cygwin_ex.exe obj/Debug/main.o   
g++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))

Languages: C/C++, SQL, HTML, VB, Python and R

stahta01

I did not see any clear cause in Build log; Installing 64 bit Cygwin GCC to see if it works for me or it errors out.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01


Cleaned "testcyg - Debug"

-------------- Build: Debug in testcyg (compiler: Cygwin GCC)---------------

g++.exe -Wall -fexceptions -g  -c C:/Users/stahta01/devel/open_source_code/no_version_control/test/testcyg/main.cpp -o obj/Debug/main.o
g++.exe  -o bin/Debug/testcyg.exe obj/Debug/main.o   
Output file is bin\Debug\testcyg.exe with size 218.25 KB


Could not duplicate the problem:

Using Code::Blocks 17.12 under Windows 7 64 bit.
g++ (GCC) 7.3.0

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

I would try removing "-I../../../../cygwin64/lib/gcc/x86_64-pc-cygwin/6.4.0/include" and see if the error goes away.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

lbertolotti

Doing that generates:

Build log:



-------------- Clean: Debug in cygwin_ex (compiler: Cygwin GCC)---------------

Cleaned "cygwin_ex - Debug"

-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------

g++.exe -Wall -fexceptions -g  -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe  -o bin/Debug/cygwin_ex.exe obj/Debug/main.o   
In file included from /usr/include/stdio.h:35:0,
                 from C:/Users/Lucas/Desktop/cygwin_ex/main.cpp:1:
/usr/include/sys/cdefs.h:45:10: fatal error: stddef.h: No such file or directory
#include <stddef.h>
          ^~~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))


Languages: C/C++, SQL, HTML, VB, Python and R

lbertolotti

Ok, that means it was corrupt/wrong files:
Cygwin 2.10.0:
Build log:


-------------- Clean: Debug in cygwin_ex (compiler: Cygwin GCC)---------------

Cleaned "cygwin_ex - Debug"

-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------

g++.exe -Wall -fexceptions -g -I../../../../cygwin64/usr/include/gsl -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe  -o bin/Debug/cygwin_ex.exe obj/Debug/main.o  -lgsl 
Output file is bin\Debug\cygwin_ex.exe with size 163.73 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))

Languages: C/C++, SQL, HTML, VB, Python and R

lbertolotti

Do you know how cb_console_runner uses cygwin1.dll?
Languages: C/C++, SQL, HTML, VB, Python and R

stahta01

Quote from: lbertolotti on July 20, 2018, 06:03:08 PM
Do you know how cb_console_runner uses cygwin1.dll?

That question makes no sense.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]