LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-05-2022, 04:14 AM   #1
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
bcc can't find bcc-cpp on x86_64


Apologies for some retro stuff here.

When I run Bruce C compiler on my beloved Slackware64 15.0 I get the following error:

Code:
Unable to execute bcc-cpp.
The reason is, bcc expects to find it's preprocessor in /usr/lib/bcc/, but the SlackBuild script installs it into /usr/lib64/bcc/, so it might be that the simplest solution would be just to install all of the stuff to /usr/lib/bcc/. Alternatively, one can patch the Makefile to distinguish x86 and x86_64.

P.S. Don't ask me why I run bcc...
 
Old 10-05-2022, 08:02 AM   #2
giomat
Member
 
Registered: Jul 2017
Posts: 342

Rep: Reputation: 243Reputation: 243Reputation: 243
does it work if you make a symlink /usr/lib/bcc/ -> /usr/lib64/bcc/ ? it should be enough
 
Old 10-05-2022, 08:23 AM   #3
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by giomat View Post
does it work if you make a symlink /usr/lib/bcc/ -> /usr/lib64/bcc/ ? it should be enough
Yes, it works:
Code:
% which bcc
/usr/bin/bcc
% bcc -ansi hello.c
% hexdump a.out | head -2
0000000 0301 0420 0020 0000 0ba0 0000 0078 0000
0000010 0278 0000 0000 0000 82f0 0000 0940 0000
%
It is much simpler than mine "let's recompile the whole bcc locally and set PATH each time I need it"
 
  


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
C++ preprocessor "/lib/cpp" fails sanity check C++ preprocessor "/lib/cpp" fails san mutetikasikali Linux - Software 3 01-25-2014 06:57 AM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
debian dpkg cpp depends on cpp error darkleaf Linux - Software 2 06-25-2004 01:47 AM
postfix + procmail + BCc: not recieving BCc sebastianjustin Linux - Networking 0 08-26-2003 02:38 AM
Now I have gcc/cpp/cpp, but still can't install sfingerh Linux - Software 2 07-30-2002 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:58 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