public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.2.2  build on solaris-10 failing
@ 2008-03-17  9:41 Malay HALDER
  0 siblings, 0 replies; 4+ messages in thread
From: Malay HALDER @ 2008-03-17  9:41 UTC (permalink / raw)
  To: gcc-help

Hello maintainers,
                            I am trying to build gcc on solaris-10 i am 
using an already existing gcc-3.4.4 build on solais -8 and getting the 
below error ..please help me if you can tell the root cause of above 
problem>

gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. 
-I/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/../include  
-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-one.c 
-o pex-one.o
if [ x"`case '-g -fkeep-inline-functions -g -O2 -fno-implicit-templates' 
in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. 
-I/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/../include  
-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes `case '-g 
-fkeep-inline-functions -g -O2 -fno-implicit-templates' in *-fpic* ) 
echo -fpic ;; * ) echo -fPIC ;; esac` 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c 
-o pic/pex-unix.o; \
else true; fi
In file included from 
/tools/openbin/gcc/3.4.4/sparc-sun-solaris8/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/sys/signal.h:44,
                 from /usr/include/signal.h:26,
                 from 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:261: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:292: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault' 
was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file' 
was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof' 
was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl' 
was here
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:426: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: ISO C forbids data definition 
with no type or storage class
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
/usr/include/sys/siginfo.h:437: error: ISO C forbids data definition 
with no type or storage class
In file included from /usr/include/signal.h:26,
                 from 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/tools/openbin/gcc/3.4.4/sparc-sun-solaris8/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/sys/signal.h:96: 
error: parse error before "siginfo_t"
In file included from 
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c: 
In function `pex_wait':
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:100: 
warning: implicit declaration of function `waitpid'
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:103: 
warning: implicit declaration of function `wait4'
gmake[4]: *** [pex-unix.o] Error 1



thanks & regards
Malay

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

* Re: gcc-4.2.2 build on solaris-10 failing
  2008-03-12  8:31 ` Kai Ruottu
@ 2008-03-12 13:51   ` Dennis Clarke
  0 siblings, 0 replies; 4+ messages in thread
From: Dennis Clarke @ 2008-03-12 13:51 UTC (permalink / raw)
  To: Kai Ruottu; +Cc: Malay HALDER, gcc-help


> Malay HALDER wrote:
>> hello all,
>>             I am building gcc-4.2.2 on solaris 10 and the build is
>> failing ...
>>
>> *** configure is going on well but the build is failing with the
>> following message...i am using gcc compiler --gcc version 2.95.1
>> 19990816 (release)
>>
>> checking where to find the target windres... host tool
>> checking whether to enable maintainer-specific portions of Makefiles... no
>> checking whether -fkeep-inline-functions is supported... no
>> updating cache ./config.cache
>> creating ./config.status
>> *creating Makefile
>> sh:  : not found   -----> if possible please give me some hint
>> *** Error code 1*
>> dmake: Fatal error: Command failed for target `build-gcc'
>
> What is this "dmake"?  Building GCC needs 'GNU make', the Solaris'
> own, neither any other non-GNU 'make' will work :(  Please see the
> 'Prerequisites' in the fine "Installing GCC" manual!
> (http://gcc.gnu.org, "Manual")

Don't believe everything you read.

There are a few flavours of make in the world and they all seem to
work with the same intent and in different ways.  One needs to keep
focused on what "make" is supposed to do and the fact that the UNIX
make command was closed sourced and behind tightly shut doors for a
long long time.  Then again, that depends on if you look at OpenBSD
or FreeBSD or some other UNIX(tm) flavour that has been out there in
the world forever.

The GNU make is not the same thing in spite of doing a similar task
for the user. There is a reason, after all, why GNU stands for "GNU
is NOT UNIX" right? It just isn't, and don't think that you can go
into the Solaris world, a UNIX world, and use those standards compliant
and very well defined tools therein to achieve a desired result
when the input is from the GNU world. Things often just don't work
in spite of all the wonderful standards docs and compliance testing
that Solaris undergoes.  Why? Because the GNU stuff was never written
to work there. Simply put, the GNU world was created in order to get
away from the closed door closed source monster that UNIX had become.
The fact that the OpenSolaris project now exists and that a *lot* of
the sources are available is cool but you still can not compile a
lot of GNU world sources unless you use GNU tools.  You can not compile
the OpenSolaris guts ( the Operating System/Networking (ON)
consolidation ) with GCC either. That is in spite of the fact that ALL
of the code in the OpenSolaris PowerPC port was compiler with a GCC
cross compiler.  I bet you didn't know that!

For the sake of discussion ..

  look for the mention of XPG4 in here :
  http://www.blastwave.org/man/standards_5.html

  then look for /usr/xpg4 in here :
  http://www.blastwave.org/man/filesystem_5.html

  and again here :
  http://www.blastwave.org/man/make_1S.html

  and dmake is something else entirely :
  http://www.blastwave.org/man/dmake_1.html

So all "make"s are not created equal and dmake is not make and smake from
Jorg Schilling is not make and GNU make is not UNIX(tm) make nor is it
covered under any SUS ( Single UNIX Specification ) or POSIX compliance
standards documents etc etc.

But guess what?

You're stuck with it if you want to try to build GCC and a lot of other
stuff from the GNU world.  Truth is .. you could just stick with the
commercial grade Sun Studio 11 ( or 10 or 8 or maybe even 12 ) compilers and
tools and be done with it. If you do that .. then you will find that a LOT
of the GNU world sources simply don't compile without a massive pile of
warnings and often, errors.

So when it comes to getting GCC 4.2.2 to compile or even bootstrap on
Solaris 10 then I suggest you stick with the GNU tools to get a GNU compiler
created. When you are done it won't pass all of its own testsuites and who
knows what that means. I sure don't and I have been bootstrapping GCC for at
least a decade on Solaris.  Then again, have you read any of the bug reports
and patch releases for the Sun Studio compilers? I sure do and they are not
perfect either. They are better at creating tight fast binaries and they are
better at strict standards compliance but not perfect. GCC isn't either but
its getting there.

Oh, one last thing, I was able to bootstrap GCC 4.2.1 on Solaris just fine
but when I tried to do the same thing with GCC 4.2.2 on the exact same
machine and with the exact same tools ( Sun ONE Studio 8 compiler and
standard UNIX tools ) the process failed.  No amount of digging on my
part was able to get GCC 4.2.2 to build on that very same machine. It
was, in short, baffling.

So I just moved on to GCC 4.2.3 entirely.

Either way, you can download the Sun Studio 11 and Sun Studio 12 compilers
for free and just use them.

Dennis Clarke
Blastwave.org Founder

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

* Re: gcc-4.2.2 build on solaris-10 failing
  2008-03-12  7:44 Malay HALDER
@ 2008-03-12  8:31 ` Kai Ruottu
  2008-03-12 13:51   ` Dennis Clarke
  0 siblings, 1 reply; 4+ messages in thread
From: Kai Ruottu @ 2008-03-12  8:31 UTC (permalink / raw)
  To: Malay HALDER; +Cc: gcc-help

Malay HALDER wrote:
> hello all,
>             I am building gcc-4.2.2 on solaris 10 and the build is 
> failing ...
> 
> *** configure is going on well but the build is failing with the 
> following message...i am using gcc compiler --gcc version 2.95.1 
> 19990816 (release)
> 
> checking where to find the target windres... host tool
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking whether -fkeep-inline-functions is supported... no
> updating cache ./config.cache
> creating ./config.status
> *creating Makefile
> sh:  : not found   -----> if possible please give me some hint
> *** Error code 1*
> dmake: Fatal error: Command failed for target `build-gcc'

What is this "dmake"?  Building GCC needs 'GNU make', the Solaris'
own, neither any other non-GNU 'make' will work :(  Please see the
'Prerequisites' in the fine "Installing GCC" manual!
(http://gcc.gnu.org, "Manual")

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

* gcc-4.2.2 build on solaris-10 failing
@ 2008-03-12  7:44 Malay HALDER
  2008-03-12  8:31 ` Kai Ruottu
  0 siblings, 1 reply; 4+ messages in thread
From: Malay HALDER @ 2008-03-12  7:44 UTC (permalink / raw)
  To: gcc-help

hello all,
             I am building gcc-4.2.2 on solaris 10 and the build is 
failing ...

*SYSTEM DETAILS*

SunOS csbu061 5.10 Generic_118833-24 sun4u sparc SUNW,A70

*MY MAKEFILE DETAILS*
#-------------------- configure --------------------
$(CONFIGURED)-$(TOOL_NAME): $(DECOMPRESSED)-$(TOOL_NAME)
    $(SILENT)cd $(BUILD_DIR); \
            PATH=$(GMP_DIR)/bin:$(GCC_DIR)/bin:${PATH}; export PATH ; \
            
LD_LIBRARY_PATH=$(GCC_DIR)/lib:$(GMP_DIR)/lib:${LD_LIBRARY_PATH};export 
LD_LIBRARY_PATH && \
            CC=$(HOST_CC) CXX=$(HOST_CXX) MAKE=$(GMAKE) 
CFlAGS=$(GMP_DIR)/include \
            $(SRC_DIR)/configure \
                --prefix=$(DEST_DIR) \
                --disable-nls \
                --enable-shared \
                --enable-threads=posix \
                --with-ld=/usr/ccs/bin/ld \
                --with-as=/usr/ccs/bin/as \
                --enable-languages=c,c++,java

    $(SILENT)touch $@

#-------------------- build --------------------
$(BUILD)-$(TOOL_NAME): $(CONFIGURED)-$(TOOL_NAME)
        $(SILENT)cd $(BUILD_DIR); \
        PATH=$(GMP_DIR)/bin:$(GCC_DIR)/bin:${PATH}; export PATH; \
        LD_LIBRARY_PATH=$(GCC_DIR)/lib:$(GMP_DIR)/lib:${LD_LIBRARY_PATH} 
; export LD_LIBRARY_PATH && \
         $(GMAKE) CC=$(HOST_CC) CXX=$(HOST_CXX) CFLAGS=$(GMP_DIR)/include
    $(SILENT)touch $@


*** configure is going on well but the build is failing with the 
following message...i am using gcc compiler --gcc version 2.95.1 
19990816 (release)

*

checking where to find the target windres... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... no
updating cache ./config.cache
creating ./config.status
*creating Makefile
sh:  : not found   -----> if possible please give me some hint
*** Error code 1*
dmake: Fatal error: Command failed for target `build-gcc'


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

end of thread, other threads:[~2008-03-17  9:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-17  9:41 gcc-4.2.2 build on solaris-10 failing Malay HALDER
  -- strict thread matches above, loose matches on Subject: below --
2008-03-12  7:44 Malay HALDER
2008-03-12  8:31 ` Kai Ruottu
2008-03-12 13:51   ` Dennis Clarke

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