Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] make.conf errors, portage not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 9:10 am    Post subject: [SOLVED] make.conf errors, portage not working Reply with quote

emerge --info:
    "/etc/make.conf", line 24: Invalid token '/usr/local/portage
    source /var/lib/layman/make.conf
    INPUT_DEVICES=evdev' (not '=')

    any help would be appreciated :D


Last edited by dirtboxes on Sat May 01, 2021 12:03 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 27, 2021 9:19 am    Post subject: Reply with quote

in make.conf you are missing a "
probably in the line
PORTDIR_OVERLAY=............
Welcome to Gentoo.
_________________
:)
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 9:28 am    Post subject: Reply with quote

alamahant wrote:
in make.conf you are missing a "
Welcome to Gentoo.


Thanks, I tried that but it's still not working. I now get "/etc/make.conf", line 24: Invalid token 'synaptics' (not '=') when I run emerge --info.

Here's my make.conf file
Code:
 

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="${CFLAGS}"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
FEATURES="keepwork"
MAKEOPTS ="j3"
PORTAGE_NICENESS=1
ACCEPT_KEYWORDS="~amd64"
VIDEO_CARDS="radeon"
ACCEPT_LICENSE="*"

USE="elogind -systemd -aqua -css -a52 -cjk -gnome -qt4 -ldap -3df \
-clamav -coreaudio -ios -ipod -gtk -3dfx -emacs
#RUBY_TARGETS="ruby24 ruby25"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
#PORTDIR_OVERLAY=$"{PORTDIR_OVERLAY}" "/etc/portage"
#source /etc/portage/make.conf
INPUT_DEVICES="evdev synaptics keyboard mouse wacom joystick"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GRUB_PLATFORMS="efi-64"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.swin.e>
PORTAGE_REPO_DUPLICATE_WARN="0"


Last edited by dirtboxes on Tue Apr 27, 2021 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 27, 2021 9:32 am    Post subject: Reply with quote

Quote:

USE="elogind -systemd -aqua -css -a52 -cjk -gnome -qt4 -ldap -3df \
-clamav -coreaudio -ios -ipod -gtk -3dfx -emacs

Just close the " in the above line(after emacs)
:)
_________________
:)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 27, 2021 9:47 am    Post subject: Reply with quote

Quote:

GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.swin.e>


here maybe?
_________________
:)
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 9:50 am    Post subject: Reply with quote

alamahant wrote:
Quote:

GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.swin.e>


here maybe?
Still doesn't seem to be working.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 27, 2021 9:55 am    Post subject: Reply with quote

Code:

echo $PORTDIR_OVERLAY

from a terminal maybe...?
_________________
:)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 27, 2021 9:58 am    Post subject: Reply with quote

Something is seriously wrong with your serup
Code:

"/etc/make.conf", line 24: Invalid token '/usr/local/portage

do you have an
/etc/make.conf?
Also although commented out this seems off
Code:

#PORTDIR_OVERLAY=$"{PORTDIR_OVERLAY}" "/etc/portage"

_________________
:)


Last edited by alamahant on Tue Apr 27, 2021 10:00 am; edited 1 time in total
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 9:59 am    Post subject: Reply with quote

alamahant wrote:
Something is seriously wrong with your serup
Code:

"/etc/make.conf", line 24: Invalid token '/usr/local/portage

do you have an
/etc/make.conf?
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="${CFLAGS}"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS ="j3"
PORTAGE_NICENESS=1
ACCEPT_KEYWORDS="~amd64"
VIDEO_CARDS="radeon"

USE="elogind -systemd -aqua -css -a52 -cjk -gnome -qt4 -ldap -3df \
     -clamav -coreaudio -ios -ipod  -gtk -3dfx -emacs
#RUBY_TARGETS="ruby24 ruby25"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY}" "/usr/local/portage"
#source "/var/lib/layman/make.conf"
INPUT_DEVICES="evdev synaptics keyboard mouse wacom joystick"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GRUB_PLATFORMS="efi-64"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.swin.e>
PORTAGE_REPO_DUPLICATE_WARN="0"







Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 10:02 am    Post subject: Reply with quote

it was the " after emacs
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Tue Apr 27, 2021 10:07 am    Post subject: Reply with quote

alamahant wrote:
Something is seriously wrong with your serup
Code:

"/etc/make.conf", line 24: Invalid token '/usr/local/portage

do you have an
/etc/make.conf?
Also although commented out this seems off
Code:

#PORTDIR_OVERLAY=$"{PORTDIR_OVERLAY}" "/etc/portage"
Thanks for your help :D
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Tue Apr 27, 2021 6:05 pm    Post subject: Reply with quote

Syntax aware highlighting can often help you find these, by letting you look for the first token which is highlighted differently than you think it should be. In this case, the runaway string would probably have caused subsequent lines to be colored as part of the string, which would have drawn your attention.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Apr 27, 2021 6:25 pm    Post subject: Reply with quote

Isn't there an order problem here?
Code:
COMMON_FLAGS="${CFLAGS}"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

Is not COMMON_FLAGS blank? and therefore also CXXFLAGS FCFLAGS and FFLags?

Check emerge --info to see if I am correct.
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Wed Apr 28, 2021 8:24 am    Post subject: Reply with quote

Tony0945 wrote:
Isn't there an order problem here?
Code:
COMMON_FLAGS="${CFLAGS}"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

Is not COMMON_FLAGS blank? and therefore also CXXFLAGS FCFLAGS and FFLags?

Check emerge --info to see if I am correct.
Code:
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r7, 5.11.14-artix1-1 x86_64)
=================================================================
System uname: Linux-5.11.14-artix1-1-x86_64-AMD_Ryzen_3_2200G_with_Radeon_Vega_Graphics-with-glibc2.2.5
KiB Mem: 14320108 total, 10193972 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 27 Apr 2021 10:00:01 +0000
Head commit of repository gentoo: 1a1e8722269fd9c58017293c40cc685ecfbc8421
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash: 5.0_p18::gentoo
dev-lang/perl: 5.30.3::gentoo
dev-lang/python: 3.8.8_p1::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.20::gentoo
sys-devel/autoconf: 2.69-r5::gentoo
sys-devel/automake: 1.16.2-r1::gentoo
sys-devel/binutils: 2.35.2::gentoo
sys-devel/gcc: 10.2.0-r5::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.32-r7::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORIT>
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandb>
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.swin.edu.au/gentoo"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --hum>
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readli>
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_CO>
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Wed Apr 28, 2021 9:00 am    Post subject: Reply with quote

output of emerge --info '=sys-kernel/linux-headers-5.12::gentoo'
!!! 'sys-kernel/linux-headers-5.12::gentoo' is not a valid package atom.
!!! Please check ebuild(5) for full details.

output of emerge -pqv '=sys-kernel/linux-headers-5.12::gentoo'
[ebuild U ] sys-kernel/linux-headers-5.12 [5.10] USE="-headers-only"

* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Apr 28, 2021 3:07 pm    Post subject: Reply with quote

Guess I was wrong about the order of execution.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Apr 28, 2021 4:28 pm    Post subject: Reply with quote

Quote:
do you have an
/etc/make.conf?

This question is still unanswered. For forums to be effective the problem must be addressed methodically. Information about your setup is essential. If you choose randomly what requests respond to then you are making a mess and torpedoing your own interests.
_________________
Life is a tragedy for those who feel and a comedy for those who think.
Back to top
View user's profile Send private message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Fri Apr 30, 2021 8:38 am    Post subject: Reply with quote

how do i mark a post as solved
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Fri Apr 30, 2021 8:46 am    Post subject: Reply with quote

dirtboxes wrote:
how do i mark a post as solved

Edit your first post and change subject adding the [solved] tag
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54244
Location: 56N 3W

PostPosted: Fri Apr 30, 2021 8:46 am    Post subject: Reply with quote

dirtboxes,

Edit the title of the first post in the topic.
Titles are limited to 80 characters after special symbols are expanded to their html representations.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Apr 30, 2021 2:30 pm    Post subject: Reply with quote

fedeliallalinea wrote:
dirtboxes wrote:
how do i mark a post as solved

Edit your first post and change subject adding the [solved] tag

"Adding" implies appending to the rear. I used to do that until I learned that at least some moderators prefer prepending.
So now I prepend. I've seen both ways still. also both upper and lower case.
AFAIK, there is no official preference as to case or position.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Fri Apr 30, 2021 3:28 pm    Post subject: Reply with quote

I like it at the start, so that if I am scanning down a list of threads, I can visually partition them into solved/unsolved without needing to read the varying length thread title.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum