public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line
@ 2005-08-05 18:32 jrevans1 at earthlink dot net
2005-08-05 18:36 ` [Bug target/23251] " pinskia at gcc dot gnu dot org
2005-08-05 18:38 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: jrevans1 at earthlink dot net @ 2005-08-05 18:32 UTC (permalink / raw)
To: gcc-bugs
This is a darwin specific flag that is passed to the linker and should be present.
// Begin myTest.cpp
#include <cstdio>
int main(inst argc, char *argv[])
{
printf("Hello World\n");
return 0;
}
// End myTest.cpp
// ====================
// Begin myLog.txt
jrevans%
jrevans% /usr/bin/g++ -o myTest myTest.cpp -framework CoreFoundation
jrevans% ./myTest
Hello World
jrevans% $COTS/bin/g++ -o myTest myTest.cpp -framework CoreFoundation
g++: CoreFoundation: No such file or directory
cc1plus: error: unrecognized command line option "-framework"
jrevans% echo $COTS
/Users/jrevans/local
jrevans%
// End myLog.txt
// ====================
Where gcc was compiled with the following flags:
jrevans% ../gcc-3.4.4/configure --prefix=/Users/jrevans/local --enable-shared
--enable-threads --disable-nls --enable-languages=c,c++,f77
jrevans% make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap
See here for further reference:
http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/IncludingFrameworks.html
--
Summary: Missing Darwin specific '-framework' flag on the gcc/g++
command-line
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jrevans1 at earthlink dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.9.0
GCC host triplet: powerpc-apple-darwin7.9.0
GCC target triplet: powerpc-apple-darwin7.9.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23251
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/23251] Missing Darwin specific '-framework' flag on the gcc/g++ command-line
2005-08-05 18:32 [Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line jrevans1 at earthlink dot net
@ 2005-08-05 18:36 ` pinskia at gcc dot gnu dot org
2005-08-05 18:38 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05 18:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-05 18:36 -------
Fixed in 4.0.0 and above.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|driver |target
GCC build triplet|powerpc-apple-darwin7.9.0 |
GCC host triplet|powerpc-apple-darwin7.9.0 |
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23251
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/23251] Missing Darwin specific '-framework' flag on the gcc/g++ command-line
2005-08-05 18:32 [Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line jrevans1 at earthlink dot net
2005-08-05 18:36 ` [Bug target/23251] " pinskia at gcc dot gnu dot org
@ 2005-08-05 18:38 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05 18:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-05 18:38 -------
By:
2004-03-03 Mike Stump <mrs@apple.com>
Add framework support for darwin.
* c-incpath.c: Include target.h and machmode.h.
(add_path): Use a consistent style for cpp_dir. Initialize
p->construct to 0.
(add_cpp_dir_path): New.
(register_include_chains): Add use of extra_includes callback.
(hook_void_int): Add.
(target_c_incpath): Add.
* c-incpath.h (add_cpp_dir_path): New.
(target_c_incpath_s): Add.
(target_c_incpath): Add.
(C_INCPATH_INIT): Add.
* c-opts.c (c_common_missing_argument,
c_common_handle_option): Add -F argument processing.
* c.opt: Add -F argument processing.
* gcc.c (trad_capable_cpp): Add -F argument processing.
* cppfiles.c (find_file_in_dir): Update to use construct
callback.
(search_path_exhausted, cpp_get_path, cpp_get_buffer,
cpp_get_prev): New.
(_cpp_find_file): Use search_path_exhausted.
(make_cpp_dir): Initialize construct to 0.
* cpplib.h (missing_header_cb
cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
(cpp_callbacks): Add missing_header
(cpp_dir): Add construct.
* target-def.h: (TARGET_OPTF): New.
* hooks.c (hook_void_int, hook_void_charptr): Add.
* hooks.h (hook_void_int, hook_void_charptr): Add.
* Makefile.in (c-incpath.o) : Add $(TARGET_H) and
$(MACHMODE_H) dependencies.
* doc/invoke.texi (Darwin Options): Document -F.
* doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
(TARGET_OPTF): Add.
* fix-header.c (target_c_incpath): Add.
* config/darwin-c.c: Add c-incpath.h include.
(using_frameworks, find_subframework_file,
find_subframework_header, add_system_framework_path,
frameworks_in_use, num_frameworks, max_frameworks,
add_framework, find_framework, struct framework_header,
framework_header_dirs, framework_construct_pathname,
find_subframework_file, add_system_framework_path,
add_framework_path, framework_defaults,
darwin_register_frameworks, find_subframework_header): Add.
* config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
(TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
(CPP_SPEC): Add __APPLE_CC__ support.
* t-darwin (darwin-c.o): Add c-incpath.h dependency.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23251
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-05 18:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-05 18:32 [Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line jrevans1 at earthlink dot net
2005-08-05 18:36 ` [Bug target/23251] " pinskia at gcc dot gnu dot org
2005-08-05 18:38 ` pinskia at gcc dot gnu 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).