public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/37036]  New: fixincludes does not understand sysroot!
@ 2008-08-06  9:53 jayk123 at hotmail dot com
  2008-08-06 10:10 ` [Bug other/37036] " jayk123 at hotmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: jayk123 at hotmail dot com @ 2008-08-06  9:53 UTC (permalink / raw)
  To: gcc-bugs

gcc 4.3.1

given build=platform1 (i686-pc-cygwin)
given platform2 (sparc-sun-solaris2.10) 

mkdir /obj
mkdir /obj/1
cd /obj/1
# ensure up to date native tools
/src/gcc/configure -build platform1 -host platform1 -target platform1
-disable-bootstrap -disable-multilib -enable-languages=c,c++ && make && make
install


# cross tools -- have setup sysroot ahead of time
mkdir /obj/2
cd /obj/2
/src/gcc/configure -build platform1 -host platform1 -target platform2
-disable-bootstrap -disable-multilib -enable-languages=c,c++ && make && make
install

# now the problem part
mkdir /obj/3
cd /obj/3
/src/gcc/configure -build platform1 -host platform2 -target platform2
-disable-bootstrap -disable-multilib -enable-languages=c,c++ ???? && make &&
make install
DESTDIR=/usr/local/platform2/install

tar up the install
scp
untar on host
try it out

errors, because fixincludes uses the build /usr/include instead of the
sys-rooted /usr/include.

Even using -with-build-sysroot /usr/local/platform2/sys-root does not work.
Apparently. I have to go read the code.

Specific workaround:
delete include-fixed/math.h


I think this is particularly problematic in that the requirements here are
"unique". Nowewhere else does the two platform canadian cross need the
host/target sysroot. It's builtin to the cross compiler.

The cross ocmpiler also has the correctly fixed includes.
So another workaround is to use them.
But they might be from an older version of gcc/fixincludes.


-- 
           Summary: fixincludes does not understand sysroot!
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jayk123 at hotmail dot com
  GCC host triplet: host=target, host!=build


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37036


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

* [Bug other/37036] fixincludes does not understand sysroot!
  2008-08-06  9:53 [Bug other/37036] New: fixincludes does not understand sysroot! jayk123 at hotmail dot com
@ 2008-08-06 10:10 ` jayk123 at hotmail dot com
  2008-08-06 10:12 ` jayk123 at hotmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: jayk123 at hotmail dot com @ 2008-08-06 10:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jayk123 at hotmail dot com  2008-08-06 10:08 -------
wait, um, maybe -with-build-sysroot= works, with an equals sign. I'll try that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37036


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

* [Bug other/37036] fixincludes does not understand sysroot!
  2008-08-06  9:53 [Bug other/37036] New: fixincludes does not understand sysroot! jayk123 at hotmail dot com
  2008-08-06 10:10 ` [Bug other/37036] " jayk123 at hotmail dot com
@ 2008-08-06 10:12 ` jayk123 at hotmail dot com
  2008-08-11 10:06 ` jay dot krell at cornell dot edu
  2008-08-14 11:56 ` jay dot krell at cornell dot edu
  3 siblings, 0 replies; 8+ messages in thread
From: jayk123 at hotmail dot com @ 2008-08-06 10:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jayk123 at hotmail dot com  2008-08-06 10:10 -------
uh, no, I used that actually


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37036


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

* [Bug other/37036] fixincludes does not understand sysroot!
  2008-08-06  9:53 [Bug other/37036] New: fixincludes does not understand sysroot! jayk123 at hotmail dot com
  2008-08-06 10:10 ` [Bug other/37036] " jayk123 at hotmail dot com
  2008-08-06 10:12 ` jayk123 at hotmail dot com
@ 2008-08-11 10:06 ` jay dot krell at cornell dot edu
  2008-08-14 11:56 ` jay dot krell at cornell dot edu
  3 siblings, 0 replies; 8+ messages in thread
From: jay dot krell at cornell dot edu @ 2008-08-11 10:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jay dot krell at cornell dot edu  2008-08-11 10:05 -------
Running fixincludes on the host after install works, but
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15694
says that is not the way..


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37036


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

* [Bug other/37036] fixincludes does not understand sysroot!
  2008-08-06  9:53 [Bug other/37036] New: fixincludes does not understand sysroot! jayk123 at hotmail dot com
                   ` (2 preceding siblings ...)
  2008-08-11 10:06 ` jay dot krell at cornell dot edu
@ 2008-08-14 11:56 ` jay dot krell at cornell dot edu
  3 siblings, 0 replies; 8+ messages in thread
From: jay dot krell at cornell dot edu @ 2008-08-14 11:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jay dot krell at cornell dot edu  2008-08-14 11:54 -------
Here is a lame workaround that works, from my Python wrapper:

    if (Host == Target) and (Host != Build):
        ExtraConfig += " -with-sysroot=/"
        ExtraConfig += " -with-build-sysroot=" + DefaultSysroot


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37036


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

* [Bug other/37036] fixincludes does not understand sysroot!
       [not found] <bug-37036-4@http.gcc.gnu.org/bugzilla/>
  2022-05-25  0:29 ` egallager at gcc dot gnu.org
  2022-05-25  0:43 ` jayk123 at hotmail dot com
@ 2024-06-07 20:00 ` egallager at gcc dot gnu.org
  2 siblings, 0 replies; 8+ messages in thread
From: egallager at gcc dot gnu.org @ 2024-06-07 20:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to jayk123 from comment #6)
> I'll login later and put that in the bug once I reset password etc.

Any progress on this?

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

* [Bug other/37036] fixincludes does not understand sysroot!
       [not found] <bug-37036-4@http.gcc.gnu.org/bugzilla/>
  2022-05-25  0:29 ` egallager at gcc dot gnu.org
@ 2022-05-25  0:43 ` jayk123 at hotmail dot com
  2024-06-07 20:00 ` egallager at gcc dot gnu.org
  2 siblings, 0 replies; 8+ messages in thread
From: jayk123 at hotmail dot com @ 2022-05-25  0:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from jayk123 at hotmail dot com ---
I'm sorry the Python is surely very long gone. It was so many years ago.

It was a wrapper around a series of configure + make
to build several gcc toolsets, i.e. native, cross, etc.

At the time I had Solaris and/or VMS sysroots.
I was probably hosting on Cygwin, and was annoyed with gmp/mpfr as well.

If it was today, well, I'd probably just Zig as a cc/ld driver. :)

I'll login later and put that in the bug once I reset password etc.

 - Jay
________________________________
From: egallager at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org>
Sent: Wednesday, May 25, 2022 12:29 AM
To: jay.krell@cornell.edu <jay.krell@cornell.edu>
Subject: [Bug other/37036] fixincludes does not understand sysroot!

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D37036&amp;data=05%7C01%7C%7Cfd6b614185194903936a08da3de59679%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637890353549095738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=jt7%2FzPlbZJeavNvBU2sSYf1QE%2FG8WEACPtkV598CvZQ%3D&amp;reserved=0

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jay from comment #4)
> Here is a lame workaround that works, from my Python wrapper:
>
>     if (Host == Target) and (Host != Build):
>         ExtraConfig += " -with-sysroot=/"
>         ExtraConfig += " -with-build-sysroot=" + DefaultSysroot

To be clear, is that a wrapper around GCC or fixincludes? In either case, can
you link us to your Python wrapper?

--
You are receiving this mail because:
You reported the bug.

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

* [Bug other/37036] fixincludes does not understand sysroot!
       [not found] <bug-37036-4@http.gcc.gnu.org/bugzilla/>
@ 2022-05-25  0:29 ` egallager at gcc dot gnu.org
  2022-05-25  0:43 ` jayk123 at hotmail dot com
  2024-06-07 20:00 ` egallager at gcc dot gnu.org
  2 siblings, 0 replies; 8+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-25  0:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jay from comment #4)
> Here is a lame workaround that works, from my Python wrapper:
> 
>     if (Host == Target) and (Host != Build):
>         ExtraConfig += " -with-sysroot=/"
>         ExtraConfig += " -with-build-sysroot=" + DefaultSysroot

To be clear, is that a wrapper around GCC or fixincludes? In either case, can
you link us to your Python wrapper?

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

end of thread, other threads:[~2024-06-07 20:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-06  9:53 [Bug other/37036] New: fixincludes does not understand sysroot! jayk123 at hotmail dot com
2008-08-06 10:10 ` [Bug other/37036] " jayk123 at hotmail dot com
2008-08-06 10:12 ` jayk123 at hotmail dot com
2008-08-11 10:06 ` jay dot krell at cornell dot edu
2008-08-14 11:56 ` jay dot krell at cornell dot edu
     [not found] <bug-37036-4@http.gcc.gnu.org/bugzilla/>
2022-05-25  0:29 ` egallager at gcc dot gnu.org
2022-05-25  0:43 ` jayk123 at hotmail dot com
2024-06-07 20:00 ` egallager at gcc dot gnu.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).