Opened 14 years ago

Closed 13 years ago

#27966 closed defect (fixed)

bmake @20060728 Failure parsing /usr/share/mk/bsd.compat.mk on install

Reported by: halcyonic@… Owned by: tdflavius@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: bmake

Description

When you try to install bmake, it seems to choke on parsing bsd.compat.mk. Compile log below::

--->  Building bmake
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o arch.o arch.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o buf.o buf.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o compat.o compat.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o cond.o cond.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o dir.o dir.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o for.o for.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o hash.o hash.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o job.o job.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\" "-DMACHINE=\"darwin10\"" "-DMACHINE_ARCH=\"i386\"" -o main.o -c ./main.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o make.o make.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o parse.o parse.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o str.o str.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o suff.o suff.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o targ.o targ.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o trace.o trace.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o var.o var.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o util.o util.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o getopt.o getopt.c
/usr/bin/gcc-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"   -c -o sigcompat.o sigcompat.c
(cd lst.lib; /usr/bin/make -f makefile.boot CC="/usr/bin/gcc-4.2" CFLAGS="-I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH=\"/opt/local/share/mk\"" )
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstAppend.o lstAppend.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstDupl.o lstDupl.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstInit.o lstInit.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstOpen.o lstOpen.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstAtEnd.o lstAtEnd.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstEnQueue.o lstEnQueue.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstInsert.o lstInsert.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstAtFront.o lstAtFront.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstIsAtEnd.o lstIsAtEnd.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstClose.o lstClose.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstFind.o lstFind.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstIsEmpty.o lstIsEmpty.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstRemove.o lstRemove.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstConcat.o lstConcat.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstFindFrom.o lstFindFrom.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstLast.o lstLast.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstReplace.o lstReplace.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstFirst.o lstFirst.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstDatum.o lstDatum.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstForEach.o lstForEach.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstMember.o lstMember.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstSucc.o lstSucc.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstDeQueue.o lstDeQueue.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstForEachFrom.o lstForEachFrom.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstDestroy.o lstDestroy.c
/usr/bin/gcc-4.2 -I.. -I../. -I. -I. -I. -DHAVE_CONFIG_H -I/opt/local/include  -D_PATH_DEFSYSPATH="/opt/local/share/mk"   -c -o lstNext.o lstNext.c
/usr/bin/gcc-4.2 *.o lst.lib/*.o -o bmake.boot -L/opt/local/lib -arch x86_64 
rm -f *.[ado] */*.[ado] 
CC="/usr/bin/gcc-4.2" LIBC= MAKEFLAGS= MAKESYSPATH=`pwd`/mk:./../mk:/opt/local/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk ./bmake.boot -f Makefile 
bmake.boot: "/usr/share/mk/bsd.compat.mk" line 36: Need an operator
bmake.boot: Fatal errors encountered -- cannot continue

bmake.boot: stopped in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_bmake/work/bmake
make: *** [bootstrap] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_bmake/work/bmake" && /usr/bin/make -j4 bootstrap -f makefile.boot " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for bmake): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for bmake is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_bmake/main.log
Error: Status 1 encountered during processing.

Attachments (1)

Portfile (1.5 KB) - added by mfeiri 13 years ago.
Update to 20110622 and general overhaul (including fix for this bug)

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by halcyonic@…

Ack...port is bmake, obviously...bsd.compat.mk was supposed to go in keywords.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to tdflavius@…
Port: bsd.compat.mk removed

comment:3 Changed 14 years ago by tdflavius@…

The problem is that bmake tries to use system wide setting however bsd.compat.mk uses the freebsd make syntax that is incompatoble with bmake which is the netbsd make. The solution is to find the configuration switch that has bmake ignore bsd.compat.mk and all files in /usr/share/mk.

I investigated the problem a long time ago and was unable to find a complete solution: I found the switch for stage1 of the bootstrap but stage2 would fail.

Changed 13 years ago by mfeiri

Attachment: Portfile added

Update to 20110622 and general overhaul (including fix for this bug)

comment:4 Changed 13 years ago by mfeiri

Resolution: fixed
Status: newclosed

Port resurrected in r84480

Note: See TracTickets for help on using tickets.