LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-21-2013, 01:35 AM   #1
madhav024
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
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
 
Old 01-21-2013, 05:19 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
insufficient info, please provide more details: what do you want to build, what did you execute before this make command...
 
Old 01-21-2013, 07:01 PM   #3
madhav024
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-22-2013, 12:17 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
have you checked the file mentioned in the error message? What is in line 148?
 
Old 01-22-2013, 03:51 AM   #5
madhav024
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-22-2013, 04:20 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] hostapd 'make' fails -- fatal error: demangle.h Sum1 Linux - Software 9 11-10-2012 05:51 AM
Error 502 : Display Fatal Error Message, Error pushing image, dbpaCT failed! HaloCheng Linux - Newbie 1 09-12-2012 12:02 PM
[SOLVED] php5 ./configure error: (FILENAME=- FNR=27) fatal error: internal error richinsc Linux - Software 2 07-08-2010 09:20 AM
"ld: fatal:" Error 1 running make on libiconv 1.13.1 penyuan Solaris / OpenSolaris 2 10-26-2009 01:57 AM
make: Fatal error: Command failed for target `all-recursive' vous Linux - Software 1 07-13-2009 07:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration