Warning: __textcoal_nt is not recommended since upgrading to Mac OSX Sierra

After upgrading to Sierra, I upgraded my Xcode from 7.2.1 to Xcode 8. So the problem could have happened just updating Xcode. I dropped to 7.2.1 and still got the same problem.

This is the error I get when compiling a C ++ program

/var/folders/cj/1h3_84h56c9bgzt_ryhpf4940000gn/T//ccgjxtCM.s:4:11: warning: section "__textcoal_nt" is deprecated
        .section __TEXT,__textcoal_nt,coalesced,pure_instructions
                 ^      ~~~~~~~~~~~~~
/var/folders/cj/1h3_84h56c9bgzt_ryhpf4940000gn/T//ccgjxtCM.s:4:11: note: change section name to "__text"
        .section __TEXT,__textcoal_nt,coalesced,pure_instructions
                 ^      ~~~~~~~~~~~~~
/var/folders/cj/1h3_84h56c9bgzt_ryhpf4940000gn/T//ccgjxtCM.s:54:11: warning: section "__textcoal_nt" is deprecated
        .section __TEXT,__textcoal_nt,coalesced,pure_instructions
                 ^      ~~~~~~~~~~~~~
/var/folders/cj/1h3_84h56c9bgzt_ryhpf4940000gn/T//ccgjxtCM.s:54:11: note: change section name to "__text"
        .section __TEXT,__textcoal_nt,coalesced,pure_instructions

The program is still running, but this message is displayed. Even when the only thing in the code is a class, which I called a graph, and I have a code such as an error.

void explore(Graph & G, int x)
{
  Node* nodePtr = &G.changeNode(x);
}

I tried to do this on the command line and it did not work

sudo xcode-select -s /Library/Developer/CommandLineTools

This is the assembly that I use in Sublime Text, but even with another C ++ compiler that is not C ++ 11, I get the same error. The error also appears on the command line.

{
    "shell_cmd": "g++ -std=c++11 \"${file}\" -o \"${file_path}/${file_base_name}\"",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++",

    "shell_cmd": "g++ -std=c++11 \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
}

, , , , - , , .

http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151012/305992.html

, .

+4
1

: https://solarianprogrammer.com/2016/09/22/compiling-gcc-6-macos/

, , GCC, ++.

, GCC __textcoal_nt . , - :

g++-6 main.cpp -o main 2>&1 >/dev/null | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*'
+5

Source: https://habr.com/ru/post/1656759/


All Articles