Make error 255 linux

Make error 255 (Ubuntu) #159 Comments followed instructions: 1.- Changed IP to own IP in Makefile, 2.- Added Postgres DB settings in settings_local.py 3.- Added id_rsa.pub key and it can connect to GitHub: ssh -vT git@github.com But after running make server I got this message: more info: make -v The text was updated successfully, […]

Содержание

  1. Make error 255 (Ubuntu) #159
  2. Comments
  3. Footer
  4. Programming
  5. make[1] *** [libsupp.a] Error 255
  6. make error #255
  7. Comments
  8. Footer
  9. VOIP Magazine
  10. OpenSIPS Compilation and Installation Troubleshooting On Fedora
  11. OpenSIPS Installation
  12. Create OpenSIPS Mysql Database
  13. Generate OpenSIPS Configuration File
  14. OpenSIPS Init Script
  15. Include New Syslog Entry for OpenSIPS
  16. Add Linux User and Group For OpenSIPS
  17. Run OpenSIPS
  18. Start/Restart OpenSIPS
  19. Start Working

Make error 255 (Ubuntu) #159

followed instructions:
1.- Changed IP to own IP in Makefile,
2.- Added Postgres DB settings in settings_local.py
3.- Added id_rsa.pub key and it can connect to GitHub: ssh -vT git@github.com

But after running make server
I got this message:

more info:
make -v

The text was updated successfully, but these errors were encountered:

Hi, @sogen. Can you connect to your server with your pub key?

Yes, just tried it and it worked, added it with cat publickey.pub authorized_keys

Do any of the settings that need change use the long DNS name or the public IP?
i.e.: substitute the IP with the Public iP or use the long one: ec2-XX-XXX-X-XX.us-west-2.compute.amazonaws.com

Also, AWS EC2 has user «ubuntu» by default

do I need to put sudo somewhere?

@sogen the Makefile is going to try to connect as the root user. If you’re not logging in as the root user, change the username in a few places:

Also — sorry that this isn’t more streamlined. I wrote the Makefile server bootstrapping stuff the first time I built out the new server, and you’re the first person in several years to try using it 🙂

So I’ll be happy to help as best I can, but it might be a little rough going.

So yeah I would first try replacing all instances of 96.126.110.160 with your IP or hostname (shouldn’t matter), and all instances of root with the username you’re connecting as. looks like maybe ubuntu .

k, will try, thx.
So, what’s the easiest way to install it??

@sogen the make server command is the easiest way to install Snipt on your own server. If you haven’t deployed a Django app before, I would suggest also running through this: https://docs.djangoproject.com/en/1.10/topics/install/

That said, the Makefile and the SaltStack configuration install all of the dependencies needed for Snipt to run properly — PostgreSQL, ElasticSearch, etc.

Are you still having errors running the command?

Also, you might have better luck deploying to Heroku:

will ty the docker route and let you know, thanks

Hrm. I have no idea what that error might be.

Another option would be to use Dokku on your VPS: https://github.com/dokku/dokku, and then install via the Heroku instructions in the README.

Closing this ticket, as moving forward I won’t be supporting the Salt Stack / VM route for running Snipt. You can follow this branch, where I’m focused on building a one-click install for Heroku: https://github.com/nicksergeant/snipt/tree/heroku

On Thu, Nov 3, 2016 at 9:06 AM, Nick Sergeant notifications@github.com
wrote:

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Programming

make[1] *** [libsupp.a] Error 255

I have searched google and these forums as well. I am trying to compile proftpd on a vanilla Solaris 10 server and I am getting an error when I try to ‘make’

Server — Solaris 10 update 4

Installed packages from sunfreeware.com
autoconf-2.60-sol10-sparc-local
automake-1.10.1-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local
libiconv-1.11-sol10-sparc-local
make-3.81-sol10-sparc-local
ncurses-5.6-sol10-sparc-local
openssl-0.9.8f-sol10-sparc-local

Downloaded proftpd-1.3.1.tar.gz source files from http://www.proftpd.org/

root@solaris10:/usr/local/proftpd-1.3.1#make
echo #define BUILD_STAMP »`date`» >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/usr/local/proftpd-1.3.1/lib’
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c strsep.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-glob.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-hstrerror.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-mkstemp.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pr-syslog.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pwgrent.c
false rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o
make[1]: *** [libsupp.a] Error 255
make[1]: Leaving directory `/usr/local/proftpd-1.3.1/lib’
make: *** [lib] Error 2

Thank you in advanced for your help,

Источник

make error #255

I am trying to convert the pre-trained weights to rt weights and I am getting this error while trying to make:

`[ 25%] Building NVCC (Device) object CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o
In file included from /home/administrator/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/features.h:356:0,
from /usr/local/cuda-10.1/include/crt/host_config.h:206,
from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
from :0:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:467:49: error: missing binary operator before token «(»
#if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5)
^
compilation terminated due to -Wfatal-errors.
CMake Error at myplugins_generated_yololayer.cu.o.Debug.cmake:219 (message):
Error generating
/home/administrator/akshay/tensor_rt_conversion/tensorrtx/yolov5/build/CMakeFiles/myplugins.dir//./myplugins_generated_yololayer.cu.o

CMakeFiles/myplugins.dir/build.make:63: recipe for target ‘CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o’ failed
make[2]: *** [CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/myplugins.dir/all’ failed
make[1]: *** [CMakeFiles/myplugins.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2`

The text was updated successfully, but these errors were encountered:

try not to use the conda env while building c++ program. you can refer to the install tutorial in this repo.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

VOIP Magazine

OpenSIPS Compilation and Installation Troubleshooting On Fedora

OpenSIPS Installation

Here i will install OpenSIPS 1.11. To get more control over the installation process, I will compile the OpenSIPS from the source.

Get the latest release of OpenSIPS source from OpenSIPS’s GitHub repository:

Go to the place where “GitHub.com” is remotely storing OpenSIPS and get the OpenSIPS ‘s repo HTTP-address “ https://github.com/OpenSIPS/opensips.git “. Then clone the repo.

Note: The option -b is used to choose the branch “-b 1.11”

Install the prerequisites needed to configure the compilation:

  • Flex and Bison needed for parsing of configuration file.
  • ncurses-libs, ncurses-devel, and ncurses-static for grafical display ( text-based user interfaces ).

Some prerequisites must be installed for GCC like Flex, Bison, TCl and others. If you could not compile, check what is missed in your system. Have a look here .

Open the configuration interface:

If you couldn’t open the interface and have an error like “ Make error *255* “, this means needed prerequisites are not all installed. You could also need to try these:

  • Remove GCC and install it again:

# yum install gcc

If you are patient, try to do the same thing with some broken installed prerequisites.

  • You could need to change the Makefile (In my case: “/usr/local/src/opensips_1_11/ menuconfig/Makefile “). For example adding include (-I) and library (-L) paths.

all: $(MENUCONFIG_FILES)
$(CC) -o $(EXEC_NAME) $(CFLAGS) $^ -I/usr/include -L/usr/lib -lncurses

  • Still have a problem, do system restart.

The text-based user interface to configure and compile will look like this:

Here we can do the following

  • Configure some compile options used at OpenSIPS compilation time.
  • Compile and install OpenSIPS.
  • Cleanup OpenSIPS sources.
  • Generate OpenSIPS script
  • Exit and save all changes.

To get the features you want, go to the first menu and configure the compilation. You can select the modules you want to compile (“Configure Compile Options” –> “Configure Excluded Modules”). The selected modules here (marked with star *) will be included in the compilation of the OpenSIPS. Also you can configure the installation directories (“Configure Compile Options” –> “Configure Install Prefix”). It can be for example “/usr/local/opensips_1_11/”. Note: press q letter or left-arrow to go back to the previous screen.

After the configuration press on “Save Changes” to save the changes you did. After this you will get a message of the required libraries which must be installed according to the modules included in the configuration of the compilation (module dependencies). Go ahead and download them before compilation. Put the graphical interface in the background (press control-Z) or open a new terminal so you can see the names of the required libraries from the graphical interface and install them in the new terminal.

For example the module “db_mysql” needs mysql-devel (mysql client development library) to be installed.

Back to the interface and select “Compile and Install OpenSIPS” , then the compilation will start. It takes few minutes.

After the installation is completed, we get OpenSIPS installed as it is configured. In my case, it will be installed in “/usr/local/opensips_1_11/”. This directory contains these:

In “etc” we have the OpenSIPS configuration files.

In “lib” we have OpenSIPS modules

In “sbin” we have the executable files.

In “share” we have the documentation.

Create OpenSIPS Mysql Database

Install your database server. As an example install MySQL database server .

Now we are in “/usr/local/opensips_1_11/”

  • Configure the database parameters: Edit the configuration file “etc/opensips/opensipsctlrc”. This file contains the configuration of the database connection. # vim opensipsctlrc. Adjust the parameters like the name of the database, the read/write user that the opensips will be using, password, the database root user, and others.
  • Create the OpenSIPS database.Now back to “/usr/local/opensips_1_11/”. In the sub-directory /sbin we have opensipsdbctl tool. Use it to create the database. Here is the command and its output:

MySQL password for root:

INFO: test server charset

INFO: creating database opensips …

INFO: Core OpenSIPS tables succesfully created.

Install presence related tables? (y/n): y

INFO: creating presence tables into opensips …

INFO: Presence tables succesfully created.

Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist b2b registrant call_center? (y/n): y

INFO: creating extra tables into opensips …

INFO: Extra tables succesfully created.

opensipsdbctl tool takes its configuration from the file “etc/opensipsctlrc”

Notes

  • Install and configure mysqld as a system service:

# yum -y install community-mysql-server

# systemctl start mysqld.service

# systemctl enable mysqld.service

  • Check if its running: # ps aux | grep mysql
  • Default password is empty so only press “Enter” when asking for password. For security, set root password as following:

mysql> set password for root@localhost=password(‘fedoracore2’);

Generate OpenSIPS Configuration File

The prerequisite is to install m4 package which comes by default with most Linux distribution. M4 is GNU macro processor and it is useful for writing text files which can be logically parsed.

Now we are in “/usr/local/opensips_1_11/”

Go to sbin and execute ./osipsconfig. You will get the text interface to generate the configuration file.

Three kinds of configuration files/scripts can be generated:

  • Residential scripts: If we have customers and we want to offer them certain services.
  • Trunking scripts: where we have PBXs and SIP trunks and we want to route the traffic.
  • Load-balancing scripts: Simple load balancer that can load the traffic between chosen destinations.

Example: Generating residential script (“Generate OpenSIPS Script” –> “Residential Script” –> “Configure Residential Script”) so we come to this page:

Here we can configure how OpenSIPs will work. After this configuration press “q” to go to the previous page then click on “Generate Residential Script”.

The generated script will be placed in the OpenSIPs etc folder (/usr/local/opensips_1_11/etc/opensips) marked with the date of its generation. Example: “opensips_residential_2014-9-25_12:30:52.cfg”. After the generation of the file we need to customize it little bit. For example fix the IP addresses and ports that the OpenSIPs will be working on. For example:

listen=udp:10.0.0.4:5060 # CUSTOMIZE ME
Also customization of the places where DB connection is required. Example:

modparam(“siptrace”, “db_url”, “mysql://user:passwd@host/dbname”)
modparam(“usrloc”, “db_url”,”mysql://opensips:fedoracore2@localhost/opensips”) # CUSTOMIZE ME

Don’t forget to check the path of the installed modules: mpath=”/usr/local/opensips_proxy/lib/opensips/modules”

OpenSIPS Init Script

To make OpenSIPS works as system service, we need Init script. Follow these steps:

  • Go to the src folder : “/usr/local/src/opensips_1_11/packaging”
  • Here you have to select your system. For example if you have Fedora go to fedora sub-directory.
  • In that folder you will see the script opensips.init which is the actual init script. Copy this script to /etc/init.d/opensips and give it execution right.

# cp opensips.init /etc/init.d/opensips
# chmod +x /etc/init.d/opensips

  • Edit the script
    # vim /etc/init.d/opensips

Here is a part of the script where there will be changes. The red line replace the line above it. Please see the corresponding to this in your system.

Include New Syslog Entry for OpenSIPS

  • Open the configuration file. In the Global Configuration section you will see the following :

log_facility=LOG_LOCAL

log_facility=LOG_LOCAL 1

  • Edit rsyslog.conf: #vim /etc/rsyslog.conf
    Add this entry: local1.* /var/log/opensips.log
  • Restart rsyslog daemon : #systemctl restart rsyslog OR #service rsyslog restart
    All OpenSIPs log messages will be stored in this file /var/log/opensips.log

By adding “ “, the logging will be in Asynchronous mode so opensips will not wait until the messages are propagated.

Add Linux User and Group For OpenSIPS

Execute “# system-config-users”. Add user=opensips and create group=opensips for that user

Run OpenSIPS

The database server must be running before starting OpenSIPS. For example if the database server is mysql, check its status ( # systemctl status mysqld.service ) and run it if it is not running ( # systemctl start mysqld.service ).

To enable and start opensips as a system service.

# systemctl start opensips.service

# systemctl enable opensips.service

Check the file “/var/log/opensips.log” to see if everything is ok and no error messages ( # tail -f /var/log/opensips.log ).

Example of an error message in the opensips.log:

ERROR: uri :db_checks_fixup1: configuration error – no database URL is configured!

“ uri ” is the name of the module which has a problem.

Note: Problems which arise before the loading of the configuration file are still going to “/var/log/messages”.

Now the opensips should be running and we can check this by executing some commands:

♠ Check the status of the OpenSIPS’s service (i.e. Loaded and Running): #systemctl status opensips.service

♠ Check network’s state of the OpenSIPS server: # netstat -lpn |grep opensips

tcp 0 0 127.0.0.1:5060 0.0.0.0:* LISTEN 32634/opensips

udp 0 0 127.0.0.1:5060 0.0.0.0:* 32634/opensips

Note: OpenSIPS will not start on database init failure and it will exit immediately (return -1) on module initialization failure (calling the function “mod_init”).

Start/Restart OpenSIPS

To restart OpenSIPS, do the following:

# systemctl restart opensips.service

Start Working

Now after OpenSIPS has been installed successfully, you can start using its modules in the routing script. What i recommend when using any module:

  • Reading in the module documentation (Last Version) . Note the section “Exported MI Functions” in the documentation of each module lists the module’s exported MI functions that can be called from outside of OpenSIPS (External applications). Example:

# opensipsctl fifo debug 1

OpenSIPS project is growing quickly so please always read in the latest documentation.

  • Sometimes you need to look at the Database Schema . Some fields are pushed to database only when a specific module parameter is set. Example: In multi-domain scenarios, you might need to save the domain part of the user so the domain part and the username part are used to identify the user. So in this case you need to set the “use_domain” parameter of “usrloc” module to non zero value which means true.

Источник

@username1290

followed instructions:
1.- Changed IP to own IP in Makefile,
2.- Added Postgres DB settings in settings_local.py
3.- Added id_rsa.pub key and it can connect to GitHub: ssh -vT git@github.com

But after running make server
I got this message:

Permission denied (publickey).
Makefile:108: recipe for target 'server' failed
make: *** [server] Error 255

more info:
make -v

GNU Make 4.1
Built for x86_64-pc-linux-gnu

@nicksergeant

Hi, @sogen. Can you connect to your server with your pub key?

@username1290

Yes, just tried it and it worked, added it with cat publickey.pub authorized_keys

Do any of the settings that need change use the long DNS name or the public IP?
i.e.: substitute the IP with the Public iP or use the long one: ec2-XX-XXX-X-XX.us-west-2.compute.amazonaws.com

Also, AWS EC2 has user «ubuntu» by default

do I need to put sudo somewhere?

@nicksergeant

@sogen the Makefile is going to try to connect as the root user. If you’re not logging in as the root user, change the username in a few places:

https://github.com/nicksergeant/snipt/blob/master/Makefile#L3

Also — sorry that this isn’t more streamlined. I wrote the Makefile server bootstrapping stuff the first time I built out the new server, and you’re the first person in several years to try using it :)

@nicksergeant

So I’ll be happy to help as best I can, but it might be a little rough going.

@nicksergeant

So yeah I would first try replacing all instances of 96.126.110.160 with your IP or hostname (shouldn’t matter), and all instances of root with the username you’re connecting as… looks like maybe ubuntu.

@username1290

k, will try, thx.
So, what’s the easiest way to install it??

@nicksergeant

@sogen the make server command is the easiest way to install Snipt on your own server. If you haven’t deployed a Django app before, I would suggest also running through this: https://docs.djangoproject.com/en/1.10/topics/install/

That said, the Makefile and the SaltStack configuration install all of the dependencies needed for Snipt to run properly — PostgreSQL, ElasticSearch, etc.

Are you still having errors running the command?

@nicksergeant

@username1290

some advance,


debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

Makefile:108: recipe for target 'server' failed
make: *** [server] Error 100

will ty the docker route and let you know, thanks

@nicksergeant

Hrm. I have no idea what that error might be.

Another option would be to use Dokku on your VPS: https://github.com/dokku/dokku, and then install via the Heroku instructions in the README.

@nicksergeant

Closing this ticket, as moving forward I won’t be supporting the Salt Stack / VM route for running Snipt. You can follow this branch, where I’m focused on building a one-click install for Heroku: https://github.com/nicksergeant/snipt/tree/heroku

@username1290

Old

03-10-2008

1,
0

Member Information Avatar

Join Date: Mar 2008

Last Activity: 10 March 2008, 2:18 PM EDT

Posts: 1

Thanks Given: 0

Thanked 0 Times in 0 Posts

MySQL

make[1] *** [libsupp.a] Error 255


I have searched google and these forums as well. I am trying to compile proftpd on a vanilla Solaris 10 server and I am getting an error when I try to ‘make’

Server — Solaris 10 update 4

Installed packages from sunfreeware.com
autoconf-2.60-sol10-sparc-local
automake-1.10.1-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local
libiconv-1.11-sol10-sparc-local
make-3.81-sol10-sparc-local
ncurses-5.6-sol10-sparc-local
openssl-0.9.8f-sol10-sparc-local

Downloaded proftpd-1.3.1.tar.gz source files from http://www.proftpd.org/

root@solaris10:/usr/local/proftpd-1.3.1#make
echo #define BUILD_STAMP «`date`» >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/usr/local/proftpd-1.3.1/lib’
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c strsep.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-glob.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-hstrerror.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c glibc-mkstemp.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pr-syslog.c
gcc -DHAVE_CONFIG_H -DSOLARIS2_10 -DSOLARIS2 -I.. -I../include -I/usr/local/openssl -O2 -Wall -c pwgrent.c
false rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o
make[1]: *** [libsupp.a] Error 255
make[1]: Leaving directory `/usr/local/proftpd-1.3.1/lib’
make: *** [lib] Error 2

Thank you in advanced for your help,

JJ

Я участвую в работе ЕЭК по программированию; он уже представлен и оценивается, но я все еще хочу знать, почему мой makefile не работает. Когда я запускаю файл на нашем школьном сервере командой «make tests», он отвечает

‘make: testq: команда не найдена. make * test error 127

Если я запустил «make testq12345», он фактически запустит мою программу «myar» и выдаст выходной файл, но потом выдаст ошибку 255. Я не понимаю эту проблему или почему make файл не может найти цели. Я искал через stackoverflow и другие источники об этих ошибках, но не понимаю и не могу найти работоспособное решение. Если это имеет значение, я запускаю его на сервере Linux.

Я запускаю его в CS311/Homework4/test, который содержит make файл, программы и текстовые файлы.

Спасибо за ваше время и помощь; его оценили.

#
#  $RCSfile$
#  $Revision$
#  $Author$
#  $Date$
#  $Log$
#
# Author: Cody R Crawford
# Email: [email protected]
# Course: CS311-400
# Homework: 4
# Citations:
#   http://mrbook.org/tutorials/make/
#       For examples, guidance, and genera understanding
# Assumptions: I assume you want the .o files to show up unless 
# you specifically command 'clean'
#########################################################

CC=gcc
DEBUG=-g
CFLAGS=$(DEBUG) -Wall
PROGS=sig_demo myar 
OBJECTS=$(PROGS:.c=.o)

all: $(PROGS)

sig_demo.o: sig_demo.c
    $(CC) $(CFLAGS) -c sig_demo.c

sig_demo.c: sig_demo.o
    $(CC) $(CFLAGS) -c sig_demo.c

myar.o: myar.c
    $(CC) $(CFLAGS) -c myar.c

myar.c: myar.o
    $(CC) $(CFLAGS) -c myar.c

tests:
    testq
    testt
    testv

testq:
    testq24 
    testq135
    testq12345

testq24:
    rm -f ar24.ar 
    ar q ar24.ar 2-s.txt 4-s.txt
    myar q myar24.ar 2-s.txt 4-s.txt 
    diff ar24.ar myar24.ar

testq135:
    rm -f ar135.ar 
    ar q ar135.ar 1-s.txt 3-s.txt 5-s.txt 
    myar q myar135.ar 1-s.txt 3-s.txt 5-s.txt 
    diff ar135.ar myar135.ar

testq12345:
    rm -f ar12345.ar 
    rm -f myar12345.ar
    ar q ar12345.ar 1-s.txt 2-s.txt 3-s.txt 4-s.txt 5-s.txt
    ./myar -q myar12345.ar 1-s.txt 2-s.txt 3-s.txt 4-s.txt 5-s.txt
    diff ar135.ar myar135.ar

testt:
    testt24
    testt135
    testt12345

testt24:
    rm -f ar24.ar
    ar q ar24.ar 2-s.txt 4-s.txt
    ar t ar24.ar > ar-ctoc.txt 
    myar -t ar24.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt 

testt135:
    rm -f ar135.ar
    ar q ar135.ar 1-s.txt 3-s.txt 5-s.txt
    ar t ar135.ar > ar-ctoc.txt 
    myar -t ar135.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt 

testt12345:
    rm -f ar12345.ar
    ar q ar12345.ar 1-s.txt 2-s.txt 3-s.txt 4-s.txt 5-s.txt
    ar t ar12345.ar > ar-ctoc.txt 
    myar -t ar12345.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt  

testv:
    testv24
    testv135
    testv12345

testv24:
    rm -f ar24.ar
    ar q ar24.ar 2-s.txt 4-s.txt
    ar v ar24.ar > ar-ctoc.txt 
    myar -v ar24.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt 

testv135:
    rm -f ar135.ar
    ar q ar135.ar 1-s.txt 3-s.txt 5-s.txt
    ar v ar135.ar > ar-ctoc.txt 
    myar -v ar135.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt 

testv12345:
    rm -f ar12345.ar
    ar q ar12345.ar 1-s.txt 2-s.txt 3-s.txt 4-s.txt 5-s.txt
    ar v ar12345.ar > ar-ctoc.txt 
    myar -v ar12345.ar > myar-ctoc.txt 
    diff ar-ctoc.txt myar-ctoc.txt 




clean:
    rm -f $(PROGS) $(OBJECTS) *.o *~
View previous topic :: View next topic  
Author Message
Goverp
Veteran
Veteran

Joined: 07 Mar 2007
Posts: 1610

PostPosted: Thu Jun 25, 2020 11:57 am    Post subject: Error 255 in kernel 5.7 compiling arch/x86/events/amd/ibs.o Reply with quote

Ever since kernel 5.7.0, it won’t compile. (This is gentoo-sources). The error is at the end of the following listing, I’ve included the lines before in case the context is important. I copied my 5.6.x .config and ran «make oldconfig» beforehand.

Code:
 make clean

  CLEAN   arch/x86/entry/vdso

  CLEAN   arch/x86/realmode/rm

  CLEAN   arch/x86/tools

hp /usr/src/linux-5.7.6-gentoo # make -j1

  HOSTCC  scripts/basic/fixdep

  HOSTCC  arch/x86/tools/relocs_32.o

  HOSTCC  arch/x86/tools/relocs_64.o

  HOSTCC  arch/x86/tools/relocs_common.o

  HOSTLD  arch/x86/tools/relocs



  CC      arch/x86/events/amd/core.o

arch/x86/events/amd/core.o: warning: objtool: amd_pmu_handle_irq()+0x28: stack state mismatch: cfa1=7+8 cfa2=7+0

  CC      arch/x86/events/amd/uncore.o

  CC      arch/x86/events/amd/power.o

  CC      arch/x86/events/amd/ibs.o

arch/x86/events/amd/ibs.o: warning: objtool: perf_ibs_init()+0x25: can’t find jump dest instruction at .text+0x37

make[3]: *** [scripts/Makefile.build:267: arch/x86/events/amd/ibs.o] Error 255

make[3]: *** Deleting file ‘arch/x86/events/amd/ibs.o’

make[2]: *** [scripts/Makefile.build:488: arch/x86/events/amd] Error 2

make[1]: *** [scripts/Makefile.build:488: arch/x86/events] Error 2

make: *** [Makefile:1732: arch/x86] Error 2



AFAIK the warning messages are irrelevant; my 5.6 kernel produces tons of them during compilation.

I suspect the problem may be down to some kernel reorganization of the AMD IBS code that I can’t now locate. What I don’t understand is why I’m (almost) the only user in the world hitting this (almost — someone seems to have reported it against genkernel.
_________________
Greybeard

Back to top

View user's profile Send private message

Anon-E-moose
Watchman
Watchman

Joined: 23 May 2008
Posts: 5864
Location: Dallas area

PostPosted: Thu Jun 25, 2020 12:02 pm    Post subject: Reply with quote

Do you have the kernel set for a particular CPU? If so which one?

And which gcc are you using?
_________________
PRIME x570-pro, 3700x, 5.17 zen kernel

gcc 11.2.0/12.2.0, profile 17.1 amd64-no-multilib, openrc, wayland


copy of my local repo

Back to top

View user's profile Send private message

Goverp
Veteran
Veteran

Joined: 07 Mar 2007
Posts: 1610

PostPosted: Thu Jun 25, 2020 12:16 pm    Post subject: Reply with quote

Anon-E-moose, good call! It was my KCFLAGS=»-march=native» that caused the problem.
_________________
Greybeard
Back to top

View user's profile Send private message

Anon-E-moose
Watchman
Watchman

Joined: 23 May 2008
Posts: 5864
Location: Dallas area

PostPosted: Thu Jun 25, 2020 12:39 pm    Post subject: Reply with quote

I’ve seen mixed results with «native», better to set the cpu chip directly, and if there isn’t one available, then use the next best option (prev version cpu)
_________________
PRIME x570-pro, 3700x, 5.17 zen kernel

gcc 11.2.0/12.2.0, profile 17.1 amd64-no-multilib, openrc, wayland


copy of my local repo
Back to top

View user's profile Send private message

Ionen
Developer
Developer

Joined: 06 Dec 2018
Posts: 2459

PostPosted: Thu Jun 25, 2020 2:09 pm    Post subject: Reply with quote

Considering the kernel goes out of its way to disable a lot of -m options (such as -mno-avx, likely for a reason).. but not every single that exists (especially newer things), and -march=native enables those, I imagine it could have all sort of strange implications.
Back to top

View user's profile Send private message

Jimmy Jazz
Guru
Guru

Joined: 04 Oct 2004
Posts: 319
Location: Strasbourg

PostPosted: Fri Jun 26, 2020 12:30 am    Post subject: Reply with quote

Ionen wrote:
Considering the kernel goes out of its way to disable a lot of -m options (such as -mno-avx, likely for a reason).. but not every single that exists (especially newer things), and -march=native enables those, I imagine it could have all sort of strange implications.

it is the missing -mno-tbm flag
_________________
« La seule condition au triomphe du mal, c’est l’inaction des gens de bien » E.Burke

Code:

+—-+—-+—-+

|    |::::|    |

|    |::::|    |

+—-+—-+—-+



motto: WeLCRO

WritE Less Code, Repeat Often

Back to top

View user's profile Send private message

Display posts from previous:   

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

Понравилась статья? Поделить с друзьями:
  • Main cpp 13 1 error expected unqualified id before token
  • Make error 2 ubuntu
  • Main controller data error mavic air как починить
  • Make error 193
  • Main control system error