View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012453GCC-XML(No Category)public2011-09-09 23:382015-03-26 11:59
ReporterYouhei Sakurai 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionsuspended 
PlatformG4 PPC MacminiOSOS X LeopardOS Version10.5.8
Summary0012453: make fails on PPC Leopard
DescriptionAfter cmake succeeded, I should modify "GCC/gcc/config/rs6000/host-darwin.c" to make.
Steps To Reproducemacmini:gccxml administrator$ mkdir build
macmini:gccxml administrator$ cd build/
macmini:build administrator$ cmake ../
macmini:build administrator$ make
Additional Information############################################################################
# DIFF
############################################################################

macmini:build administrator$ diff ../GCC/gcc/config/rs6000/host-darwin.c ../GCC/gcc/config/rs6000/host-darwin.c.org
39c39
< //extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
---
> extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
81c81
< faulting_insn = *(unsigned *)uc->uc_mcontext->MC_FLD(__ss).MC_FLD(__srr0);
---
> faulting_insn = *(unsigned *)uc->uc_mcontext->MC_FLD(ss).MC_FLD(srr0);
130,131c130,131
< uc->uc_mcontext->MC_FLD(__es).MC_FLD(__dar),
< uc->uc_mcontext->MC_FLD(__ss).MC_FLD(__srr0));
---
> uc->uc_mcontext->MC_FLD(es).MC_FLD(dar),
> uc->uc_mcontext->MC_FLD(ss).MC_FLD(srr0));

############################################################################
# ENVIRONMENT
############################################################################

macmini:build administrator$ uname -a
Darwin macmini.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
macmini:build administrator$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --program-prefix= --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)
macmini:build administrator$ cmake --version
cmake version 2.8.5

############################################################################
# ERROR MESSAGES
############################################################################
[ 77%] Building C object GCC/gcc/CMakeFiles/backend.dir/config/rs6000/host-darwin.c.o
/Users/administrator/svn/gccxml/GCC/gcc/config/rs6000/host-darwin.c:39: error: conflicting types for ‘sigaltstack’
/usr/include/signal.h:89: error: previous declaration of ‘sigaltstack’ was here
/Users/administrator/svn/gccxml/GCC/gcc/config/rs6000/host-darwin.c: In function ‘segv_handler’:
/Users/administrator/svn/gccxml/GCC/gcc/config/rs6000/host-darwin.c:81: error: ‘struct __darwin_mcontext’ has no member named ‘ss’
/Users/administrator/svn/gccxml/GCC/gcc/config/rs6000/host-darwin.c:130: error: ‘struct __darwin_mcontext’ has no member named ‘es’
/Users/administrator/svn/gccxml/GCC/gcc/config/rs6000/host-darwin.c:131: error: ‘struct __darwin_mcontext’ has no member named ‘ss’

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0027441)
Brad King (manager)
2011-09-16 16:26

The sigaltstack declaration should only appear when this platform check fails:

 config_cmake/CMakeLists.txt:CHECK_DECL_EXISTS(sigaltstack HAVE_DECL_SIGALTSTACK)

Please look at CMakeFiles/CMakeError.log for mention of HAVE_DECL_SIGALTSTACK to see why it doesn't think the system declares the function.

The struct member names are defined here:

 /usr/include/ppc/_structs.h

and switch based on how __DARWIN_UNIX03 is defined here:

 /usr/include/sys/cdefs.h

More investigation is needed as to why the names do not match those expected by the source.
(0038320)
Brad King (manager)
2015-03-26 11:59

As announced here:

 [ANNOUNCE] GCC-XML maintenance moving to Github
 http://thread.gmane.org/gmane.comp.compilers.gccxml/731 [^]
 http://public.kitware.com/pipermail/gccxml/2015-March/003206.html [^]

gccxml will no longer be developed by its original author, who will instead focus on CastXML:

 https://github.com/CastXML/CastXML#readme [^]

The original GCC-XML issue tracker is now closed. In order to facilitate ongoing maintenance by community participants, issues will now be tracked on the Github repository page:

 https://github.com/gccxml/gccxml/issues [^]

 Issue History
Date Modified Username Field Change
2011-09-09 23:38 Youhei Sakurai New Issue
2011-09-16 16:26 Brad King Note Added: 0027441
2011-09-16 16:27 Brad King Assigned To => Brad King
2011-09-16 16:27 Brad King Status new => assigned
2015-03-26 11:59 Brad King Note Added: 0038320
2015-03-26 11:59 Brad King Status assigned => resolved
2015-03-26 11:59 Brad King Resolution open => suspended


Copyright © 2000 - 2018 MantisBT Team