LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   make: Fatal error in reader: (http://www.linuxquestions.org/questions/solaris-opensolaris-20/make-fatal-error-in-reader-4175446539/)

madhav024 01-21-2013 01:35 AM

make: Fatal error in reader:
 
Hi,

I am using solaris 8, and when i compile using the command make its throwing the below error

Can someone help me in reaching out this problem

command : make CPU=SIMLINUX TOOL=gnu

Error:

make: Fatal error in reader: ..... /h/make/rules.library, line 148: Unexpected end of line seen

Thanks & Regards,
Madhav

pan64 01-21-2013 05:19 AM

insufficient info, please provide more details: what do you want to build, what did you execute before this make command...

madhav024 01-21-2013 07:01 PM

I am trying to build some vxworks sample driver, when i am trying to build .o it its throwing the above error.

Please have a look at make file :

# Makefile - makefile for target/3rdparty/windriver/wrsample
#
# modification history
# --------------------
# 01c,13oct08,h_k moved wrsampleApp.o to apps/Makefile.
# fixed EXTRA_INCLUDE path.
# 01b,02sep08,h_k changed CC_OPTIM_NORMAL to enable optimize flags.
# 01a,21aug07,tor created
#
# DESCRIPTION
# This file contains the makefile rules for building the
# wrsample driver, contained in the 3rd-party driver
# library provided by Wind River
#

#
# Do not modify TGT_DIR. This is constant across all
# drivers and modules.
#
TGT_DIR=$(WIND_BASE)/target

#
# The DOC_FILES macro is used to create per-function
# documentation for the user-accessible functions available
# in the source files listed. By convention, we expect that
# each 3rd party driver will be in a separate directory, and
# only one file will be listed here. The documentation is
# created when "make release" is run.
#
DOC_FILES=wrsample.c

#
# The LIB_BASE_NAME specifies the library in which the
# precompiled object modules will be put. The name of
# the library should be the name of the company that
# supports the driver.
#
LIB_BASE_NAME=windriver

#
# The EXTRA_INCLUDE line is used to indicate additional
# directories to search for include files when compiling
# the source files in this directory. The value here is
# redundant, but listed to show what application code would
# need if it uses any header file from this directory.
#
EXTRA_INCLUDE += -I$(TGT_DIR)/3rdparty/windriver/wrsample

#
# The OBJS_COMMON macro lists the object modules that
# are created in this directory, independent of architecture.
# If the driver in this directory is valid only for a
# single architecture, then you may specify a CPU-specific
# macro instead, e.g. OBJS_PPC32
#
OBJS_COMMON = wrsample.o

#
# Do not modify the OBJS macro.
#
OBJS = $(OBJS_COMMON) $(OBJS_$(CPU))

#
# Do not modify the following include.
#
include $(TGT_DIR)/h/make/rules.library

#
# Do not modify the following macro or include.
#
CC_OPTIM=$(CC_OPTIM_NORMAL)
include $(TGT_DIR)/h/make/defs.drivers



I think this info is useful, for further info please revert.

Thanks & Regards,
Madhav.

pan64 01-22-2013 12:17 AM

have you checked the file mentioned in the error message? What is in line 148?

madhav024 01-22-2013 03:51 AM

line 147 ifeq ($(DEFS_LIBRARY),)
line 148 include $(TGT_DIR)/h/make/defs.library
line 149 endif


above three lines are there in the file, we cannot make any modification under this file. is there any way how to rectify this error.

pan64 01-22-2013 04:20 AM

does that defs.library exist? you can use make -d to debug makefile and get much more info. probably you can catch some strange thing


All times are GMT -5. The time now is 05:12 AM.