public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem building on FreeBSD 3.2: "Alignment not a power of 2"
@ 2001-02-02 17:49 Chip Olson
  2001-02-03  9:40 ` Alexandre Oliva
  0 siblings, 1 reply; 9+ messages in thread
From: Chip Olson @ 2001-02-02 17:49 UTC (permalink / raw)
  To: gcc-help

I'm trying to build 2.95.2 on a FreeBSD 3.2 machine, and am getting the
following results:

[...]
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2  _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2  _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi  _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi  _fixtfdi
_fixunstfdi _floatditf  __gcc_bcmp _varargs __dummy _eprintf  _bb _shtab
_clear_cache _trampoline __main _exit  _ctors _pure;  do  echo ${name}; 
./xgcc -B/usr/local/gcc/i386-unknown-freebsd/bin/ -B./
-I/usr/local/gcc/i386-unknown-freebsd/include -O2   -DIN_GCC    -g
-I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I.
-I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
-I../../gcc-2.95.2/gcc/../include -c -DL${name} 
../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o;  if [ $? -eq 0 ] ; then true;
else exit 1; fi;  `  if [ -f
/usr/home/ceo/dnload/gcc-build/gcc/../binutils/ar ] ; then  echo
/usr/home/ceo/dnload/gcc-build/gcc/../binutils/ar ;  else  if [
"i386-unknown-freebsd" = "i386-unknown-freebsd" ] ; then  echo ar;  else 
t='s,x,x,'; echo ar | sed -e $t ;  fi;  fi` rc tmplibgcc2.a ${name}.o;  rm
-f ${name}.o;  done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
/var/tmp/cc4VzsQh.s: Assembler messages:
/var/tmp/cc4VzsQh.s:138: Error: Alignment not a power of 2
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


I saw a reply to a similar problem that suggested that the assembler was
out of date. I'm using gas 2.9.1, which is what comes with binutils 2.10.1;
is there something newer I should be using?

Sadly, upgrading the OS version isn't an option.

-- 
-Chip Olson. | ceo at shore dot net
"You ask me why we celebrate, when nothing has been won;
 We take dark hours, we make them great, that's all we've ever done..."
                            -Oysterband, "This Is The Voice".

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-02 17:49 Problem building on FreeBSD 3.2: "Alignment not a power of 2" Chip Olson
@ 2001-02-03  9:40 ` Alexandre Oliva
  2001-02-05 13:03   ` Chip Olson
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2001-02-03  9:40 UTC (permalink / raw)
  To: Chip Olson; +Cc: gcc-help

On Feb  2, 2001, Chip Olson <ceo@shore.net> wrote:

> I'm using gas 2.9.1, which is what comes with binutils 2.10.1;

If gas says it's from binutils 2.9.1, you've got the wrong gas.  The
one in binutils 2.10.1 says 2.10.1.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-03  9:40 ` Alexandre Oliva
@ 2001-02-05 13:03   ` Chip Olson
  2001-02-05 17:58     ` Alexandre Oliva
  0 siblings, 1 reply; 9+ messages in thread
From: Chip Olson @ 2001-02-05 13:03 UTC (permalink / raw)
  To: gcc-help

Alexandre Oliva wrote:
> 
> On Feb  2, 2001, Chip Olson <ceo@shore.net> wrote:
> 
> > I'm using gas 2.9.1, which is what comes with binutils 2.10.1;
> 
> If gas says it's from binutils 2.9.1, you've got the wrong gas.  The
> one in binutils 2.10.1 says 2.10.1.

I suppose that should have been kind of obvious. :-)

However, after I built and installed gas 2.10.1, I got the exact same
result.

-- 
-Chip Olson. | ceo at shore dot net
"You ask me why we celebrate, when nothing has been won;
 We take dark hours, we make them great, that's all we've ever done..."
                            -Oysterband, "This Is The Voice".

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-05 13:03   ` Chip Olson
@ 2001-02-05 17:58     ` Alexandre Oliva
  2001-02-05 18:26       ` Chip Olson
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2001-02-05 17:58 UTC (permalink / raw)
  To: Chip Olson; +Cc: gcc-help

On Feb  5, 2001, Chip Olson <ceo@shore.net> wrote:

> However, after I built and installed gas 2.10.1, I got the exact same
> result.

Did you configure GCC --with-gnu-as?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-05 17:58     ` Alexandre Oliva
@ 2001-02-05 18:26       ` Chip Olson
  2001-02-05 18:46         ` Alexandre Oliva
  0 siblings, 1 reply; 9+ messages in thread
From: Chip Olson @ 2001-02-05 18:26 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-help

Alexandre Oliva wrote:
> 
> On Feb  5, 2001, Chip Olson <ceo@shore.net> wrote:
> 
> > However, after I built and installed gas 2.10.1, I got the exact same
> > result.
> 
> Did you configure GCC --with-gnu-as?

Same result there too. I should probably mention that I'm specifying a host
type (i386-unknown-freebsd), because my machine's uname output is something
completely different. It's my development machine here at work, and our
product runs on a slightly modified FreeBSD kernel, hence my machine does
too. The modifications are all in the networking code, however. I doubt
this has anything to do with the problem, but I've certainly been wrong
before. :-)

-- 
-Chip Olson. | ceo at shore dot net
"You ask me why we celebrate, when nothing has been won;
 We take dark hours, we make them great, that's all we've ever done..."
                            -Oysterband, "This Is The Voice".

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-05 18:26       ` Chip Olson
@ 2001-02-05 18:46         ` Alexandre Oliva
  2001-02-06 13:53           ` Chip Olson
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2001-02-05 18:46 UTC (permalink / raw)
  To: Chip Olson; +Cc: gcc-help

On Feb  6, 2001, Chip Olson <ceo@shore.net> wrote:

> Same result there too. I should probably mention that I'm specifying a host
> type (i386-unknown-freebsd), because my machine's uname output is something
> completely different.

Hmm...  Well, then it may be that the bug is in GCC 2.95.2.  I do
build development snapshots of GCC using GNU as on FreeBSD 3 boxes
weekly, but I'm not sure I've ever had a chance to attempt to build
GCC 2.95.2 on the FreeBSD boxes I've got guest access to.

My next suggestions are to try to go without GNU as (using the native
assembler), or to try a development snapshot with GNU as.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-05 18:46         ` Alexandre Oliva
@ 2001-02-06 13:53           ` Chip Olson
  2001-02-06 16:28             ` Alexandre Oliva
  0 siblings, 1 reply; 9+ messages in thread
From: Chip Olson @ 2001-02-06 13:53 UTC (permalink / raw)
  To: gcc-help

Alexandre Oliva wrote:
> 
> On Feb  6, 2001, Chip Olson <ceo@shore.net> wrote:
> 
> > Same result there too. I should probably mention that I'm specifying a host
> > type (i386-unknown-freebsd), because my machine's uname output is something
> > completely different.
> 
> Hmm...  Well, then it may be that the bug is in GCC 2.95.2.  I do
> build development snapshots of GCC using GNU as on FreeBSD 3 boxes
> weekly, but I'm not sure I've ever had a chance to attempt to build
> GCC 2.95.2 on the FreeBSD boxes I've got guest access to.
> 
> My next suggestions are to try to go without GNU as (using the native
> assembler), or to try a development snapshot with GNU as.

Well, since I was using the native assemble to begin with, I decided to go
with your second suggestion instead. With gcc-20010205, it got a *lot*
further, but failed at this point:

[...]
(MAKE="make"; srcdir=`cd ../../gcc-20010205/gcc/fixinc && pwd` ; 
CC="stage1/xgcc -Bstage1/ -B/usr/local/gcc/i386-unknown-freebsd/bin/";
CFLAGS="-g -O2"; LDFLAGS="";  WARN_CFLAGS="-W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long";  export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS; cd
./fixinc &&  /bin/sh ${srcdir}/mkfixinc.sh i386-unknown-freebsd
i386-unknown-freebsd)
constructing ../fixinc.sh for i386-unknown-freebsd to run on
i386-unknown-freebsd
make TARGETS=oneprocess SHELL="/bin/sh" CC="stage1/xgcc -Bstage1/
-B/usr/local/gcc/i386-unknown-freebsd/bin/" CFLAGS="-g -O2" LDFLAGS=""
install-bin
/bin/sh ../../../gcc-20010205/gcc/fixinc/genfixes machname.h
Forbidden identifiers: i386 unix 
stage1/xgcc -Bstage1/ -B/usr/local/gcc/i386-unknown-freebsd/bin/ -c
-DIN_GCC -g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I..
-I../../../gcc-20010205/gcc/fixinc -I../../../gcc-20010205/gcc/fixinc/.. 
-I../../../gcc-20010205/gcc/fixinc/../config
-I../../../gcc-20010205/gcc/fixinc/../../include
../../../gcc-20010205/gcc/fixinc/fixincl.c
stage1/xgcc: not found
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Interestingly, stage1/xgcc is definitely still there at this point, and
it's been chewing along merrily recompiling itself for quite a while when
this happens. The contents of machname.h are:

#define MN_NAME_PAT "\\<i386\\>|\\<unix\\>"

I suspect that my machine's non-standard setup has something to do with
this (anything that seems to be checking the host type makes me nervous on
this machine), but I don't know enough about what the compilation process
is trying to accomplish here. 

Many thanks,
-- 
-Chip Olson. | ceo at shore dot net
"You ask me why we celebrate, when nothing has been won;
 We take dark hours, we make them great, that's all we've ever done..."
                            -Oysterband, "This Is The Voice".

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-06 13:53           ` Chip Olson
@ 2001-02-06 16:28             ` Alexandre Oliva
  2001-02-06 17:25               ` Chip Olson
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandre Oliva @ 2001-02-06 16:28 UTC (permalink / raw)
  To: Chip Olson; +Cc: gcc-help

On Feb  6, 2001, Chip Olson <ceo@shore.net> wrote:

> Well, since I was using the native assemble to begin with, I decided to go
> with your second suggestion instead. With gcc-20010205, it got a *lot*
> further, but failed at this point:

Is srcdir == objdir?  Try a separate directory.  This has been known
to not work lately.  We're working to fix it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: Problem building on FreeBSD 3.2: "Alignment not a power of 2"
  2001-02-06 16:28             ` Alexandre Oliva
@ 2001-02-06 17:25               ` Chip Olson
  0 siblings, 0 replies; 9+ messages in thread
From: Chip Olson @ 2001-02-06 17:25 UTC (permalink / raw)
  To: gcc-help

Alexandre Oliva wrote:

> Is srcdir == objdir?  Try a separate directory.  This has been known
> to not work lately.  We're working to fix it.

I am using a separate directory. Maybe I should try it the other way? :-)
 
-- 
-Chip Olson. | ceo at shore dot net
"You ask me why we celebrate, when nothing has been won;
 We take dark hours, we make them great, that's all we've ever done..."
                            -Oysterband, "This Is The Voice".

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

end of thread, other threads:[~2001-02-06 17:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 17:49 Problem building on FreeBSD 3.2: "Alignment not a power of 2" Chip Olson
2001-02-03  9:40 ` Alexandre Oliva
2001-02-05 13:03   ` Chip Olson
2001-02-05 17:58     ` Alexandre Oliva
2001-02-05 18:26       ` Chip Olson
2001-02-05 18:46         ` Alexandre Oliva
2001-02-06 13:53           ` Chip Olson
2001-02-06 16:28             ` Alexandre Oliva
2001-02-06 17:25               ` Chip Olson

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