STUBODBN.mak "LNK1146: no argument specified with option '/MACHINE:'"
search cancel

STUBODBN.mak "LNK1146: no argument specified with option '/MACHINE:'"

book

Article ID: 241646

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

Using the documented Gen 8.6 nmake command to rebuild the ODBC stub from Rebuilding DBMS DLLs and Executables > DBMS Stub EXE Rebuilding i.e.
nmake -nologo -s -fSTUBODBN.mak all

Received an error on the initial DDL part of the build: LNK1146: no argument specified with option '/MACHINE:'

Environment

Release : 8.6

Component : Gen Build Tool

Cause

The STUBODBN.MAK is calling "C:\Program Files (x86)\CA\Gen86\Gen\ddl\makeddl.bat" without the 3rd parameter for GEN_BITS_MACHINE. The makeddl.bat calls makefile.nt which in turn calls tiddl.mak which contains "/MACHINE:$(GEN_BITS_MACHINE)"

Resolution

To resolve the link error change this line in STUBODBN.MAK to add the 3rd parameter for GEN_BITS_MACHINE:
"%GEN86%gen\ddl\makeddl.bat" ODBC $(GEN_BITS_DIR)
To:
"%GEN86%gen\ddl\makeddl.bat" ODBC $(GEN_BITS_DIR) $(GEN_BITS_MACHINE)

Additional Information

NOTE:
The DB2 stub make file STUBDB2N.MAK has the same problem with missing $(GEN_BITS_MACHINE) i.e. "%GEN86%gen\ddl\makeddl.bat" DB2 $(GEN_BITS_DIR)
The Oracle stub make file STUBORAN.MAK does not have the problem i.e. "%GEN86%gen\ddl\makeddl.bat" ORACLE $(GEN_BITS_DIR) $(GEN_BITS_MACHINE)

This problem will be resolved in PTF RTN86224/LU06041.