LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-17-2023, 01:21 PM   #1
markboston
LQ Newbie
 
Registered: Jun 2023
Location: USA
Distribution: Arch Linux
Posts: 2

Rep: Reputation: 0
is this a typo?


case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esac

shouldn't it be ...(x86_64)?

i think so but just want to make sure so i don't break or any change anything thats going to cause issues.

i tried both (x86_64) and x86_64 neither work. both times i get a complaint about the command with () it says invalid token at ( the second time it complains about the two ;;.

Last edited by markboston; 06-17-2023 at 02:37 PM. Reason: adding more info
 
Old 06-17-2023, 05:02 PM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
The original is correct.

Closing paren only on the second line, that's the case syntax.

Code:
case $(uname -m) in
    x86_64)
        sed -e '/m64=/s/lib64/lib/' \
        -i.orig gcc/config/i386/t-linux64
        ;;
esac
 
Old 06-25-2023, 12:15 PM   #3
markboston
LQ Newbie
 
Registered: Jun 2023
Location: USA
Distribution: Arch Linux
Posts: 2

Original Poster
Rep: Reputation: 0
ive decided to give up on trying to make this work. i can't get gcc installed im sure its something im doing wrong but i don't care that much to try and figure it out.
 
Old 06-25-2023, 12:39 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Are you using arch?
https://archlinux.org/packages/core/x86_64/gcc/
https://wiki.archlinux.org/title/GNU...ler_Collection
Code:
pacman -Si gcc
Repository      : core
Name            : gcc
Version         : 13.1.1-1
Description     : The GNU Compiler Collection - C and C++ frontends
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : None
Provides        : gcc-multilib
Depends On      : gcc-libs=13.1.1-1  binutils>=2.28  libmpc  zstd  libisl.so=23-64
Optional Deps   : lib32-gcc-libs: for generating code for 32-bit ABI
Conflicts With  : None
Replaces        : gcc-multilib
Download Size   : 46.69 MiB
Installed Size  : 181.74 MiB
...
Or linux from scratch
https://www.linuxfromscratch.org/blf...neral/gcc.html
 
  


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
Lost access to windows partition, due to typo in command anubis26 Linux - General 24 08-10-2006 07:51 PM
Typo in the LQ rules Nylex LQ Suggestions & Feedback 1 07-18-2006 07:33 AM
Grub w/ Gentoo 2.6.3 - Kernel Panic - typo? smehi Linux - General 1 03-29-2004 01:24 AM
Typo with GRUB caused Win98 to be unbootable wapcaplet Linux - Software 7 11-28-2003 08:21 AM
is it an error or typo? blackcat Linux From Scratch 1 09-02-2002 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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