- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Make command help. Exe are not created in righ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:16 AM
тАО11-04-2008 12:16 AM
I am new to makefile and make commands. I need to support an project. But When I execute make command , it is not creating the executables in right size.
It have created message_generator executable with size 19898480 bytes. But when I run the make command it is giving me only 2732176 bytes message_generator exe.
What are the things that I need to check or configure to run this make command correctly ?
Thanks In Advance
Vaish
Solved! Go to Solution.
- Tags:
- make
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:28 AM
тАО11-04-2008 12:28 AM
Re: Make command help. Exe are not created in right size
One reason for a size bloat would be debug info, -g.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:34 AM
тАО11-04-2008 12:34 AM
Re: Make command help. Exe are not created in right size
I doubt whether it links with the necessary library files. How to check them ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:38 AM
тАО11-04-2008 12:38 AM
Re: Make command help. Exe are not created in right size
And executable that is 1/8 the size probably wouldn't even work at all.
>I doubt whether it links with the necessary library files. How to check them?
You can list shlibs with ldd(1):
ldd message_generator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:48 AM
тАО11-04-2008 12:48 AM
Re: Make command help. Exe are not created in right size
I really see the difference between old exe saved on precaution and the new exe created now
When I do ldd with old exe, it shows
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/appl/gcc-3.4.2/lib/libgcc_s.sl => /usr/local/appl/gcc-3.4.2/lib/libgcc_s.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/local/appl/gcc-3.4.2/lib/libstdc++.sl.6 => /usr/local/appl/gcc-3.4.2/lib/libstdc++.sl.6
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/log/ccase/gcc-3.4.2-objdir/gcc/libgcc_s.sl => /usr/local/appl/gcc/lib/libgcc_s.sl
/usr/lib/libm.2 => /usr/lib/libm.2
But when I do the same with new exe , it shows
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libCsup_v2.2 => /usr/lib/libCsup_v2.2
/usr/lib/libstd_v2.2 => /usr/lib/libstd_v2.2
Is it possible for you to explain me what it is all about ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 12:58 AM
тАО11-04-2008 12:58 AM
Solution/usr/local/appl/gcc-3.4.2/lib/libstdc++.sl.6
This is using foreign devil g++.
>But when I do the same with new exe, it shows
/usr/lib/libCsup_v2.2
>Is it possible for you to explain me what it is all about?
This is using aC++ -AA.
It's unfortunate the latter isn't the one that works. :-(
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 01:09 AM
тАО11-04-2008 01:09 AM
Re: Make command help. Exe are not created in right size
I use CXX=/opt/aCC/bin/aCC and I compile in my Makefile. Do I need to make it to gCC compiler and compile them.
Thanks
Vaish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 01:22 AM
тАО11-04-2008 01:22 AM
Re: Make command help. Exe are not created in right size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 01:43 AM
тАО11-04-2008 01:43 AM
Re: Make command help. Exe are not created in right size
Well, my ulterior motive is to have you use aC++. :-)
But you could try setting CXX=g++.
>Is it possible for you to explain me "CXX=/opt/aCC/bin/aCC and CXXFLAGS=-AA -mt -c -g0 +objdebug -z -I$(BOOSTINCL) +W823 $(MK_CXXOPTS)"
This says use aCC to compile. And pass the -AA & -mt & -g0 & +objdebug +W823 ... options to it.
>How should I modify them to point to g++ compiler?
You need to point CXX to the absolute path of g++.
For CXXFLAGS, remove -AA -mt -g0 +objdebug +W823 and replace by -g -threads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 02:25 AM
тАО11-04-2008 02:25 AM
Re: Make command help. Exe are not created in right size
CXX=gcc
CXXFLAGS=-g -I$(BOOSTINCL)
But I get errors like
/usr/ccs/bin/ld: Unsatisfied symbols:
std::basic_ostream
std::basic_stringstream
std::basic_istream
I hope I miss something else in CXXFlag to compile with gcc compiler