public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: strange error on gcc 4.1.0
@ 2005-07-30 16:15 Jack Howarth
  0 siblings, 0 replies; 9+ messages in thread
From: Jack Howarth @ 2005-07-30 16:15 UTC (permalink / raw)
  To: howarth, pinskia; +Cc: gcc, schwab

Here is another posting which describes the problem a little clearer...

http://lists.apple.com/archives/darwin-development/2003/Jun/msg00000.html

So gcc needs to be fixed to not misparse -bundle, when it is the first
argument to gcc, as being the "-b Machine" target option.
     Shouldn't the fix be fairly simple? Just requiring that the
code that recognizes the -b flag require a trailing space after
the -b flag...otherwise it passes over it so that -bundle could be
recognized?
              Jack

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

* Re: strange error on gcc 4.1.0
  2005-07-30 16:09 ` Andrew Pinski
@ 2005-07-31  4:44   ` Mike Stump
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Stump @ 2005-07-31  4:44 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: Jack Howarth, gcc, schwab

On Saturday, July 30, 2005, at 09:09 AM, Andrew Pinski wrote:
> But I don't know what happened to it or came up from the discussion.

Looks like no response to Geoff's last comment.  If someone wants to 
address his stated concerns and resubmit it...  otherwise, -Wl,-bundle 
should do the trick.

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

* Re: strange error on gcc 4.1.0
@ 2005-07-30 16:22 Jack Howarth
  0 siblings, 0 replies; 9+ messages in thread
From: Jack Howarth @ 2005-07-30 16:22 UTC (permalink / raw)
  To: howarth, pinskia; +Cc: gcc, schwab

Thanks. It applies with offsets to the current 4.0 branch. Hopefully we can get
it in both branches soon. Currently everyone on Darwin is just hacking their
Makefiles around the problem.
          Jack

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

* Re: strange error on gcc 4.1.0
  2005-07-30 15:55 Jack Howarth
@ 2005-07-30 16:09 ` Andrew Pinski
  2005-07-31  4:44   ` Mike Stump
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Pinski @ 2005-07-30 16:09 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc, schwab


On Jul 30, 2005, at 11:52 AM, Jack Howarth wrote:

>    I can't find a patch either using google but I did find the  
> following
> posting which describes the problem and a workaround...
>
> http://www.mail-archive.com/fink-devel@lists.sourceforge.net/ 
> msg10604.html

I finally found the patch:
http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00655.html
http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01961.html

But I don't know what happened to it or came up from the discussion.

-- Pinski

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

* Re: strange error on gcc 4.1.0
@ 2005-07-30 15:55 Jack Howarth
  2005-07-30 16:09 ` Andrew Pinski
  0 siblings, 1 reply; 9+ messages in thread
From: Jack Howarth @ 2005-07-30 15:55 UTC (permalink / raw)
  To: howarth, pinskia; +Cc: gcc, schwab

   I can't find a patch either using google but I did find the following
posting which describes the problem and a workaround...

http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg10604.html

                Jack

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

* Re: strange error on gcc 4.1.0
  2005-07-30 13:42 Jack Howarth
@ 2005-07-30 15:18 ` Andrew Pinski
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Pinski @ 2005-07-30 15:18 UTC (permalink / raw)
  To: Jack Howarth; +Cc: howarth, schwab, gcc

> 
> Andreas,
>      Are you sure gnu gcc shouldn't support this? I see -bundle under the
> Machine Dependent Options under Darwin options which are not marked as
> APPLE-ONLY. I understood that to mean that it should be present in the
> gnu gcc compiler (like -all_load which is in the same list and is 
> supported). Fortunately MacOS X 10.4 now supports a more linux-like dyload
> that can use standard dynamic libraries .so files instead of just bundles
> for shared library modules.

It is a bug in the driver,  see PR 21366: <http://gcc.gnu.org/PR21366>.
There was a patch posted about this too but I cannot find it.

Thanks,
Andrew Pinski

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

* Re: strange error on gcc 4.1.0
@ 2005-07-30 13:42 Jack Howarth
  2005-07-30 15:18 ` Andrew Pinski
  0 siblings, 1 reply; 9+ messages in thread
From: Jack Howarth @ 2005-07-30 13:42 UTC (permalink / raw)
  To: howarth, schwab; +Cc: gcc

Andreas,
     Are you sure gnu gcc shouldn't support this? I see -bundle under the
Machine Dependent Options under Darwin options which are not marked as
APPLE-ONLY. I understood that to mean that it should be present in the
gnu gcc compiler (like -all_load which is in the same list and is 
supported). Fortunately MacOS X 10.4 now supports a more linux-like dyload
that can use standard dynamic libraries .so files instead of just bundles
for shared library modules.
              Jack

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

* Re: strange error on gcc 4.1.0
  2005-07-30  8:47 Jack Howarth
@ 2005-07-30  9:50 ` Andreas Schwab
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Schwab @ 2005-07-30  9:50 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc

howarth@bromo.msbb.uc.edu (Jack Howarth) writes:

>    I am trying to build xplor-nih on MacOS X 10.4 using gcc 4.1.0
> branch's gcc and g++ instead of Apple's and am running into a really
> strange error. I find the following linkage fails...
>
> g++-4 -bundle -flat_namespace -undefined suppress _xplorWrap.o libswigpy-xplor.dylib -o _xplorWrap.so -L/Users/howarth/Desktop/xplor-nih-2.11.2.1/bin.Darwin_8/ -lcommon -lnmrPot -lintVar -lvmd -lpy  -lswigpy-xplor \

$ info gcc 'Target Options'
[...]
`-b MACHINE'
     The argument MACHINE specifies the target machine for compilation.
[...]
 The `-V' and `-b' options work by running the
`<machine>-gcc-<version>' executable, so there's no real reason to use
them if you can just run that directly.

> Shouldn't the stock gcc 4.1.0 support the -bundle flag?

It's an Apple-specific flag.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* strange error on gcc 4.1.0
@ 2005-07-30  8:47 Jack Howarth
  2005-07-30  9:50 ` Andreas Schwab
  0 siblings, 1 reply; 9+ messages in thread
From: Jack Howarth @ 2005-07-30  8:47 UTC (permalink / raw)
  To: gcc

   I am trying to build xplor-nih on MacOS X 10.4 using gcc 4.1.0
branch's gcc and g++ instead of Apple's and am running into a really
strange error. I find the following linkage fails...

g++-4 -bundle -flat_namespace -undefined suppress _xplorWrap.o libswigpy-xplor.dylib -o _xplorWrap.so -L/Users/howarth/Desktop/xplor-nih-2.11.2.1/bin.Darwin_8/ -lcommon -lnmrPot -lintVar -lvmd -lpy  -lswigpy-xplor \
             -lcrypto -L/Users/howarth/Desktop/xplor-nih-2.11.2.1/bin.Darwin_8/
g++-4: couldn't run 'undle-gcc-4.1.0': No such file or directory

I can't find any evidence of a undle-gcc-4.1.0 file in my build directory
for the current gcc main trunk cvs from which I built the installed
gcc 4.1.0 compiler. Shouldn't the stock gcc 4.1.0 support the -bundle
flag? Any idea why this flag isn't working?
             Jack

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

end of thread, other threads:[~2005-07-31  4:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-30 16:15 strange error on gcc 4.1.0 Jack Howarth
  -- strict thread matches above, loose matches on Subject: below --
2005-07-30 16:22 Jack Howarth
2005-07-30 15:55 Jack Howarth
2005-07-30 16:09 ` Andrew Pinski
2005-07-31  4:44   ` Mike Stump
2005-07-30 13:42 Jack Howarth
2005-07-30 15:18 ` Andrew Pinski
2005-07-30  8:47 Jack Howarth
2005-07-30  9:50 ` Andreas Schwab

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