* [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first."
@ 2022-05-19 21:24 yuri at tsoft dot com
2022-05-20 0:43 ` [Bug general/29158] " mark at klomp dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-19 21:24 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
Bug ID: 29158
Summary: 0.187 fails to build with gcc-10: #error "Please
include config.h first."
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: general
Assignee: unassigned at sourceware dot org
Reporter: yuri at tsoft dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
In file included from color.c:34:
/usr/local/share/gnulib/lib/argp.h:583:3: error: #error "Please include
config.h first."
583 | #error "Please include config.h first."
| ^~~~~
/usr/local/share/gnulib/lib/argp.h:585:1: error: unknown type name
'_GL_INLINE_HEADER_BEGIN'
585 | _GL_INLINE_HEADER_BEGIN
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/share/gnulib/lib/argp.h:616:9: error: expected ';' before 'void'
616 | ARGP_EI void
| ^~~~
/usr/local/share/gnulib/lib/argp.h:622:9: error: expected ';' before 'int'
622 | ARGP_EI int
| ^~~
/usr/local/share/gnulib/lib/argp.h:634:9: error: expected ';' before 'int'
634 | ARGP_EI int
| ^~~
/usr/local/share/gnulib/lib/argp.h:645:22: error: expected ';' before 'struct'
645 | _GL_INLINE_HEADER_END
| ^
| ;
OS: FreeBSD 13
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
@ 2022-05-20 0:43 ` mark at klomp dot org
2022-05-20 1:07 ` yuri at tsoft dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-05-20 0:43 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Normally glibc provides argp.
I think this means you integrated gnulib argp incorrectly.
How do you configure and what does config.log say about argp?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
2022-05-20 0:43 ` [Bug general/29158] " mark at klomp dot org
@ 2022-05-20 1:07 ` yuri at tsoft dot com
2022-05-20 1:23 ` yuri at tsoft dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-20 1:07 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #2 from yuri at tsoft dot com ---
configure arguments:
> --program-prefix=eu- --disable-debuginfod --enable-nls --prefix=/usr/local
configure output:
> checking for library containing argp_parse... none required
config.log file: https://people.freebsd.org/~yuri/elfutils-config.log
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
2022-05-20 0:43 ` [Bug general/29158] " mark at klomp dot org
2022-05-20 1:07 ` yuri at tsoft dot com
@ 2022-05-20 1:23 ` yuri at tsoft dot com
2022-05-20 1:25 ` mark at klomp dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-20 1:23 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #3 from yuri at tsoft dot com ---
Also:
* the problem only exists with gcc, and not with clang-12.
* 0.179 didn't have such problem, so this is a regression.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (2 preceding siblings ...)
2022-05-20 1:23 ` yuri at tsoft dot com
@ 2022-05-20 1:25 ` mark at klomp dot org
2022-05-20 1:26 ` yuri at tsoft dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-05-20 1:25 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
You might want to ask someone who knows about how freebsd provides argp to see
if they understand why your CFLAGS seem to contain
-I/usr/local/share/gnulib/lib and your LDFLAGS contain
/usr/local/lib/libargp.so. That seems to confuse the build.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (3 preceding siblings ...)
2022-05-20 1:25 ` mark at klomp dot org
@ 2022-05-20 1:26 ` yuri at tsoft dot com
2022-05-20 2:00 ` mark at klomp dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-20 1:26 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #5 from yuri at tsoft dot com ---
The port adds -I/usr/local/share/gnulib/lib and
LDFLAGS=/usr/local/lib/libargp.so - otherwise it doesn't find argp.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (4 preceding siblings ...)
2022-05-20 1:26 ` yuri at tsoft dot com
@ 2022-05-20 2:00 ` mark at klomp dot org
2022-05-20 2:01 ` yuri at tsoft dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2022-05-20 2:00 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #6 from Mark Wielaard <mark at klomp dot org> ---
Sorry you have to ask whoever added -I/usr/local/share/gnulib/lib to CFLAGS how
that is supposed to work. Obviously the argp.h header found there isn't usable
as is. Normally people build against glibc or argp-standalone.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (5 preceding siblings ...)
2022-05-20 2:00 ` mark at klomp dot org
@ 2022-05-20 2:01 ` yuri at tsoft dot com
2022-05-20 2:04 ` yuri at tsoft dot com
2023-10-06 11:02 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-20 2:01 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #7 from yuri at tsoft dot com ---
(In reply to Mark Wielaard from comment #6)
> Sorry you have to ask whoever added -I/usr/local/share/gnulib/lib to CFLAGS
> how that is supposed to work. Obviously the argp.h header found there isn't
> usable as is. Normally people build against glibc or argp-standalone.
I added these flags to solve build failures.
This works when built with clang.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (6 preceding siblings ...)
2022-05-20 2:01 ` yuri at tsoft dot com
@ 2022-05-20 2:04 ` yuri at tsoft dot com
2023-10-06 11:02 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: yuri at tsoft dot com @ 2022-05-20 2:04 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
--- Comment #8 from yuri at tsoft dot com ---
It might be that clang-built and gcc-built code is just compatible.
Not sure if this is the case here.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug general/29158] 0.187 fails to build with gcc-10: #error "Please include config.h first."
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
` (7 preceding siblings ...)
2022-05-20 2:04 ` yuri at tsoft dot com
@ 2023-10-06 11:02 ` mark at klomp dot org
8 siblings, 0 replies; 10+ messages in thread
From: mark at klomp dot org @ 2023-10-06 11:02 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29158
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #9 from Mark Wielaard <mark at klomp dot org> ---
This is not an elfutils problem, but an issue with the argp replacement
configure/flags used.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-10-06 11:02 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 21:24 [Bug general/29158] New: 0.187 fails to build with gcc-10: #error "Please include config.h first." yuri at tsoft dot com
2022-05-20 0:43 ` [Bug general/29158] " mark at klomp dot org
2022-05-20 1:07 ` yuri at tsoft dot com
2022-05-20 1:23 ` yuri at tsoft dot com
2022-05-20 1:25 ` mark at klomp dot org
2022-05-20 1:26 ` yuri at tsoft dot com
2022-05-20 2:00 ` mark at klomp dot org
2022-05-20 2:01 ` yuri at tsoft dot com
2022-05-20 2:04 ` yuri at tsoft dot com
2023-10-06 11:02 ` mark at klomp dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).