Collect2 exe error ld returned 1 exit status ошибка компиляции

The ld returned 1 exit status error is the consequence of previous errors. In your example, there is an earlier error—undefined reference to 'clrscr'—and this is the real one. The exit status error just signals that the linking step in the build process encountered some errors. Normally, exit status 0 means success, and exit status > 0 means errors.

When you build your program, multiple tools may be run as separate steps to create the final executable. In your case, one of those tools is ld, which first reports the error it found (clrscr reference missing), and then it returns the exit status. Since the exit status is > 0, it means an error and is reported.

In many cases, tools return the number of errors they encountered as the exit status. So if the ld tool finds two errors, its exit status would be 2.

Offline

Зарегистрирован: 08.09.2016

Образовалась одна проблема:

Если в коде использовать процедуру Tin();, то возникает ошибка:

C:UsersFDE7~1AppDataLocalTempccYndXXD.s: Assembler messages:

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:157: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:196: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:198: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:201: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:204: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:207: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:210: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:213: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:218: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:221: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:254: Error: unknown opcode `svprt'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:258: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:262: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:263: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:265: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:266: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:268: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:269: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:271: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:272: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:274: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:275: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:277: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:278: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:281: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:283: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:285: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:286: Error: unknown opcode `svprt'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:288: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:320: Error: unknown opcode `svprt'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:324: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:327: Error: unknown opcode `delay1'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:329: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:330: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:332: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:333: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:335: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:336: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:338: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:339: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:341: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:342: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:344: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:345: Error: unknown opcode `delay3'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:347: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:350: Error: unknown opcode `delay2'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:352: Error: unknown opcode `o1bs'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:353: Error: unknown opcode `svprt'

C:UsersFDE7~1AppDataLocalTempccYndXXD.s:355: Error: unknown opcode `o1bs'

lto-wrapper: C:UsersМихаAppDataLocalArduino15packagesarduinotoolsavr-gcc4.9.2-atmel3.5.3-arduino2/bin/avr-gcc returned 1 exit status

c:/users/миха/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Ошибка компиляции.

Если же закомментить вызов данной процедуры, то все нормально компилируется.

arduino uno(CH340G), Ide 1.6.7, Win 10

#include <SoftwareSerial.h>
#include <TVout.h>
#include <fontALL.h>

SoftwareSerial mySerial(10, 11); // RX, TX

TVout TV;

/*
  struct weather_structure {
  const char* descript;
  float temp;
  float pressureHPA;
  float pressureMMHG;
  byte  humidity;
  float speed;
  float deg;
  };
*/

//weather_structure weather;

String weather[7];
String Data;
char DataChar;
bool DataBool = false;
bool writer = false;

void Tin() {
  /*
    Data = weather[i];
    for (int z = 0; z < Data.length(); z++)
    TV.print(Data[z]);
  */
}


void writeData() {
  if (writer == false) {
    Serial.println(Data);
    writer = true;

    TV.clear_screen();
    Serial.println("Weather");
    TV.select_font(font8x8);
    TV.println("Weather");
    TV.select_font(font4x6);
    TV.delay(2000);
    TV.clear_screen();


    Serial.print("description: ");
    Serial.println(weather[0]);
    TV.print("description: ");
    Tin();//ТОТ САМЫЙ ВЫЗОВ
    TV.println();


    Serial.print("temp: ");
    Serial.print(weather[1]);
    Serial.println(" celsius");
    TV.print("temp: ");
    //TVprint(1);
    TV.println(" celsius");


    Serial.print("humidity: ");
    Serial.println(weather[2]);
    TV.print("humidity: ");
    //TVprintln(weather[2]);


    Serial.print("pressure: ");
    Serial.print(weather[3]);
    Serial.print(" hPa or ");
    Serial.print(weather[4]);
    Serial.println(" mmHg");
    TV.print("pressure: ");
    //TVprint(weather[3]);
    TV.print(" hPa or ");
    //TVprint(weather[4]);
    TV.println(" mmHg");


    Serial.print("wind's speed: ");
    Serial.print(weather[5]);
    Serial.println(" kmph");
    TV.print("wind's speed: ");
    //TVprint(weather[5]);
    TV.println(" kmph");


    Serial.print("wind's direction: ");
    Serial.print(weather[6]);
    Serial.println(" degrees");
    TV.print("wind's direction: ");
    //TVprint(weather[6]);
    TV.println(" degrees");
  }
}


void setup() {
  // Open serial communications and wait for port to open:
  delay(1000);
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);

  TV.begin(NTSC, 120, 96);
  TV.select_font(font8x8);
  TV.println("Weather Loading");
  TV.select_font(font4x6);
}

void loop() { // run over and over
  if (mySerial.available()) {
    while (DataChar != '#') {
      DataChar = (char)mySerial.read();
      if (DataBool == true)
        Data = Data + DataChar;
      else if (DataChar == '!')
        DataBool = true;
    }
    int j = 2;
    for (int i = 0; i < 7; i++) {
      while (Data[j] != '&') {
        weather[i] = weather[i] + Data[j];
        j++;
      }
      j++;
    }
    writeData();
  }

}

Программа получает инфу с esp через softSerial, разбирает её и должна вывести на монитор

Why is the collect error ld returned exit status happeningThe collect2: error: ld returned 1 exit status error message is easily fixed by removing an existing executable file inside your document. It is possible to remove the existing file that is running in the background by accessing the thread tools inside your system. The complete process is easy to do and only consists of a couple of steps.

If you want to become an expert at fixing this undefined reference in your program, keep reading this complete guide that contains all the details.

Contents

  • Why Is the collect2: Error: Ld Returned 1 Exit Status Happening?
  • How To Fix This Error Inside Your Program
    • – Listing All the Possible Methods for Debugging This Error
    • – A Common Error in the Gem Native Extension
    • – Using the Debugging Library Syntax for the collect2 Error
    • – Facing This Error in Dev C++
  • FAQs
    • – What Is collect2 Exe?
    • – What Does Error 1d Returned 1 Exit Status Mean?
    • – How To Combine Two Files in C++?
  • Final Conclusion and Further Notes

Why Is the collect2: Error: Ld Returned 1 Exit Status Happening?

This specific collect2: error: ld returned 1 exit status error message appears due to previous errors in your document, especially when working with C++. It represents one of the most common errors web developers face but it is also one of the easiest ones to fix. In other words, this error is there to indicate that the linking step in the process of creating faced certain problems.

This is going to create an undefined reference because the exit status is more than the value of zero. You can run multiple steps to create a search thread that is going to eliminate the problem. We are going to list and explain the various methods you can use to fix this error in your document. Continue reading the following section of this article to learn more about the debugging process.

How To Fix This Error Inside Your Program

The easiest and most common method of fixing this error requires you to completely delete the existing executable file that is running in the background of your program. However, as is the case with most other bugs, this solution might not work for everyone and every single time. Lucky for you, programming languages allow users to fix an error in multiple ways, in case any of the previous ones does not work.

This is called a process of debugging, where you are trying to completely remove an error you have encountered in your program. No matter how serious the error may be, the debugging process always starts with an inspection of the problem. After that, locate where the error is coming from and apply all the necessary changes to the code.

Let us now learn something more about the ways of debugging this error.

– Listing All the Possible Methods for Debugging This Error

In this part of the guide, we are going to list the possible methods for debugging and also briefly explain their function. Let us take a deep dive at the following list that shows the most common ways of fixing this error:

  • Deleting the existing executable file inside your program: The file may have failed because it is locked in a different location, such as an antivirus.
  • It is possible to try and rename that specific executable file in your program. Then, you are supposed to restructure the contents, and you are done. Renaming the file helps the program to create an additional executable file.
  • In case none of this works, you should try restarting your computer and redo the first step. This solution shows that debugging does not always have to be complicated.

In theory, this is all it takes to completely remove this error from your syntax. However, it is always best to learn from examples. That is why in the following section of this article, we are going to show you example codes to easily fix this error.

– A Common Error in the Gem Native Extension

Many web developers face certain problems once working with extensions for their browsers. One such bug appears when you are trying to install a gem inside the native extension on your browser.

The reason why we are explaining the native extension is that the collect2 error usually appears during the process of installing a gem. To better understand what this means, you should take a look at the complete syntax.

Take a closer look at the following code that is going to initiate the collect2 error:

Building a proper native extension.  This might take a while…

ERROR:  Error installing json:
ERROR: Failed to generate gem native extension.
/home/foobar/.rvm/ruby-2.4.7/bin/ruby -r ./siteconf134617815-3312439-1i9lahdrj.rb extconf.rb
creating Makefile
make “DESTDIR=” clean
make “DESTDIR=”
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [generator.so] Error 1
make failed, exit code 2

Gem files will remain installed in /home/foobar/.rvm/gems/ruby-2.4.7/gems/json-1.8.3 for inspection.

Results logged to /home/foobar/.rvm/gems/ruby-2.4.7/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out

As you can see, this is the complete code for the collect2 error inside your program. There is certainly something you can do to the syntax to debug this error and make the program functional again. Indeed, we are going to change some things in the library and this is going to completely remove the error. Take a look at the following section of this article to learn more.

– Using the Debugging Library Syntax for the collect2 Error

As previously explained, you are supposed to change certain things inside the library to fix this error. For this, you are going to need the gmp function to locate the correct files and return the incorrect status. Open the code with the cache search gmp function and include all the additional tools inside.

The following syntax shows how to properly use the gmp function to fix this error:

$ apt-cache search gmp
libgmp-dev – Multiprecision arithmetic library developers tools
libgmp10 – Multiprecision arithmetic library
libgmp10-doc – Multiprecision arithmetic library example code
libgmp3-dev – Multiprecision arithmetic library developers tools
libgmpxx4ldbl – Multiprecision arithmetic library (C++ bindings)
[…]

Be aware that the syntax may be subject to changes. As this example shows, the annoying collect2 error does not have to be complicated to locate and fix. However, pay attention to the exact location of the gmp function because this may sometimes be the difference between a correctly and incorrectly executed code. Let us now learn other things about this common error in your program.

– Facing This Error in Dev C++

As previously explained, the collect2 error may usually appear once working with Dev C++. It refers to a specific reference to a name where the linker cannot define the way it looks based on the object files. This also applies to all the libraries that make up your document.

Lucky for you, fixing the error is done in the same manner as previously taught. All you have to do is to follow the steps discussed in this article and the problem is going to disappear. To learn more about this error, continue reading the FAQ section of this article.

FAQs

Here are the answers to some of your questions regarding this error.

– What Is collect2 Exe?

Collect2 represents a utility that web developers use to arrange certain initialization functions during the start time. In other words, it is used to link the program and the adequate functions, while creating a table inside a temporary file. Then, it is going to create a second link with the program but include a different file.

– What Does Error 1d Returned 1 Exit Status Mean?

The returned 1 status refers to an error in your document that is created due to previous errors. It is used as an indicator to point out that certain linking steps during the building process have bugs. To fix the error, you are supposed to refer to all the previous functions and locate the part of the program that is operating incorrectly.

– How To Combine Two Files in C++?

You can start combining two files in C++ by creating two separate source files on your server. The process of combining two C++ files is important because you can combine two different programs and functions. Since the collect2 error usually appears during this process, it is important to understand how the files are merged together.

There are several steps you are supposed to closely follow, as shown in the following list:

  1. Create two separate C++ source files on your server.
  2. Both files should be saved inside the same location on the server.
  3. Open the Command Prompt tool and run the various commands from your files.
  4. The tool is going to merge the two separate source files together and comply their functions.
  5. Install the C++ Complier Program to run the newly-created file without any bugs.

This is all it takes to create a complex C++ file without facing any collect2 errors in your server. You can use this method for any two C++ files.

This section wraps everything important you were supposed to know about the collect2 error in your document. Let us now summarize the details.

Final Conclusion and Further Notes

This specific exit status error message is easily fixed by removing an existing executable file inside your document. Let us take a deep dive at the following list that contains all the important details from this article:

  • The collect2 error is easily fixed by shutting down a program that is running in the background
  • Web developers usually face this problem once working with Dev C++ and other files
  • The Gem native extension usually displays this error alongside the complete syntax but it can be easily fixed
  • It is important to know the meaning of collect2 to debug the error more efficiently
  • It is possible to merge two C++ source files in five basic steps without caring about this error

How to fix collect error ld returned exit status errorWeb developers are constantly struggling with the collect2 error inside their syntax and are unable to debug it. Lucky for you, now you know all the details to remove this error from your document without affecting the rest of the syntax.

  • Author
  • Recent Posts

Position is Everything

Your Go-To Resource for Learn & Build: CSS,JavaScript,HTML,PHP,C++ and MYSQL. Meet The Team

Position is Everything

На довольно давней версии mingw, имевшейся у меня, получилось сделать вот так — запустив компилятор и линкер раздельно.

PATH %PATH%;d:MinGWx86bin
g++ -fopenmp -c main.cpp -o main.o
g++ -o test.exe main.o -lgomp
pause

Заодно пришлось скачать pthreads для win32, по умолчанию библиотеки (*.a) есть, а dll нет.

И вообще, это зависит от сборки MinGW. На свежих сборках mingw-w64 — как с Win32-, так и с posix-потоками — всё заработало именно по-твоему. И pthreads нашёлся.

PATH %PATH%;d:MinGWi686-5.2.0-win32-dwarf-rt_v4-rev0mingw32bin
g++ -fopenmp main.cpp -o test.exe
pause

Ну и, конечно, ты не указал, ПОЧЕМУ линкер вышел с кодом 1. Но это я уже сам понял, поэкспериментировав.

I decided to try build my NetBurner’s CMake template in NNDK 2.9.x that ships with GCC 8.1.0.

I repeated the steps in the README and suddenly got a strange linker error:

C:/nburn/gcc-m68k/bin/m68k-elf-g++.exe 
--sysroot=C:/nburn/gcc-m68k/bin/../m68k-unknown-elf/sysroot -mcpu=54415 
-gdwarf-2 -falign-functions=4 -ffunction-sections -fmessage-length=0 
-fdata-sections -fno-rtti -DMOD5441X -DMCF5441X -DNBMINGW 
-IC:/nburn/gcc-m68k/m68k-unknown-elf/include      -IC:/nburn/include      
-IC:/nburn/MOD5441X/include     
-IC:/nburn/gcc-m68k/m68k-unknown-elf/include/c++/8.1.0      -O3     -DNDEBUG   
-mcpu=54415 -Wl,-n -TC:/nburn/MOD5441X/lib/MOD5441X.ld         
-Wl,-RC:/nburn/MOD5441X/lib/sys.ld  
"CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/main.cpp.obj" 
"CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/htmldata.cpp.obj"  
-o Release/cmake-netburner-hello-world_0.0.5.elf  
-Wl,-Map=G:/cmake-netburner-hello-world/build_m68k_gcc8/Release/cmake-netburner-hello-world_0.0.5.map  
-Wl,--start-group, C:/nburn/lib/MOD5441X.a C:/nburn/lib/NetBurner.a 
C:/nburn/lib/FatFile.a C:/nburn/lib/StdFFile.a -lstdc++  -Wl,--end-group 
-Wl,--gc-sections
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/bin/ld.exe: cannot find : Invalid argument
collect2.exe: error: ld returned 1 exit status
make.exe[3]: *** [CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/build.make:117: Release/cmake-netburner-hello-world_0.0.5.elf] Error 1
make.exe[3]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe[2]: *** [CMakeFiles/Makefile2:126: CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/all] Error 2
make.exe[2]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/app.dir/rule] Error 2
make.exe[1]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe: *** [Makefile:137: app] Error 2

It says that it can not find nothing:

c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/bin/ld.exe: cannot find : Invalid argument
collect2.exe: error: ld returned 1 exit status

I really don’t understand from that message what is the cause of the error. Is there something expanded to empty string?

Googling didn’t help me because in the majority of cases on StackOverflow were asked simple cases.

-Bstatic and similar flags don’t used for my case.

In the project a custom *.cmake file for NetBurner toolchain is used to configure a build.

It calls the helper function where a linking is defined in the same manner as it done in the original makefiles from NetBurner.

For GCC 5.2.0 it worked, but for GCC 8.1.0 it doesn’t. Why? How to repair my cmake scripts?

Solution

Let’s try to add linker options -t --verbose in that line after the first -Wl, symbols and look at the huge output:

Click to expand

$ cmake --build . --target app -- VERBOSE=1
"C:/Program Files/CMake/bin/cmake.exe" -SG:/cmake-netburner-hello-world -BG:/cmake-netburner-hello-world/build_m68k_gcc8 --check-build-system CMakeFiles/Makefile.cmake 0
C:/nburn/gcc-m68k/bin/make.exe  -f CMakeFiles/Makefile2 app
make.exe[1]: Entering directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
"C:/Program Files/CMake/bin/cmake.exe" -SG:/cmake-netburner-hello-world -BG:/cmake-netburner-hello-world/build_m68k_gcc8 --check-build-system CMakeFiles/Makefile.cmake 0
"C:/Program Files/CMake/bin/cmake.exe" -E cmake_progress_start G:/cmake-netburner-hello-world/build_m68k_gcc8/CMakeFiles 3
C:/nburn/gcc-m68k/bin/make.exe  -f CMakeFiles/Makefile2 CMakeFiles/app.dir/all
make.exe[2]: Entering directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
C:/nburn/gcc-m68k/bin/make.exe  -f CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/build.make CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/depend
make.exe[3]: Entering directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
"C:/Program Files/CMake/bin/cmake.exe" -E cmake_depends "Unix Makefiles" G:/cmake-netburner-hello-world G:/cmake-netburner-hello-world G:/cmake-netburner-hello-world/build_m68k_gcc8 G:/cmake-netburner-hello-world/build_m68k_gcc8 G:/cmake-netburner-hello-world/build_m68k_gcc8/CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/DependInfo.cmake --color=
make.exe[3]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
C:/nburn/gcc-m68k/bin/make.exe  -f CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/build.make CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/build
make.exe[3]: Entering directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
[ 33%] Linking CXX executable Release/cmake-netburner-hello-world_0.0.5.elf
C:/nburn/gcc-m68k/bin/m68k-elf-g++.exe --sysroot=C:/nburn/gcc-m68k/bin/../m68k-unknown-elf/sysroot 
-mcpu=54415 -gdwarf-2 -falign-functions=4 -ffunction-sections -fmessage-length=0 
-fdata-sections -fno-rtti -DMOD5441X -DMCF5441X -DNBMINGW 
-IC:/nburn/gcc-m68k/m68k-unknown-elf/include      -I"C:nburn/include"    
-I"C:nburn/MOD5441X/include"   
-I"C:nburn/gcc-m68k/m68k-unknown-elf/include/c++/8.1.0"    -O3     -DNDEBUG 
-mcpu=54415 -Wl,-t --verbose -Wl,-n -Wl,-TC:/nburn/MOD5441X/lib/MOD5441X.ld 
-Wl,-RC:/nburn/MOD5441X/lib/sys.ld  
-Wl,-Map=G:/cmake-netburner-hello-world/build_m68k_gcc8/Release/cmake-netburner-hello-world_0.0.5.map 
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/main.cpp.obj 
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/htmldata.cpp.obj  
-o Release/cmake-netburner-hello-world_0.0.5.elf -Wl,--gc-sections 
-Wl,--start-group, C:/nburn/lib/MOD5441X.a C:/nburn/lib/NetBurner.a 
C:/nburn/lib/FatFile.a C:/nburn/lib/StdFFile.a -lstdc++ -Wl,--end-group
Using built-in specs.
COLLECT_GCC=C:nburngcc-m68kbinm68k-elf-g++.exe
COLLECT_LTO_WRAPPER=c:/nburn/gcc-m68k/bin/../libexec/gcc/m68k-unknown-elf/8.1.0/lto-wrapper.exe
Target: m68k-unknown-elf
Configured with: /home/ubuntu/build/.build/HOST-mingw32/m68k-unknown-elf/src/gcc/configure 
--build=x86_64-build_pc-linux-gnu --host=i686-host_pc-mingw32 
--target=m68k-unknown-elf 
--prefix=/home/ubuntu/x-tools/HOST-mingw32/m68k-unknown-elf 
--with-local-prefix=/home/ubuntu/x-tools/HOST-mingw32/m68k-unknown-elf/m68k-unknown-elf 
--with-headers=/home/ubuntu/x-tools/HOST-mingw32/m68k-unknown-elf/m68k-unknown-elf/include 
--with-newlib --enable-threads=no --disable-shared 
--with-pkgversion='crosstool-NG crosstool-ng-1.23.0-328-g590eddf' 
--enable-__cxa_atexit --disable-libgomp --disable-libmudflap --disable-libmpx 
--disable-libssp --disable-libquadmath --disable-libquadmath-support 
--with-gmp=/home/ubuntu/build/.build/HOST-mingw32/m68k-unknown-elf/buildtools/complibs-host 
--with-mpfr=/home/ubuntu/build/.build/HOST-mingw32/m68k-unknown-elf/buildtools/complibs-host 
--with-mpc=/home/ubuntu/build/.build/HOST-mingw32/m68k-unknown-elf/buildtools/complibs-host 
--with-isl=/home/ubuntu/build/.build/HOST-mingw32/m68k-unknown-elf/buildtools/complibs-host 
--disable-lto --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++ -lm' 
--enable-target-optspace --disable-nls --enable-multiarch 
--with-multilib-list=rmprofile --enable-languages=c,c++
Thread model: single
gcc version 8.1.0 (crosstool-NG crosstool-ng-1.23.0-328-g590eddf)
COMPILER_PATH=c:/nburn/gcc-m68k/bin/../libexec/gcc/m68k-unknown-elf/8.1.0/;c:/nburn/gcc-m68k/bin/../libexec/gcc/;c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/bin/
LIBRARY_PATH=c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/;c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455/;c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/;c:/nburn/gcc-m68k/bin/../lib/gcc/;c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/
COLLECT_GCC_OPTIONS='-mcpu=54415' '-gdwarf-2' '-falign-functions=4' 
'-ffunction-sections' '-fmessage-length=0' '-fdata-sections' '-fno-rtti' '-D' 
'MOD5441X' '-D' 'MCF5441X' '-D' 'NBMINGW' '-I' 
'C:/nburn/gcc-m68k/m68k-unknown-elf/include' '-I' 'C:nburn/include' '-I' 
'C:nburn/MOD5441X/include' '-I' 
'C:nburn/gcc-m68k/m68k-unknown-elf/include/c++/8.1.0' '-O3' '-D' 'NDEBUG' 
'-mcpu=54415' '-v' '-o' 'Release/cmake-netburner-hello-world_0.0.5.elf'
 c:/nburn/gcc-m68k/bin/../libexec/gcc/m68k-unknown-elf/8.1.0/collect2.exe 
 --sysroot=C:/nburn/gcc-m68k/bin/../m68k-unknown-elf/sysroot 
 -o Release/cmake-netburner-hello-world_0.0.5.elf 
 c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/crtbegin.o 
 -Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455 
 -Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455 
 -Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0 
 -Lc:/nburn/gcc-m68k/bin/../lib/gcc 
 -Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib 
 -t -n -TC:/nburn/MOD5441X/lib/MOD5441X.ld -RC:/nburn/MOD5441X/lib/sys.ld 
 -Map=G:/cmake-netburner-hello-world/build_m68k_gcc8/Release/cmake-netburner-hello-world_0.0.5.map 
 ./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/main.cpp.obj 
 ./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/htmldata.cpp.obj 
 --gc-sections --start-group "" C:/nburn/lib/MOD5441X.a C:/nburn/lib/NetBurner.a 
 C:/nburn/lib/FatFile.a C:/nburn/lib/StdFFile.a -lstdc++ --end-group -lstdc++ 
 -lm -lgcc -lc -lgcc 
 c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/crtend.o
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/bin/ld.exe: mode m68kelf
nb-crt0.o (c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455nb-crt0.o)
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/crtbegin.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libc.a)lib_a-atexit.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libc.a)lib_a-__atexit.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libc.a)lib_a-__call_atexit.o
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/main.cpp.obj
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/htmldata.cpp.obj
(C:/nburn/lib/NetBurner.a)ucosmcfa.o
(C:/nburn/lib/NetBurner.a)main.o
(C:/nburn/lib/NetBurner.a)ucos.o
(C:/nburn/lib/NetBurner.a)cppmain.o
(C:/nburn/lib/NetBurner.a)ucosmain.o
(C:/nburn/lib/NetBurner.a)fileio.o
(C:/nburn/lib/NetBurner.a)ip.o
(C:/nburn/lib/NetBurner.a)buffers.o
(C:/nburn/lib/NetBurner.a)arp.o
(C:/nburn/lib/NetBurner.a)udp.o
(C:/nburn/lib/NetBurner.a)tcp.o
(C:/nburn/lib/NetBurner.a)http.o
(C:/nburn/lib/NetBurner.a)httpinternal.o
(C:/nburn/lib/NetBurner.a)httpstricmp.o
(C:/nburn/lib/NetBurner.a)htmldecomp.o
(C:/nburn/lib/NetBurner.a)iosys.o
(C:/nburn/lib/NetBurner.a)new_ops.o
(C:/nburn/lib/NetBurner.a)autoip.o
(C:/nburn/lib/NetBurner.a)dhcpc.o
(C:/nburn/lib/NetBurner.a)netinterface.o
(C:/nburn/lib/NetBurner.a)taskmon.o
(C:/nburn/lib/NetBurner.a)smarttrap.o
(C:/nburn/lib/NetBurner.a)autoupdate.o
(C:/nburn/lib/NetBurner.a)device.o
(C:/nburn/lib/NetBurner.a)base64.o
(C:/nburn/lib/NetBurner.a)nbiprintf.o
(C:/nburn/lib/NetBurner.a)nbprintf.o
(C:/nburn/lib/NetBurner.a)nbsiprintf.o
(C:/nburn/lib/NetBurner.a)nbsprintf.o
(C:/nburn/lib/NetBurner.a)weakumain.o
(C:/nburn/lib/NetBurner.a)cusermain.o
(C:/nburn/lib/NetBurner.a)websocket_handler.o
(C:/nburn/lib/NetBurner.a)ipv6_addr.o
(C:/nburn/lib/NetBurner.a)ipv6_tcp.o
(C:/nburn/lib/NetBurner.a)ipv6_ip.o
(C:/nburn/lib/NetBurner.a)ipv6_udp.o
(C:/nburn/lib/NetBurner.a)ipv6_printhelp.o
(C:/nburn/lib/NetBurner.a)ipv6_extensions.o
(C:/nburn/lib/NetBurner.a)ipv6_multicast.o
(C:/nburn/lib/NetBurner.a)ipv6_show.o
(C:/nburn/lib/NetBurner.a)ipv6_dhcp.o
(C:/nburn/lib/NetBurner.a)ucosmcfc.o
(C:/nburn/lib/NetBurner.a)system.o
(C:/nburn/lib/NetBurner.a)utils.o
(C:/nburn/lib/NetBurner.a)extraio.o
(C:/nburn/lib/NetBurner.a)multicast.o
(C:/nburn/lib/NetBurner.a)random.o
(C:/nburn/lib/NetBurner.a)netrx.o
(C:/nburn/lib/NetBurner.a)nbfloatprint.o
(C:/nburn/lib/NetBurner.a)md5c.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)si_class_type_info.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)del_ops.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_exception.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_catch.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_terminate.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_throw.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_personality.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)tinfo.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)del_op.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)class_type_info.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_alloc.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ios_init.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)globals_io.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)istream-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ios-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cxx11-ios_failure.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)string-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ext11-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)fstream-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cxx11-stdexcept.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)functexcept.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ostream-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ios.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)wlocale-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)locale-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)streambuf-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)snprintf_lite.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)system_error.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ctype.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_aux_runtime.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_unex_handler.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_term_handler.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)new_opv.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)vmi_class_type_info.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_globals.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)bad_typeid.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_call.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)del_opv.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)guard.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)pure.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)new_handler.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)dyncast.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)bad_cast.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)new_opvnt.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)bad_array_new.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)vterminate.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)bad_alloc.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)stdexcept.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)time_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)c++locale.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)messages_members_cow.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)monetary_members_cow.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)codecvt.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)locale_init.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)streambuf.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)numeric_members_cow.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)collate_members_cow.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)basic_file.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ios_locale.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)locale_facets.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)codecvt_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ios_failure.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)locale.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)istream.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cxx11-locale-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)lt1-codecvt.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cow-string-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)iostream-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cow-stdexcept.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ctype_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)random.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cow-shim_facets.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cxx11-shim_facets.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cow-locale_init.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cow-wstring-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)ctype_configure_char.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cxx11-wlocale-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)compatibility.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)guard_error.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)cp-demangle.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)new_opnt.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)eh_type.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)misc-inst.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)monetary_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)collate_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)messages_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)numeric_members.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)sso_string.o
(c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455libstdc++.a)wstring-inst.o
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/bin/ld.exe: cannot find : Invalid argument
collect2.exe: error: ld returned 1 exit status

make.exe[3]: *** [CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/build.make:117: Release/cmake-netburner-hello-world_0.0.5.elf] Error 1
make.exe[3]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe[2]: *** [CMakeFiles/Makefile2:126: CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/all] Error 2
make.exe[2]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/app.dir/rule] Error 2
make.exe[1]: Leaving directory 'G:/cmake-netburner-hello-world/build_m68k_gcc8'
make.exe: *** [Makefile:137: app] Error 2

Now we are interested in where collect2 is called and which arguments are passing in.

c:/nburn/gcc-m68k/bin/../libexec/gcc/m68k-unknown-elf/8.1.0/collect2.exe 
--sysroot=C:/nburn/gcc-m68k/bin/../m68k-unknown-elf/sysroot 
-o Release/cmake-netburner-hello-world_0.0.5.elf 
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/crtbegin.o 
-Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455 
-Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib/m54455 
-Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0 
-Lc:/nburn/gcc-m68k/bin/../lib/gcc 
-Lc:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/../../../../m68k-unknown-elf/lib 
-t -n -TC:/nburn/MOD5441X/lib/MOD5441X.ld -RC:/nburn/MOD5441X/lib/sys.ld 
-Map=G:/cmake-netburner-hello-world/build_m68k_gcc8/Release/cmake-netburner-hello-world_0.0.5.map 
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/main.cpp.obj 
./CMakeFiles/cmake-netburner-hello-world_0.0.5.dir/htmldata.cpp.obj 
--gc-sections --start-group "" C:/nburn/lib/MOD5441X.a C:/nburn/lib/NetBurner.a 
C:/nburn/lib/FatFile.a C:/nburn/lib/StdFFile.a -lstdc++ --end-group 
-lstdc++ -lm -lgcc -lc -lgcc 
c:/nburn/gcc-m68k/bin/../lib/gcc/m68k-unknown-elf/8.1.0/m54455/crtend.o

Look. Wtf! Where did these quotation marks come from?

From extra comma after --start-group!

... -Wl,--start-group,${NBLIBS} ...

We just found the cause of the error! It was completely not obvious. Fix is simple:

... -Wl,--start-group ${NBLIBS} ...

Now it is successfully linking with both mentioned versions of GCC.

Conclusions

If you have such error then most probably it is due to stupid typo(s) in linker arguments.

Try the following:

  1. Enable tracing and verbose output when executing a linker
  2. Thoroughly study the received output

Maybe it will help to someone.

  • Coinkeeper ошибка на сервере
  • Coinco global 2 сброс ошибок
  • Coin jam in flight deck ошибка
  • Coh ошибка eliwell 974
  • Coh eastern front критическая ошибка выполнение прервано