LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2022, 10:58 AM   #16
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965

Quote:
Originally Posted by rpittala View Post
@TB0ne, When I am able to reproduce the problem with a simple make file. Why do you need an actual make file?
Either answer questions and provide details or don't...if you don't, there's NOTHING we can help you with. AGAIN:
  • You have *TEN YEARS* experience with this so far.
  • You WILL NOT answer questions (command(s) you've used? Exact messages??)
  • You mention both Solaris and RHEL...the makefile syntax is different as you well know.
Want help??? Then answer the questions asked, and provide the makefile. Otherwise, figure it out yourself, because we can't help you until you actually give us answers.
 
Old 08-01-2022, 11:00 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by rpittala View Post
@TB0ne, When I am able to reproduce the problem with a simple make file. Why do you need an actual make file?
The makefile works in a quite unusual way, not like a script or progrmming language. Therefore posting only one line of a makefile is completely pointless.
From the other hand I think a line like this:
Code:
/home/rpittala/source/code/check_buffer_size.o   := C_SOURCE_CODE_LOCATION_OPTIONS=-i=$(BUILD_SUPPORT)/external_block_options.h
is either incorrect or just not copied properly.
I guess the fist := should be a : (without =), but this is only a wild guess and probably won't solve anything. Without knowing the other parts of the makefile hard to say anything.

You may try to use the -p flag too (if you wish)
Code:
# instead of 
make all <some args>
# add a -p:
make all <some args> -p
 
Old 08-01-2022, 11:03 AM   #18
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pan64 View Post
The makefile works in a quite unusual way, not like a script or progrmming language. Therefore posting only one line of a makefile is completely pointless.
From the other hand I think a line like this:
Code:
/home/rpittala/source/code/check_buffer_size.o   := C_SOURCE_CODE_LOCATION_OPTIONS=-i=$(BUILD_SUPPORT)/external_block_options.h
is either incorrect or just not copied properly.
I guess the fist := should be a : (without =), but this is only a wild guess and probably won't solve anything. Without knowing the other parts of the makefile hard to say anything.

You may try to use the -p flag too (if you wish)
Code:
# instead of 
make all <some args>
# add a -p:
make all <some args> -p
Agreed; but someone with a decade of experience with makefiles (such as the OP) should be well aware of how they work.
 
1 members found this post helpful.
Old 08-01-2022, 01:20 PM   #19
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Quote:
Originally Posted by rpittala View Post
I can not send the complete make files. But, I have created a sample make for our understanding:

Code:
C_SOURCE_FLOATING_POINT_OPTIONS=-tPPCE200Z7NEN -WDDFP=N
FLOATING_POINT_OPTIONS=-tPPCE200Z7NEF -WDDFP=G
#C_SOURCE_FLOATING_POINT_OPTIONS := $(FLOATING_POINT_OPTIONS)
CFLAGS  := C_SOURCE_FLOATING_POINT_OPTIONS=$(FLOATING_POINT_OPTIONS)
hello: 
        echo"-->$(CFLAGS) ==> ==> $(C_SOURCE_FLOATING_POINT_OPTIONS) \n"
I just get "nothing to do for 'hello'."

But

Have you tried quoting?

Code:
C_SOURCE_FLOATING_POINT_OPTIONS="-tPPCE200Z7NEN -WDDFP=N"
FLOATING_POINT_OPTIONS="-tPPCE200Z7NEF -WDDFP=G"
CFLAGS  := "C_SOURCE_FLOATING_POINT_OPTIONS=$(FLOATING_POINT_OPTIONS)"
hello: 
        echo"-->$(CFLAGS) ==> ==> $(C_SOURCE_FLOATING_POINT_OPTIONS) \n"

Last edited by dugan; 08-01-2022 at 05:39 PM.
 
Old 08-01-2022, 02:10 PM   #20
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Thought this sounded familiar...from five years ago, and since:
https://www.linuxquestions.org/quest...ry-4175605788/
https://www.linuxquestions.org/quest...ld-4175631261/
 
Old 08-01-2022, 05:36 PM   #21
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I do not need the Makefile.

I do need you to understand that solaris and RHEL are NOT THE SAME!

The compiler is different, the pre-compiler is different, the make syntax is different, the header files may be different, etc.

This is not an error in the OS used, or in the Makefile. This is an error in understanding by the user who cannot visualize that different OSes are in fact different in many ways under the hood.

Why are the results different you ask? Because you are working on a different OS. Plain and simple.

If you want the same results on 2 different machines they must have almost all the relevant software identical on each.
 
2 members found this post helpful.
Old 08-09-2022, 03:15 PM   #22
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
@TBone It actually worked for me when I placed : (without =) at the starting and the problem I came across was that when I used the same operation (i.e., with :=)on GNU make version on Solaris 3.81 it worked without any problem.


Code:
/home/rpittala/source/code/check_buffer_size.o: C_SOURCE_CODE_LOCATION_OPTIONS=-i=$(BUILD_SUPPORT)/external_block_options.h
Worked with 4.1 and 3.81. But, looks like something wrong with 3.82:
https://bugzilla.redhat.com/show_bug.cgi?id=1323206

Those who have scolded me, Calm Yourself. Thanks to those who suggested solutions with limited code.
 
Old 08-09-2022, 04:15 PM   #23
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rpittala View Post
@TBone It actually worked for me when I placed : (without =) at the starting and the problem I came across was that when I used the same operation (i.e., with :=)on GNU make version on Solaris 3.81 it worked without any problem.
Code:
/home/rpittala/source/code/check_buffer_size.o: C_SOURCE_CODE_LOCATION_OPTIONS=-i=$(BUILD_SUPPORT)/external_block_options.h
Worked with 4.1 and 3.81. But, looks like something wrong with 3.82: https://bugzilla.redhat.com/show_bug.cgi?id=1323206

Those who have scolded me, Calm Yourself. Thanks to those who suggested solutions with limited code.
So when you read the error message and modified things, it actually worked??? Good to know. Again, you telling us this is absolutely meaningless, since no one here (or anyone who comes across this thread) will know the CONTEXT OF WHAT YOU DID OR WHY. Again, you've had TEN YEARS of working with things like this, and have been asked repeatedly to post information, but don't.

Again: no one here can tell why what you did worked, since you've given no one any details.
 
Old 08-09-2022, 08:10 PM   #24
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Actually @TBOne, he did say what worked, (though you have to read between the lines to know what distro and version).
He said that replacing the ":=" with ":" worked, while the ":=" worked on Solaris 3.81. He seems to imply that the change was required for solaris 3.82 but does not clearly say that.

I went back over the thread and in post #10 he clearly states it was failing for RHEL 7.9. His final post obfuscates that by blathering on about different versions of solaris.

Last edited by computersavvy; 08-09-2022 at 08:14 PM.
 
1 members found this post helpful.
Old 08-09-2022, 10:04 PM   #25
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi All,
What you guys need here ? as I have already mentioned that the below example is what I have and here it worked for me now:
Code:
C_SOURCE_FLOATING_POINT_OPTIONS=-tPPCE200Z7NEN -WDDFP=N
FLOATING_POINT_OPTIONS=-tPPCE200Z7NEF -WDDFP=G
#C_SOURCE_FLOATING_POINT_OPTIONS := $(FLOATING_POINT_OPTIONS)
CFLAGS: C_SOURCE_FLOATING_POINT_OPTIONS=$(FLOATING_POINT_OPTIONS)
hello: 
        echo"-->$(CFLAGS) ==> ==> $(C_SOURCE_FLOATING_POINT_OPTIONS) \n"
All I wanted from the above example was the status of variable when it is updated :
Quote:
$(C_SOURCE_FLOATING_POINT_OPTIONS)
suppose to print "-tPPCE200Z7NEF -WDDFP=G"

what else you guys were expecting with GNU make ? @computersavvy open your eyes now and see

Last edited by rpittala; 08-09-2022 at 10:06 PM.
 
Old 08-10-2022, 12:49 AM   #26
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by rpittala View Post
Hi All,
What you guys need here ? as I have already mentioned that the below example is what I have and here it worked for me now:
Code:
C_SOURCE_FLOATING_POINT_OPTIONS=-tPPCE200Z7NEN -WDDFP=N
FLOATING_POINT_OPTIONS=-tPPCE200Z7NEF -WDDFP=G
#C_SOURCE_FLOATING_POINT_OPTIONS := $(FLOATING_POINT_OPTIONS)
CFLAGS: C_SOURCE_FLOATING_POINT_OPTIONS=$(FLOATING_POINT_OPTIONS)
hello: 
        echo"-->$(CFLAGS) ==> ==> $(C_SOURCE_FLOATING_POINT_OPTIONS) \n"
All I wanted from the above example was the status of variable when it is updated : suppose to print "-tPPCE200Z7NEF -WDDFP=G"

what else you guys were expecting with GNU make ? @computersavvy open your eyes now and see
since the value of the variable (not status) may depend on the target you build that echo can only print the actual value of it and not the value used during the compilation (which can be the same but also can be different).
So would be nice to learn how does it really work and understand (open your eyes now and see).
 
1 members found this post helpful.
Old 08-10-2022, 08:16 AM   #27
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rpittala View Post
Hi All,
What you guys need here ? as I have already mentioned that the below example is what I have and here it worked for me now:
Code:
C_SOURCE_FLOATING_POINT_OPTIONS=-tPPCE200Z7NEN -WDDFP=N
FLOATING_POINT_OPTIONS=-tPPCE200Z7NEF -WDDFP=G
#C_SOURCE_FLOATING_POINT_OPTIONS := $(FLOATING_POINT_OPTIONS)
CFLAGS: C_SOURCE_FLOATING_POINT_OPTIONS=$(FLOATING_POINT_OPTIONS)
hello: 
        echo"-->$(CFLAGS) ==> ==> $(C_SOURCE_FLOATING_POINT_OPTIONS) \n"
All I wanted from the above example was the status of variable when it is updated : suppose to print "-tPPCE200Z7NEF -WDDFP=G" what else you guys were expecting with GNU make ? @computersavvy open your eyes now and see
Seriously??? How many threads (including this one) have you been asked to provide information in??? Two pages now...you STILL don't provide the full makefile, despite being asked numerous times. Saying "I placed : (without =)" is pointless. No one coming across this thread is going to know WHY you did that, what you were trying to do, etc.

AGAIN: you have been working with makefiles for *TEN YEARS*, and asking about Clearmake/Solaris/RHEL during that time, yet don't seem to 'open your eyes' to getting told to provide full details, that Solaris is NOT the same as RHEL, and that makefiles between the two are actually going to require WORK from you to function.
 
  


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
SIOCSIFFLAGS: Operation not permitted SIOCSIFFLAGS: Operation not permitted sushan1982 Linux - Wireless Networking 1 01-01-2012 08:04 PM
about immediate and deferred variable assignment in GNU make George2 Programming 1 07-22-2011 05:55 PM
[SOLVED] Bash: why is word splitting not effective in an assignment catkin Programming 5 12-12-2009 12:02 PM
"Not a CODE" reference error perl v5.10.0, Deprecated assignment operation. skuletm Programming 3 03-12-2009 12:21 AM
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 AM.

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