[Bug c++/80445] New: /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared using ::gets;

2017-04-17 Thread anton.kochkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80445

Bug ID: 80445
   Summary: /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’
has not been declaredusing ::gets;
   Product: gcc
   Version: 6.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: anton.kochkov at gmail dot com
  Target Milestone: ---

In file included from /usr/include/c++/6.3.1/ext/string_conversions.h:43:0,
 from /usr/include/c++/6.3.1/bits/basic_string.h:5402,
 from /usr/include/c++/6.3.1/string:52,
 from /usr/include/qt5/QtCore/qbytearray.h:52,
 from /usr/include/qt5/QtCore/qstring.h:49,
 from /usr/include/qt5/QtCore/qobject.h:47,
 from /usr/include/qt5/QtCore/qabstractanimation.h:43,
 from /usr/include/qt5/QtCore/QtCore:4,
 from /usr/include/qt5/QtGui/QtGuiDepends:3,
 from /usr/include/qt5/QtGui/QtGui:3,
/usr/include/c++/6.3.1/cstdio: At global scope:
/usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared
   using ::gets;
   ^~~~
/usr/include/c++/6.3.1/cstdio:137:11: error: ‘::sprintf’ has not been declared
   using ::sprintf;
   ^~~
/usr/include/c++/6.3.1/cstdio:175:11: error: ‘::snprintf’ has not been declared
   using ::snprintf;
   ^~~~
/usr/include/c++/6.3.1/cstdio:185:22: error: ‘__gnu_cxx::snprintf’ has not been
declared
   using ::__gnu_cxx::snprintf;
  ^~~~

[Bug c++/80445] /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared using ::gets;

2017-04-17 Thread anton.kochkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80445

--- Comment #1 from Anton Kochkov  ---
Forgot to mention command line:

g++ -c -pipe -m32 -O2 -std=gnu++11 -D_REENTRANT -Wall -W -fPIC -D__IDP__
-D__QT__ -D__EA64__ -D__LINUX__ -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB
-DQT_CORE_LIB -I. -I../../ida-6.95-sdk/include -isystem /usr/include/qt5
-isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem
/usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o
p64/collabreate.o collabreate.cpp

[Bug c++/80445] /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared using ::gets;

2017-04-17 Thread anton.kochkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80445

--- Comment #4 from Anton Kochkov  ---
here is /usr/include/qt5/QtCore/qbytearray.h:

#ifndef QBYTEARRAY_H
#define QBYTEARRAY_H

#include 
#include 
#include 

#include 
#include 
#include 

#include// <-- line 52
#include 

Seem no namespace tricks

[Bug c++/80445] /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared using ::gets;

2017-04-17 Thread anton.kochkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80445

--- Comment #5 from Anton Kochkov  ---
Created attachment 41205
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41205&action=edit
preprocessed file

output of

g++ -c -pipe -m32 -O2 -std=gnu++11 -D_REENTRANT -Wall -W -fPIC -D__IDP__
-D__QT__ -D__EA64__ -D__LINUX__ -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB
-DQT_CORE_LIB -I. -I../../ida-6.95-sdk/include -isystem /usr/include/qt5
-isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem
/usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -E
collabreate.cpp > collabreate.ii

[Bug c++/80445] /usr/include/c++/6.3.1/cstdio:124:11: error: ‘::gets’ has not been declared using ::gets;

2017-04-17 Thread anton.kochkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80445

Anton Kochkov  changed:

   What|Removed |Added

 Resolution|INVALID |FIXED

--- Comment #7 from Anton Kochkov  ---
Thanks you right, that is defined in pro.h from IDA...

[Bug c++/49722] New: G++ doens't allow compilation with extern "C" and C99 inside

2011-07-12 Thread anton.kochkov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49722

   Summary: G++ doens't allow compilation with extern "C" and C99
inside
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: anton.koch...@gmail.com


Any gcc version.
If you want use C99-standard conformant code inside extern "C" - it cant build.
Option -std=c99 is ignored by g++.


[Bug lto/102159] New: lto1: internal compiler error: Segmentation fault

2021-09-01 Thread anton.kochkov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102159

Bug ID: 102159
   Summary: lto1: internal compiler error: Segmentation fault
   Product: gcc
   Version: 11.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: lto
  Assignee: unassigned at gcc dot gnu.org
  Reporter: anton.kochkov at gmail dot com
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Was updating local opam switch:

[i] ℤ ocamlc --version 
   
  13:13:43 
4.11.1
~/data/ocaml 
[i] ℤ opam --version   
   
  13:16:44 
2.0.8

Got the following error during the opam-publish-2.1.0 compilation:

[i] ℤ opam install --restore   
   
  13:12:40 
Packages to be restored: { opam-publish }
The following actions will be performed:
  ∗ install opam-publish 2.1.0

<><> Gathering sources
><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-publish.2.1.0] found in cache

<><> Processing actions
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of opam-publish failed at
"/home/akochkov/.opam/opam-init/hooks/sandbox.sh build dune build -p
opam-publish -j 7".

#=== ERROR while compiling opam-publish.2.1.0
=#
# context 2.0.8 | linux/x86_64 | ocaml-system.4.11.1 |
https://opam.ocaml.org#bfc07c20
# path~/.opam/default/.opam-switch/build/opam-publish.2.1.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p
opam-publish -j 7
# exit-code   1
# env-file~/.opam/log/opam-publish-162949-e7966f.env
# output-file ~/.opam/log/opam-publish-162949-e7966f.out
### output ###
# [...]
# PLUGIN_ALL_PASSES_START  | annobin: Generate per-function annotations
# PLUGIN_ALL_PASSES_END| annobin: Register per-function end symbols
# lto1: internal compiler error: Segmentation fault
# Please submit a full bug report,
# with preprocessed source if appropriate.
# See <http://bugzilla.redhat.com/bugzilla> for instructions.
# lto-wrapper: fatal error: gcc returned 1 exit status
# compilation terminated.
# /usr/bin/ld: error: lto-wrapper failed
# collect2: error: ld returned 1 exit status
# File "caml_startup", line 1:
# Error: Error during linking (exit code 1)

<><> Error report
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build opam-publish 2.1.0
└─ 
╶─ No changes have been performed
~/data/ocaml took 3s 

The Linux distribution is Fedora 34 x86_64

[i] ℤ gcc --version
   
  13:12:58 
gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

~/data/ocaml 
[i] ℤ ld --version 
   
  13:13:15 
GNU ld version 2.35.1-41.fc34
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
~/data/ocaml 


[i] ℤ cat ~/.opam/log/opam-publish-162949-e7966f.out   
   
  13:18:48 
ocamlopt src/publishMain.exe (exit 2)
(cd _build/defau

[Bug lto/102159] lto1: internal compiler error: Segmentation fault

2021-09-01 Thread anton.kochkov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102159

--- Comment #2 from Anton Kochkov  ---
(In reply to Martin Liška from comment #1)
> Can you please provide exact steps on how to reproduce the issue on a
> vanilla system?

1. dnf install ocaml opam
2. opam init (Y/Y)
2a eval $(opam env)
3. opam update
3a ocamlfind remove num; ocamlfind remove num-top
4. CHECK_IF_PREINSTALLED=false opam install opam-publish

Or "opam install cohttp-lwt"