public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/101711] New: Error when gcc cross compile libvtv
@ 2021-08-01  4:06 bootmgr at 163 dot com
  2021-08-01  4:07 ` [Bug other/101711] " bootmgr at 163 dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bootmgr at 163 dot com @ 2021-08-01  4:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

            Bug ID: 101711
           Summary: Error when gcc cross compile libvtv
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bootmgr at 163 dot com
  Target Milestone: ---

Created attachment 51233
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51233&action=edit
output

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
@ 2021-08-01  4:07 ` bootmgr at 163 dot com
  2021-08-01  6:45 ` pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bootmgr at 163 dot com @ 2021-08-01  4:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #1 from bootmgr at 163 dot com <bootmgr at 163 dot com> ---
Created attachment 51234
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51234&action=edit
config.log

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
  2021-08-01  4:07 ` [Bug other/101711] " bootmgr at 163 dot com
@ 2021-08-01  6:45 ` pinskia at gcc dot gnu.org
  2021-08-02 21:07 ` egallager at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-01  6:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
configure:2358: checking build system type
configure:2372: result: x86_64-pc-linux-gnu
configure:2419: checking host system type
configure:2432: result: x86_64-pc-linux-gnu
configure:2452: checking target system type
configure:2465: result: x86_64-w64-mingw32

I don't see you setting a sysroot.
Can you attach gcc/config.log and x86_64-w64-mingw32/libvtv/config.log?

But it looks like libvtv is not used to non-sysroot based builds.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
  2021-08-01  4:07 ` [Bug other/101711] " bootmgr at 163 dot com
  2021-08-01  6:45 ` pinskia at gcc dot gnu.org
@ 2021-08-02 21:07 ` egallager at gcc dot gnu.org
  2021-08-04 16:09 ` ctice at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-08-02 21:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cmtice at google dot com,
                   |                            |egallager at gcc dot gnu.org
           Keywords|                            |build

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
cc-ing libvtv maintainer

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (2 preceding siblings ...)
  2021-08-02 21:07 ` egallager at gcc dot gnu.org
@ 2021-08-04 16:09 ` ctice at gcc dot gnu.org
  2021-08-05 23:20 ` bootmgr at 163 dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ctice at gcc dot gnu.org @ 2021-08-04 16:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

ctice at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ctice at gcc dot gnu.org

--- Comment #4 from ctice at gcc dot gnu.org ---
Is there something special I need to download, set up, or build in order to do
mingw32 cross-compiles?

I'm getting configure/build failures even when I omit enabling vtable verify; I
also don't know where/how to get the mcf thread libraries?

[Instructions for both of these are necessary if I am to debug the libvtv
issue].

Just to see if this was related to libvtv or not, I tried:

$ ../configure --disable-multilib --disable-nls --enable-languag
es=c,c++,lto --enable-version-specific-runtime-libs
--enable-fully-dynamic-strin
g --enable-large-address-aware --enable-mingw-wildcard
--target=x86_64-w64-mingw
32 --with-local-prefix=/usr/local/x86_64-w64-mingw32
$ make

(Notice that I omitted the --enable-threads=mcf and the --enable-vtable-verify
flags).

I got:

...
make[2]: Leaving directory
'/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/libcc1'
Checking multilib configuration for libgcc...
Configuring in x86_64-w64-mingw32/libgcc
configure: loading cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking for --enable-version-specific-runtime-libs... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
checking for x86_64-w64-mingw32-lipo... x86_64-w64-mingw32-lipo
checking for x86_64-w64-mingw32-nm...
/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/nm
checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib
checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
checking whether ln -s works... yes
checking for x86_64-w64-mingw32-gcc...
/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/xgcc
-B/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/
-L/usr/local/x86_64-w64-mingw32/lib -L/usr/local/mingw/lib -isystem
/usr/local/x86_64-w64-mingw32/include -isystem /usr/local/mingw/include
-B/usr/local/x86_64-w64-mingw32/bin/ -B/usr/local/x86_64-w64-mingw32/lib/
-isystem /usr/local/x86_64-w64-mingw32/include -isystem
/usr/local/x86_64-w64-mingw32/sys-include   
checking for suffix of object files... configure: error: in
`/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/x86_64-w64-mingw32/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[1]: *** [Makefile:13771: configure-target-libgcc] Error 1
make[1]: Leaving directory '/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj'
make: *** [Makefile:968: all] Error 2


Please update this bug with further instructions. Thank you.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (3 preceding siblings ...)
  2021-08-04 16:09 ` ctice at gcc dot gnu.org
@ 2021-08-05 23:20 ` bootmgr at 163 dot com
  2021-08-06  1:02 ` ctice at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bootmgr at 163 dot com @ 2021-08-05 23:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #5 from bootmgr at 163 dot com <bootmgr at 163 dot com> ---
(In reply to ctice from comment #4)
> Is there something special I need to download, set up, or build in order to
> do mingw32 cross-compiles?
> 
> I'm getting configure/build failures even when I omit enabling vtable
> verify; I also don't know where/how to get the mcf thread libraries?
> 
> [Instructions for both of these are necessary if I am to debug the libvtv
> issue].
> 
> Just to see if this was related to libvtv or not, I tried:
> 
> $ ../configure --disable-multilib --disable-nls --enable-languag
> es=c,c++,lto --enable-version-specific-runtime-libs
> --enable-fully-dynamic-strin
> g --enable-large-address-aware --enable-mingw-wildcard
> --target=x86_64-w64-mingw
> 32 --with-local-prefix=/usr/local/x86_64-w64-mingw32
> $ make
> 
> (Notice that I omitted the --enable-threads=mcf and the
> --enable-vtable-verify flags).
> 
> I got:
> 
> ...
> make[2]: Leaving directory
> '/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/libcc1'
> Checking multilib configuration for libgcc...
> Configuring in x86_64-w64-mingw32/libgcc
> configure: loading cache ./config.cache
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-w64-mingw32
> checking for --enable-version-specific-runtime-libs... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
> checking for x86_64-w64-mingw32-lipo... x86_64-w64-mingw32-lipo
> checking for x86_64-w64-mingw32-nm...
> /usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/nm
> checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib
> checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
> checking whether ln -s works... yes
> checking for x86_64-w64-mingw32-gcc...
> /usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/xgcc
> -B/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/
> -L/usr/local/x86_64-w64-mingw32/lib -L/usr/local/mingw/lib -isystem
> /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/mingw/include
> -B/usr/local/x86_64-w64-mingw32/bin/ -B/usr/local/x86_64-w64-mingw32/lib/
> -isystem /usr/local/x86_64-w64-mingw32/include -isystem
> /usr/local/x86_64-w64-mingw32/sys-include   
> checking for suffix of object files... configure: error: in
> `/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/x86_64-w64-mingw32/
> libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details
> make[1]: *** [Makefile:13771: configure-target-libgcc] Error 1
> make[1]: Leaving directory
> '/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj'
> make: *** [Makefile:968: all] Error 2
> 
> 
> Please update this bug with further instructions. Thank you.

You can download the mcfgthread library at
https://github.com/lhmouse/mcfgthread.
And apply this patch for gcc to support mcf thread model.
https://github.com/lhmouse/MINGW-packages-dev/blob/master/mingw-w64-gcc-git/9000-gcc-10-branch-Added-mcf-thread-model-support-from-mcfgthread.patch
I tried to use --enable-vtable-verify and --with-sysroot=/usr/local, and then
gcc compiled successfully. 
Can you give me your config.log file?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (4 preceding siblings ...)
  2021-08-05 23:20 ` bootmgr at 163 dot com
@ 2021-08-06  1:02 ` ctice at gcc dot gnu.org
  2021-08-06  1:05 ` ctice at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ctice at gcc dot gnu.org @ 2021-08-06  1:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #6 from ctice at gcc dot gnu.org ---
I applied the patch supplied in comment 5.  I added --with-sysroot=/usr/local
to my configure command (still not using --enable-threads=mcf or
--enable-vtable-verify).  Now it configures, but the make command fails while
building gcc, complaining that:

The directory that should contain system headers does not exist:
  /usr/local/mingw/include

Which is completely true.  I'm working on an elf/linux machine (x86_64) and I
have no mingw headers.  Where can I get the appropriate headers (and anything
else I will need) in order to make this cross compile work?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (5 preceding siblings ...)
  2021-08-06  1:02 ` ctice at gcc dot gnu.org
@ 2021-08-06  1:05 ` ctice at gcc dot gnu.org
  2021-08-06  3:30 ` bootmgr at 163 dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ctice at gcc dot gnu.org @ 2021-08-06  1:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #7 from ctice at gcc dot gnu.org ---
Also, I downloaded the sources for mcfgthread from the repo supplied in
comment5, but I can't seem to get that to build -- the GCC on my machine does
not recognize "-municode" as a valid flag.  Is there something else I need in
order to be able to build the library?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (6 preceding siblings ...)
  2021-08-06  1:05 ` ctice at gcc dot gnu.org
@ 2021-08-06  3:30 ` bootmgr at 163 dot com
  2021-08-27  8:58 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bootmgr at 163 dot com @ 2021-08-06  3:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #8 from bootmgr at 163 dot com <bootmgr at 163 dot com> ---
(In reply to ctice from comment #6)
> I applied the patch supplied in comment 5.  I added
> --with-sysroot=/usr/local to my configure command (still not using
> --enable-threads=mcf or --enable-vtable-verify).  Now it configures, but the
> make command fails while building gcc, complaining that:
> 
> The directory that should contain system headers does not exist:
>   /usr/local/mingw/include
> 
> Which is completely true.  I'm working on an elf/linux machine (x86_64) and
> I have no mingw headers.  Where can I get the appropriate headers (and
> anything else I will need) in order to make this cross compile work?

Compiling a cross toolchain can be a bit complicated.
The mingw-w64 wiki has documentation on how to compile the mingw cross
toolchain.
https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
If you want other thread models (other than win32), you can compile the
winpthreads library (--enable-threads=posix) or copy release/mingw64/*
(--enable-threads) from the mcfgthread repository to
/path/to/install/x86_64-w64-mingw32/ after compiling crt.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (7 preceding siblings ...)
  2021-08-06  3:30 ` bootmgr at 163 dot com
@ 2021-08-27  8:58 ` pinskia at gcc dot gnu.org
  2021-09-01 23:54 ` ctice at gcc dot gnu.org
  2021-09-10 12:24 ` bootmgr at 163 dot com
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-27  8:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=97465

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Similar to PR 97465.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (8 preceding siblings ...)
  2021-08-27  8:58 ` pinskia at gcc dot gnu.org
@ 2021-09-01 23:54 ` ctice at gcc dot gnu.org
  2021-09-10 12:24 ` bootmgr at 163 dot com
  10 siblings, 0 replies; 12+ messages in thread
From: ctice at gcc dot gnu.org @ 2021-09-01 23:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #10 from ctice at gcc dot gnu.org ---
I have been trying off-and-on  for the last 3 weeks to build a ming64 GCC
cross-compiler, on my x86_64 linux ELF system, and I have not been able to do
it.  This is without enabling libvtv.  The instructions referenced on
https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
are at least 8 years out of date, and I have not been able to make them work.

Until I can get a set of instructions that works, I cannot reproduce the
problem, and without reproducing it I cannot debug/fix it.  I am sorry about
this, but I really have tried.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug other/101711] Error when gcc cross compile libvtv
  2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
                   ` (9 preceding siblings ...)
  2021-09-01 23:54 ` ctice at gcc dot gnu.org
@ 2021-09-10 12:24 ` bootmgr at 163 dot com
  10 siblings, 0 replies; 12+ messages in thread
From: bootmgr at 163 dot com @ 2021-09-10 12:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711

--- Comment #11 from bootmgr at 163 dot com <bootmgr at 163 dot com> ---
(In reply to ctice from comment #10)
> I have been trying off-and-on  for the last 3 weeks to build a ming64 GCC
> cross-compiler, on my x86_64 linux ELF system, and I have not been able to
> do it.  This is without enabling libvtv.  The instructions referenced on
> https://sourceforge.net/p/mingw-w64/wiki2/
> Cross%20Win32%20and%20Win64%20compiler/ are at least 8 years out of date,
> and I have not been able to make them work.
> 
> Until I can get a set of instructions that works, I cannot reproduce the
> problem, and without reproducing it I cannot debug/fix it.  I am sorry about
> this, but I really have tried.

Can you give me your error messages?

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-09-10 12:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01  4:06 [Bug other/101711] New: Error when gcc cross compile libvtv bootmgr at 163 dot com
2021-08-01  4:07 ` [Bug other/101711] " bootmgr at 163 dot com
2021-08-01  6:45 ` pinskia at gcc dot gnu.org
2021-08-02 21:07 ` egallager at gcc dot gnu.org
2021-08-04 16:09 ` ctice at gcc dot gnu.org
2021-08-05 23:20 ` bootmgr at 163 dot com
2021-08-06  1:02 ` ctice at gcc dot gnu.org
2021-08-06  1:05 ` ctice at gcc dot gnu.org
2021-08-06  3:30 ` bootmgr at 163 dot com
2021-08-27  8:58 ` pinskia at gcc dot gnu.org
2021-09-01 23:54 ` ctice at gcc dot gnu.org
2021-09-10 12:24 ` bootmgr at 163 dot com

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).