WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: C compiler cannot create executables  (Read 10225 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: C compiler cannot create executables
« Reply #15 on: May 06, 2015, 10:38:59 AM »
...when compiling complex software (rogue's only depencency was ncurses-dev), i would then need to pre-load/install any required -dev dependencies before compiling -correct?
affirmative  :)

Quote
And if the required dependency had no associated -dev extension then i would need to either www retrieve/compile the software or retrieve from older TC repositories, create all dependency abc.tcz and abc-dev.tcz beforehand, and finally complete the primary program compilation?
Normally the *-dev extensions should already be there except:

* older versions of an extension there for compatibility reasons like libpng12
* extensions with the dev files in the extension itself (not usually recommended)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: C compiler cannot create executables
« Reply #16 on: May 06, 2015, 09:54:19 PM »

According to the submitqc6 info file sudo isn't required:
Quote
submitqc6 info file:
"submitqc6" is the command to run.
...but i will re-compile again anyway for practice, use Os instead of O2 and see how 'sudo submitqc6' works. Even though submitqc6 threw these 'rm' messsages, i believe the permissions look correct.
sorry, use this:
   sudo submitqc6

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: C compiler cannot create executables
« Reply #17 on: May 06, 2015, 11:41:02 PM »
Thanks again for the feedback. Re-ran submitqc6 with sudo and got a clean report:
Code: [Select]
tc@box:~/Desktop/rogue/54/test$ sudo submitqc6
 
The following errors are found in rogue.tcz.info.  No news is good news:
rogue.tcz is a valid tcz file. Checking MD5 for rogue.tcz:
rogue.tcz: OK
 
##############################################
##############################################
 
Please wait, getting info...
rogue.tcz is missing in the repo as a dependency of rogue.tcz.dep
rogue.tcz, however is present in this batch of extensions being checked for upload.
 
##############################################
##############################################

....so i decided not to recompile afterall and just kept the O2 flag, anxious to start the next project. Maybe try efax and efax-gtk (yes i still need fax :) ). Thoroughly tested the rogue.tcz extension and everything loads and runs as it should, no issues. I will tar and gmail. Thanks again everyone for all the help.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: C compiler cannot create executables
« Reply #18 on: May 24, 2015, 10:11:32 PM »
Finishing what i started...
rogue.tcz has been added to the TC 6 repository if anyone's bored 8)

Thanks again all.

gordon64

  • Guest
Re: C compiler cannot create executables
« Reply #19 on: August 26, 2015, 01:52:40 AM »
Juanito

I hope you don't mind me posting here as Original Poster seems happy.

my build scripts have lacked --disable-static so I will attend to that shortly.

Here is a snippet I have been using for some time, P is the name of submission TCZ before splitting out the doc, dev, locale and any other TCZs

Code: [Select]
cd /tmp/$P
find . | xargs file | grep "executable"    | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
cd /tmp

How exactly do I use the strip --strip-debug in the above formula please?

cheers

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: C compiler cannot create executables
« Reply #20 on: August 26, 2015, 02:03:35 AM »
something like (not tested)

Code: [Select]
find . | xargs file | grep "executable"    | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-all 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip --strip-debug 2> /dev/null

Note the "strip-all"

gordon64

  • Guest
Re: C compiler cannot create executables
« Reply #21 on: August 26, 2015, 02:29:00 AM »
thanks along with the compile flag stuff will test tonite

thanks heaps

gordon64

  • Guest
Re: C compiler cannot create executables
« Reply #22 on: August 26, 2015, 07:01:29 PM »
Hi

I know you mentioned not tested.

Your top 2 lines have been tested by me, and both show stripped.
Your bottom line has been changed to.......and tests OK
Code: [Select]
find . | xargs file | grep "current ar archive" |  cut -f 1 -d : | xargs strip --strip-debug 2> /dev/null
dropping the ELF

slightly offtopic one ar archive file went from 4588820 bytes to 4565180 which is maybe one per centum?

cheers