Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile error 're' #67

Closed
42fortytwo42 opened this issue Nov 28, 2016 · 10 comments
Closed

Makefile error 're' #67

42fortytwo42 opened this issue Nov 28, 2016 · 10 comments
Assignees

Comments

@42fortytwo42
Copy link

It seems that there is an error caused by same inode unchanged.

I give you the info... maybe i am wrong on my Makefile, but i have some doubt on it.

CHECKING RULE: re
-> Failing rule: It should have compiled again the binary named 'libftprintf.a' (inode unchanged)

good luck :0

@aloisleclet
Copy link

same thing for me

@Seluj78
Copy link
Collaborator

Seluj78 commented Dec 1, 2016

Can you guys send me your makefiles ?

@Seluj78 Seluj78 changed the title Testing Makefile Makefile error 're' Dec 1, 2016
@Seluj78 Seluj78 self-assigned this Dec 1, 2016
@aloisleclet
Copy link

aloisleclet commented Dec 1, 2016

NAME = libft.a

INC = includes/libft.h

CC = gcc

FLAGS += -Wall -Wextra -Werror -I $(INC)

SRCS = ft_memset.c
ft_memcpy.c
ft_memccpy.c
ft_memmove.c
ft_memchr.c
ft_memcmp.c
ft_strlen.c
ft_strdup.c
ft_strcpy.c
ft_strncpy.c
ft_strcat.c
ft_strncat.c
ft_strlcat.c
ft_strchr.c
ft_strrchr.c
ft_strstr.c
ft_strnstr.c
ft_strcmp.c
ft_strncmp.c
ft_atoi.c
ft_isalpha.c
ft_isdigit.c
ft_isalnum.c
ft_isascii.c
ft_isprint.c
ft_toupper.c
ft_tolower.c
ft_memalloc.c
ft_memdel.c
ft_strnew.c
ft_strdel.c
ft_strclr.c
ft_striter.c
ft_striteri.c
ft_strmap.c
ft_strmapi.c
ft_strequ.c
ft_strnequ.c
ft_strsub.c
ft_strjoin.c
ft_strtrim.c
ft_strsplit.c
ft_itoa.c
ft_putchar.c
ft_putstr.c
ft_putendl.c
ft_putnbr.c
ft_putchar.c
ft_putstr_fd.c
ft_putendl_fd.c
ft_putnbr_fd.c

OBJS = $(SRCS:.c=.o)

RM = rm -rf

$(NAME): $(INC)
$(CC) $(FLAGS) -c $(SRCS)
ar rc $(NAME) $(OBJS)
ranlib $(NAME)

all: $(NAME)

clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)

re: fclean all

@Seluj78
Copy link
Collaborator

Seluj78 commented Dec 1, 2016

Well as for this one, it's pretty obvious

it asks for : Failing rule: It should have compiled again the binary named 'libftprintf.a'
But in your case @aloisLSW42 your makefile compiles a libft.a

@Seluj78 Seluj78 assigned jgigault and unassigned Seluj78 Dec 1, 2016
@Seluj78 Seluj78 added the bug label Dec 1, 2016
@Seluj78
Copy link
Collaborator

Seluj78 commented Dec 1, 2016

@jgigault je suis allé voir @aloisLSW42 ert impossible de fix son erreur de inode, meme avec mon makefile qui ne relink pas

@jgigault
Copy link
Owner

TODO: provide a custom C program to retreive inode:

https://stackoverflow.com/questions/9480568/find-inode-number-of-a-file-using-c-code

@Seluj78 Seluj78 mentioned this issue Feb 5, 2018
@Seluj78
Copy link
Collaborator

Seluj78 commented Feb 5, 2018

Closed to group all the related issues in 115

@Seluj78 Seluj78 closed this as completed Feb 5, 2018
@mykolasm
Copy link

I'm getting the same error despite my makefile looking the same:

CHECKING RULE: re
-> Failing rule: It should have compiled again the binary named 'libft.a' (inode unchanged

@Seluj78
Copy link
Collaborator

Seluj78 commented Feb 26, 2018

@mykolasm are you at 42 tomorrow ?

@Seluj78 Seluj78 reopened this Feb 26, 2018
@Seluj78
Copy link
Collaborator

Seluj78 commented Feb 26, 2018

(opening the issue again was a mistake sorry)

@Seluj78 Seluj78 closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants