Opened 2 months ago

Last modified 10 days ago

#70473 accepted defect

stklos @1.70: error: macro names must be identifiers

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: powerpc Cc:
Port: stklos

Description

SUMMARY
*******
               System:  -
              OS nick:  _
              OS type: 
      Install prefix :  /opt/local
           C compiler:  ccache /usr/bin/gcc-4.2 -std=gnu99
    Compilation flags:  -pipe -Os -arch ppc
               Loader:  ld
       Thread support:  pthreads
     Case sensitivity:  true (by default)
Control fx parameters:  yes
System libraries used:  libffi libpcre libgmp libgc
   Compiled libraries: 
 
If this is correct, you can just type 'make' now at your shell prompt.
Otherwise, re-run 'configure' with correct options.
 
--->  Building stklos
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70" && /usr/bin/make -j6 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70'
Making all in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/src'
/usr/bin/make  all-am
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/src'
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o base64.o base64.c
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT boolean.o -MD -MP -MF .deps/boolean.Tpo -c -o boolean.o boolean.c
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT boot.o -MD -MP -MF .deps/boot.Tpo -c -o boot.o boot.c
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT box.o -MD -MP -MF .deps/box.Tpo -c -o box.o box.c
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT char.o -MD -MP -MF .deps/char.Tpo -c -o char.o char.c
ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.      -I/opt/local/include -pipe -Os -arch ppc  -pipe -Os -arch ppc -MT cond.o -MD -MP -MF .deps/cond.Tpo -c -o cond.o cond.c
In file included from stklos.h:57,
                 from boolean.c:28:
extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers
In file included from ./stklos.h:57,
                 from base64.c:27:
./extraconf.h:34:24: error: macro names must be identifiers
./extraconf.h:41:10: error: macro names must be identifiers
make[2]: *** [base64.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [boolean.o] Error 1
In file included from stklos.h:57,
                 from box.c:28:
extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers
In file included from stklos.h:57,
                 from boot.c:7:
extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers
make[2]: *** [box.o] Error 1
In file included from stklos.h:57,
                 from char.c:30:
extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers
In file included from stklos.h:57,
                 from cond.c:27:
extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers
make[2]: *** [cond.o] Error 1
make[2]: *** [char.o] Error 1
make[2]: *** [boot.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/src'
make: *** [all-recursive] Error 1

Attachments (1)

main.log (43.4 KB) - added by barracuda156 2 months ago.

Download all attachments as: .zip

Change History (3)

Changed 2 months ago by barracuda156

Attachment: main.log added

comment:1 in reply to:  description ; Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Keywords: powerpc added
Owner: set to ryandesign
Status: newaccepted
Summary: stklos build failure: error: macro names must be identifiersstklos @1.70: error: macro names must be identifiers

Replying to barracuda156:

SUMMARY
*******
               System:  -
              OS nick:  _
              OS type: 

Probably relevant that it hasn't identified your operating system above because:

extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers

Line 34 is:

#define @OS_NAME@               1

Line 41 is:

#define @OS_FLAVOUR@ 1

I presume those placeholders didn't get replaced with something valid on your system.

I see you are on Mac OS X 10.6 ppc. From build logs on Mac OS X 10.6 x86_64 you should be seeing something more like:

SUMMARY
*******
               System:  Darwin-10.8.0
              OS nick:  DARWIN_10
              OS type:  unix

Version 2.00 is available and includes several fixes I submitted and I should update the port but these placeholders are still there in 2.00 so it may not improve on this problem.

comment:2 in reply to:  1 Changed 10 days ago by barracuda156

Replying to ryandesign:

Replying to barracuda156:

SUMMARY
*******
               System:  -
              OS nick:  _
              OS type: 

Probably relevant that it hasn't identified your operating system above because:

extraconf.h:34:24: error: macro names must be identifiers
extraconf.h:41:10: error: macro names must be identifiers

Line 34 is:

#define @OS_NAME@               1

Line 41 is:

#define @OS_FLAVOUR@ 1

I presume those placeholders didn't get replaced with something valid on your system.

Output variables capture the triple correctly:

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\'' aclocal-1.16'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\'' automake-1.16'
AWK='gawk'
BUILD_ARCH='Power Macintosh'
BUILD_OS='-'
CC='ccache /usr/bin/gcc-4.2 -std=gnu99'
CCDEPMODE='depmode=gcc3'
CFLAGS='-pipe -Os -arch ppc'
COMPOBJ=''
COMPSRC=''
CONF_SUMMARY='(:system (libffi libpcre libgmp libgc ) :compiled () :configure ( \"--prefix=/opt/local\" \"CC=ccache /usr/bin/gcc-4.2 -std=gnu99\" \"CFLAGS=-pipe -Os -arch ppc\"))'
CONTROL_FX_PARAMETERS='1'
CPP='ccache /usr/bin/gcc-4.2 -std=gnu99 -E'
CPPFLAGS='-I/opt/local/include'
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFAULT_CS='1'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DLLIBS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
ETAGS='etags'
EXECDIR='/opt/local/lib/stklos/1.70'
EXEEXT=''
EXTRA_COMP_FLAGS=''
FFI=''
FFIINC=''
FFILIB='-L/opt/local/lib -lffi'
GC=''
GCINC=''
GCLIB='-L/opt/local/lib -lgc -lpthread'
GMP=''
GMPINC=''
GMPLIB='-lgmp'
GOOCANV='absent'
GOOVERS=''
GTK_CFLAGS=''
HAVE_CANVAS='0'
HAVE_DLOPEN='yes'
HAVE_GNOME=''
HAVE_GTK='0'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDAP_LIB=''
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
LIBOBJS=' ${LIBOBJDIR}error$U.o ${LIBOBJDIR}lstat$U.o'
LIBS='-lpthread '
LN_S='ln -s'
LTLIBOBJS=' ${LIBOBJDIR}error$U.lo ${LIBOBJDIR}lstat$U.lo'
MAKEINFO='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/missing'\'' makeinfo'
MKDIR_P='/opt/local/bin/gmkdir -p'
NO_THREAD_FALSE=''
NO_THREAD_TRUE='#'
OBJEXT='o'
OS_FLAVOUR=''
OS_NAME=''
OS_NAME_VERSION='_'
PACKAGE='stklos'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='stklos'
PACKAGE_STRING='stklos 1.70'
PACKAGE_TARNAME='stklos'
PACKAGE_URL=''
PACKAGE_VERSION='1.70'
PATH_SEPARATOR=':'
PCRE=''
PCREINC=''
PCRELIB='-L/opt/local/lib -lpcre -lpcreposix'
PCREPKG='present'
PKGCONFIG='pkg-config'
POW_LIB=''
PREFIX='/opt/local'
PTHREADS_FALSE='#'
PTHREADS_TRUE=''
RANLIB='ranlib'
SCMDIR='/opt/local/share/stklos/1.70'
SET_MAKE=''
SHELL='/bin/sh'
SH_COMP_FLAGS=''
SH_LIB_SUFFIX=''
SH_LOADER=''
SH_LOAD_FLAGS=''
SH_MAIN_LOAD_FLAGS=''
SH_SUFFIX=''
STACK_DIRECTION='DOWN'
STKCFLAGS=''
STRIP=''
STRIPCMD='strip'
THREADS='pthreads'
UNAME_O='Darwin'
VERSION='1.70'
ac_ct_CC='ccache /usr/bin/gcc-4.2'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-apple-darwin10.0.0d2'
build_alias=''
build_cpu='powerpc'
build_os='darwin10.0.0d2'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='powerpc-apple-darwin10.0.0d2'
host_alias=''
host_cpu='powerpc'
host_os='darwin10.0.0d2'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stklos/stklos/work/stklos-1.70/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

So I guess, it may be again a handicapped sed expression which breaks down on OS stage appended to its version.

Note: See TracTickets for help on using tickets.